/* General Styles */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d44ff;
  --accent-color: #ff6b6b;
  --text-color: #f8f9fa;
  --text-color-secondary: #adb5bd;
  --background-color: #121212;
  --background-color-light: #1e1e1e;
  --background-color-lighter: #2d2d2d;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 50px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-color-secondary);
}

.d-grid {
  display: grid;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.cta-buttons.centered {
  justify-content: center;
}

/* Navigation Menu */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

#nav-menu {
  display: flex;
  gap: 30px;
}

.nav__item a {
  position: relative;
  font-weight: 600;
}

.nav__item a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav__item a:hover::after,
.nav__item.active a::after {
  width: 100%;
}

.nav__item.active a {
  color: var(--primary-color);
}

#nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--background-color-lighter);
  }

  #nav-menu.active {
    display: flex;
  }

  #nav-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 50px 100px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.2), transparent 50%);
  z-index: -1;
}

.hero__content {
  max-width: 700px;
  z-index: 1;
  text-align: center;
}

.hero__content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero__content p {
  font-size: 1.2rem;
  color: var(--text-color-secondary);
  margin-bottom: 30px;
}

/* Glitch Text Animation */
.glitch-text {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0
      rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0
      rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0
      rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0
      rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0
      rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0
      rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0
      rgba(0, 0, 255, 0.75);
  }
}

/* Fade In Animation */
.fade-in-text {
  opacity: 0;
  animation: fadeIn 2s ease forwards 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hero Section */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 150px 20px 80px;
  }

  .hero__content {
    max-width: 100%;
    margin-bottom: 50px;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }
}

/* Skills Section */
.skills {
  padding: 80px 0;
  background-color: var(--background-color-light);
}

.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill__item {
  background-color: var(--background-color-lighter);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.skill__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill__item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.skill__item h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.arduino-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 15px;
}

.cplus-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 15px;
}

.python-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 15px;
}

.kicad-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 15px;
}

.java-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 15px;
}

.autodesk-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 15px;
}

/* Skills List for About Page */
.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.skills-list li i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Qualification Section */
.qualification {
  padding: 80px 0;
  background-color: var(--background-color);
}

.qualification__wrapper {
  margin-bottom: 60px;
}

.qualification__name {
  font-size: 1.8rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.qualification__name i {
  color: var(--primary-color);
}

.qualification__content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.qualification__item {
  background-color: var(--background-color-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.qualification__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
}

.qualification__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.qualification__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 5px;
}

.qualification__company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.qualification__description {
  font-size: 0.95rem;
  color: var(--text-color-secondary);
  margin: 15px 0;
}

.qualification__date {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  display: block;
  margin-top: 15px;
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background-color: var(--background-color);
}

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.projects__container.centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-card {
  background-color: var(--background-color-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-color-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.project-btn-container {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

/* Project Pages */
.project-header,
.about-header {
  padding: 150px 0 80px;
  text-align: center;
  background-color: var(--background-color-light);
  position: relative;
}

.project-header::before,
.about-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(108, 99, 255, 0.15), transparent 70%);
  z-index: 0;
}

.project-title,
.about-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.project-subtitle,
.about-subtitle {
  font-size: 1.2rem;
  color: var(--text-color-secondary);
  position: relative;
  z-index: 1;
}

.project-details,
.about-content {
  padding: 80px 0;
}

.project-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.project-description h2,
.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.project-description p,
.about-text p {
  margin-bottom: 30px;
  color: var(--text-color-secondary);
}

/* Project Features Grid */
.project-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.tech-stack-container,
.feature-list-container {
  background-color: var(--background-color-lighter);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-stack,
.feature-list {
  margin-top: 20px;
}

.tech-stack li,
.feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color-secondary);
}

.tech-stack li i,
.feature-list li i {
  color: var(--primary-color);
}

.tech-stack li img {
  width: 16px;
  height: 16px;
}

/* Project Features Grid */
.project-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.tech-stack-large-container,
.feature-list-container {
  background-color: var(--background-color-lighter);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-stack-large,
.feature-list {
  margin-top: 20px;
}

.tech-stack-large li,
.feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color-secondary);
}

.tech-stack-large li i,
.feature-list li i {
  color: var(--primary-color);
}

.tech-stack-large li img {
  width: 30px;
  height: 30px;
}

/* Project Gallery */
.project-gallery {
  margin-top: 50px;
}

.project-gallery h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-speed) ease;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  background-color: rgba(18, 18, 18, 0.8);
  color: var(--text-color);
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.about-portrait {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-portrait:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4);
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Resume Styles */
.resume {
  padding: 80px 0;
  background-color: var(--background-color-light);
}

.resume-container {
  background-color: var(--background-color-lighter);
  border-radius: 10px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.resume-content h2 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.resume-contact {
  font-size: 1rem;
  color: var(--text-color-secondary);
  margin-bottom: 30px;
}

.resume-section {
  margin-bottom: 30px;
}

.resume-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  display: inline-block;
}

.resume-item {
  margin-bottom: 25px;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.resume-header h4 {
  font-size: 1.2rem;
  color: var(--text-color);
}

.resume-header span {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.resume-position {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.resume-item ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.resume-item ul li {
  margin-bottom: 5px;
  color: var(--text-color-secondary);
}

.skills-list-resume {
  list-style-type: none;
  padding-left: 0;
}

.skills-list-resume li {
  margin-bottom: 10px;
  color: var(--text-color-secondary);
}

.skills-list-resume li strong {
  color: var(--text-color);
  margin-right: 10px;
}

.resume-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Resume Preview Styles */
.resume-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--background-color);
  border-radius: 8px;
}

.resume-icon {
  font-size: 3rem;
  color: var(--primary-color);
  background-color: rgba(108, 99, 255, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.resume-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.resume-info p {
  color: var(--text-color-secondary);
}

.resume-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@media (max-width: 576px) {
  .resume-preview {
    flex-direction: column;
    text-align: center;
  }

  .resume-actions {
    flex-direction: column;
  }
}

.contact-section {
  text-align: center;
  padding: 50px 0;
  background-color: var(--background-color-light);
  border-radius: 10px;
  margin-top: 50px;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-section p {
  margin-bottom: 30px;
  color: var(--text-color-secondary);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer */
.footer {
  background-color: var(--background-color-light);
  padding: 40px 0;
  margin-top: 80px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__social {
  display: flex;
  gap: 20px;
}

.social-icon {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

.footer__text {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

/* Project Presentation Styles */
.project-presentation {
  margin-top: 80px;
}

.project-presentation h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.pdf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background-color-lighter);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .pdf-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }
}

.pdf-thumbnail {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  transition: transform var(--transition-speed) ease;
}

@media (min-width: 768px) {
  .pdf-thumbnail {
    margin-bottom: 0;
  }
}

.pdf-thumbnail:hover {
  transform: scale(1.03);
}

.pdf-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdf-overlay i {
  font-size: 4rem;
  color: var(--primary-color);
}

.pdf-info {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .pdf-info {
    text-align: left;
  }
}

.pdf-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.pdf-info p {
  color: var(--text-color-secondary);
  margin-bottom: 25px;
}

.pdf-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 576px) {
  .pdf-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .pdf-actions {
    justify-content: flex-start;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .project-features-grid {
    grid-template-columns: 1fr;
  }

  .project-info,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .qualification__content {
    grid-template-columns: 1fr;
  }

  .resume-container {
    padding: 20px;
  }

  .resume-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }

  .project-title,
  .about-title {
    font-size: 2.5rem;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .resume-content h2 {
    font-size: 1.8rem;
  }

  .resume-section h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .projects__container {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .resume-container {
    padding: 15px;
  }

  .resume-item ul {
    padding-left: 15px;
  }
}
