/* General Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #333;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.site-header .main-nav {
  display: flex;
}

.site-header .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.site-header .nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.site-header .nav-links a:hover {
  color: #1e90ff;
}

/* Sticky Scroll Effect */
.scrolled .site-header {
  background: rgba(51, 51, 51, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}

.nav-toggle .hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  position: absolute;
  transition: transform 0.3s ease;
}

.nav-toggle .hamburger::before {
  transform: translateY(-8px);
}

.nav-toggle .hamburger::after {
  transform: translateY(8px);
}
.nav-links a.active {
  color: #1e90ff;
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.showcase {
  position: relative;
  width: 100%;
  height: 88vh;
  overflow: hidden;
  background: linear-gradient(to bottom, #1e1e1e, #333);
  color: white;
  text-align: center;
}

.showcase canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.showcase .overlay {
  position: relative;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
}

.showcase h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.showcase p {
  font-size: 1.5rem;
}

.about {
  background: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

/* About Section */
.about {
  background: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-content .headshot {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-content .headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .about-text {
  max-width: 800px;
  text-align: center;
}

.about-content .about-text p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Languages Section */
.languages {
  margin-top: 30px;
}

.languages h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.language-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.language {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
}

.language img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.language span {
  font-size: 1rem;
  color: #333;
}
.language:hover img {
  transform: scale(1.3); /* Larger scale */
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.6); /* Glow effect */
  filter: brightness(1.2); /* Slight brightness boost */
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.language:hover span {
  color: #1e90ff; /* Highlight the label text */
  transition: color 0.3s ease;
}


.portfolio {
  padding: 50px 20px;
  background: #f9f9f9;
}

.portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 400px;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-preview {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
}

.project-preview img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  min-height: 100%;
  background: rgba(0,0,0,0.85);
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  z-index: 10;
}

.project-card:hover .project-overlay {
  opacity: 3;
  height: auto;
  min-height: 100%;
  border-radius: 15px;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1.5rem;
  max-height: none;
}

.tech-stack {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tech-tag {
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
  backdrop-filter: blur(5px);
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.github-link, .live-demo {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-link {
  background: #24292e;
}

.live-demo {
  background: #1e90ff;
}

.github-link:hover, .live-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Transitions for smoother menu open/close */
.main-nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: none;
  backdrop-filter: none;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  padding: 2rem 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  flex-direction: column;
  padding: 0;
  margin: 0;
  text-align: right;
}

.nav-links li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active States */
.main-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  background: #433f3f;
  width: 150px;
  right: 75px;
  top: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  margin-right: 10px;
}

.main-nav.active .nav-links {
  text-align: center;
}

.main-nav.active .nav-links li {
  opacity: 1;
  transform: translateX(0);
  padding: 5px 15px;
}

/* Stagger Animation */
.nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-links li:nth-child(2) { transition-delay: 0.2s; }
.nav-links li:nth-child(3) { transition-delay: 0.3s; }
.nav-links li:nth-child(4) { transition-delay: 0.4s; }
.nav-links li:nth-child(5) { transition-delay: 0.5s; }

/* Nav Toggle Button */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  transition: all 0.3s ease-in-out;
}

.nav-toggle.open .hamburger {
  background: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Link Styles */
.nav-links a {
  display: block;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  position: relative;
  color: white;
}

/* Optional: Add hover effect for links */
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #1e90ff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Remove all media queries related to nav visibility */

/* Scroll Prompt Container */
.scroll-prompt {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* Scroll Text */
.scroll-text {
  font-size: 1rem;
  color: white;
  opacity: 0.8;
  animation: fade-in-out 2s infinite;
}

@keyframes fade-in-out {
  0%, 100% {
      opacity: 0.8;
  }
  50% {
      opacity: 1;
  }
}

/* Scroll Arrow */
.scroll-arrow {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  animation: bounce 1.5s infinite;
}

.scroll-arrow:hover {
  color: #1e90ff;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  /* Scroll Prompt Container */
  .scroll-prompt {
      position: absolute;
      bottom: 10px; /* Move closer to the bottom on smaller screens */
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      z-index: 100; /* Ensure it stays above other elements */
  }

  /* Scroll Text */
  .scroll-prompt .scroll-text {
      font-size: 0.9rem; /* Slightly smaller for mobile */
      color: white;
      opacity: 0.8;
      animation: fade-in-out 2s infinite;
  }

  /* Scroll Arrow */
  .scroll-prompt .scroll-arrow {
      font-size: 1.5rem; /* Reduce size slightly */
      color: white;
      background: none;
      border: none;
      cursor: pointer;
      animation: bounce 1.5s infinite;
  }

  .scroll-prompt .scroll-arrow:hover {
      color: #1e90ff;
  }

  /* Reduce Animation Intensity for Performance */
  @keyframes bounce {
      0%, 100% {
          transform: translateY(0);
      }
      50% {
          transform: translateY(-5px); /* Smaller bounce on mobile */
      }
  }

  @keyframes fade-in-out {
      0%, 100% {
          opacity: 0.8;
      }
      50% {
          opacity: 1;
      }
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .project-preview {
    min-height: 400px;
  }

  .project-card {
    min-height: 450px;
  }

  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
  }

  .project-overlay h3 {
    margin-bottom: 0.75rem;
  }

  .project-description {
    margin-bottom: 0.75rem;
  }

  .tech-stack {
    margin: 0.75rem 0;
  }

  .project-links {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .site-header .main-nav {
    display: block;
  }
}

/* Update mobile styles */
@media (max-width: 768px) {
  .project-overlay {
    padding: 1.5rem;
    overflow-y: auto; /* Allow scrolling if content is too long */
  }

  .project-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .project-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .tech-stack {
    gap: 5px;
    margin: 0.5rem 0;
  }

  .tech-tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .project-links {
    gap: 1rem;
    margin-top: 1rem;
  }

  .github-link, .live-demo {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Add styles for when overlay is active */
.project-card:hover .project-preview,
.project-card:focus-within .project-preview {
  min-height: max-content;
}

.project-card:hover,
.project-card:focus-within {
  height: auto;
}

.contact {
    padding: 80px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 20px;
}

.contact-details {
    margin-top: 30px;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1e90ff;
}

.contact-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #1e90ff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1976d2;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: #f8f9fa;
}
.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.skills-category {
    margin-bottom: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-header i {
    font-size: 24px;
    color: #1e90ff;
}

.skill-progress {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
}

.progress-bar {
    background: #1e90ff;
    height: 100%;
    border-radius: 4px;
    position: relative;
}

.progress-bar span {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
}

.skill-details {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.skill-details li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.skill-details li::before {
    content: "•";
    color: #1e90ff;
    position: absolute;
    left: 0;
}

/* Professional Skills */
.professional-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.skill-badge {
    background: white;
    padding: 15px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-badge i {
    color: #1e90ff;
}

/* Experience Section */
.experience {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #1e90ff;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e90ff;
    border: 4px solid white;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-header h3 {
    margin: 0;
    color: #333;
}

.company {
    color: #1e90ff;
    font-weight: 500;
}

.date {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.achievements {
    margin: 15px 0;
    padding-left: 20px;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-used span {
    background: #f0f4f8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #1e90ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .professional-skills {
        justify-content: center;
    }
}

/* Certification Styles */
.cert-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item img {
    width: 120px;  /* Set a fixed width */
    height: 120px; /* Set a fixed height */
    object-fit: contain; /* Maintains aspect ratio */
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa; /* Light background for the image */
    transition: transform 0.3s ease;
}

.cert-item:hover img {
    transform: scale(1.05);
}

.cert-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cert-item p {
    color: #666;
    margin-bottom: 10px;
}

.cert-date {
    display: inline-block;
    padding: 4px 12px;
    background: #1e90ff;
    color: white;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Grid layout for multiple certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .cert-item img {
        width: 100px;
        height: 100px;
    }
}

/* Footer Styles */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #1e90ff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1e90ff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

/* Header CTA Buttons */
.header-cta {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.cta-button {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:not(.secondary) {
    background: #1e90ff;
    color: white;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #1e90ff;
    color: #1e90ff;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}



