/* Global Settings */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navigation */
.site-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.site-navigation.scrolled {
  background: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .site-navigation.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

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

/* Project Card Hover */
.portfolio-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Lab Card Theme Variables */
.lab-card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
}

.portfolio-card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
}

.btn:hover::after {
  animation: shine 0.75s;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

/* Gallery Hover */
.portfolio-card {
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-image::after {
  opacity: 1;
}

.portfolio-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Skeleton Loader */
.skeleton {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 52rem;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 0 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-text);
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.5rem;
  flex-shrink: 0;
}

.dark-mode .mobile-menu-toggle {
  color: var(--foreground);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    gap: 1.5rem;
  }
  
  .dark-mode .nav-links {
    background: var(--card);
  }
  
  .nav-links.active {
    display: flex !important;
    background: var(--nav-bg) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .theme-toggle {
    display: flex;
    margin-top: 1rem;
    padding: 0.5rem;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--border);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, 20px); }
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(248, 249, 250, 0.5);
  top: 0;
  right: 0;
  transform: translate(25%, -50%);
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 111, 97, 0.15);
  bottom: 0;
  left: 0;
  transform: translate(-25%, 33%);
  animation: float 6s ease-in-out infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--muted);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 2rem;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .hero-image img {
    aspect-ratio: 1/1;
  }
}

.image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 2rem;
  transform: translate(1rem, 1rem);
  z-index: -1;
}

.image-backdrop.accent {
  background: rgba(255, 111, 97, 0.2);
  transform: translate(-1rem, -1rem);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  position: relative;
}

.page-section {
  margin-top: 5rem;
}

.about-centered {
  position: relative;
  overflow: hidden;
}

.about-motion-bg {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(30, 144, 255, 0.03) 0px,
      rgba(30, 144, 255, 0.03) 2px,
      transparent 2px,
      transparent 60px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(30, 144, 255, 0.03) 0px,
      rgba(30, 144, 255, 0.03) 2px,
      transparent 2px,
      transparent 60px
    );
  animation: gridFlow 20s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes gridFlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-motion-bg {
    animation: none;
  }
}

.about-centered-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 2rem;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-centered .section-label {
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.about-centered .section-title {
  margin-left: auto;
  margin-right: auto;
}

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-centered .about-text {
  margin-left: auto;
  margin-right: auto;
}

.skills-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: #1e293b;
  border-radius: 1rem;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.dark-mode .skills-grid {
  background-color: #1e293b;
}

body:not(.dark-mode) .skills-grid {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.about-centered .skills-grid {
  justify-content: center;
}

.skill-btn {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 111, 97, 0.3);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dark-mode .skill-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 111, 97, 0.3);
  color: #ffffff;
}

body:not(.dark-mode) .skill-btn {
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid rgba(30, 144, 255, 0.3);
  color: #1e293b;
}

.motion-skill-item {
  opacity: 0;
  animation: slideInSkill 0.5s ease-out forwards;
}

@keyframes slideInSkill {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-btn:nth-child(1) { animation-delay: 0.4s; }
.skill-btn:nth-child(2) { animation-delay: 0.5s; }
.skill-btn:nth-child(3) { animation-delay: 0.6s; }
.skill-btn:nth-child(4) { animation-delay: 0.7s; }
.skill-btn:nth-child(5) { animation-delay: 0.8s; }
.skill-btn:nth-child(6) { animation-delay: 0.9s; }

.dark-mode .skill-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 111, 97, 0.2);
  color: var(--accent);
  transform: translateY(-3px) scale(1.05);
}

body:not(.dark-mode) .skill-btn:hover {
  border-color: #1E90FF;
  background: rgba(30, 144, 255, 0.15);
  color: #1E90FF;
  transform: translateY(-3px) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .motion-skill-item {
    animation: none;
    opacity: 1;
  }
}

.cv-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cv-card-large {
  padding: 2.5rem;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--card) 0%, var(--card) 100%);
}

.cv-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.cv-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

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

.portfolio-image img {
  border-radius: 12px;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .portfolio-title {
    font-size: 1.875rem;
  }
}

.portfolio-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.portfolio-details {
  margin-bottom: 2rem;
}

.detail {
  margin-bottom: 0.75rem;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.detail-text {
  color: var(--muted-foreground);
}

/* Testimonial Section */
.testimonial-section {
  padding: 6rem 0;
}

.testimonial-card {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .testimonial-quote {
    font-size: 1.875rem;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(59, 130, 246, 0.8) 100%);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Services Page */
.page-header {
  padding: 8rem 0 4rem;
  margin-top: 4rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3.75rem;
  }
}

.page-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.services-section {
  padding: 5rem 0;
}

.services-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.workflow-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
}

.workflow-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.workflow-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.workflow-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.workflow-tag {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.workflow-tag:hover {
  border-color: var(--accent);
  background: rgba(255, 111, 97, 0.1);
  color: var(--accent);
  transform: translateY(-3px) scale(1.05);
}

/* Contact Page */
.contact-section {
  padding: 6rem 0;
}

.contact-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 3.75rem;
  }
}

.contact-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 4rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card-icon {
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  word-break: break-word;
}

.contact-card-value:hover {
  color: var(--accent);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.btn-ghost:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

.dark-mode .btn-ghost {
  border-color: #4da6ff;
  color: #4da6ff;
}

.dark-mode .btn-ghost:hover {
  background: #4da6ff;
  color: #1e293b;
}

.about-text-center {
  text-align: center;
}

.about-text-center .about-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-text-center .skills-title {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text-center .skills-grid {
  justify-content: center;
  margin-bottom: 2rem;
}

.about-text-center .btn-ghost {
  display: inline-flex;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 0;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
  background: rgba(30, 144, 255, 0.05);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary);
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.dark-mode .faq-question {
  color: #f7fafc;
}

.dark-mode .faq-question:hover {
  background: rgba(30, 144, 255, 0.1);
  color: #4da6ff;
}

body:not(.dark-mode) .faq-question {
  color: #1e293b;
}

body:not(.dark-mode) .faq-question:hover {
  background: rgba(30, 144, 255, 0.08);
  color: #1E90FF;
}

body:not(.dark-mode) .faq-item[open] {
  background: rgba(30, 144, 255, 0.05);
}

.faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
  animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 15px 15px 15px;
  }
}

/* Services Hero */
.services-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.services-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.services-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 600px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .services-hero {
    padding: 80px 0;
    margin-top: 80px;
    min-height: 300px;
  }
  
  .services-hero-title {
    font-size: 2rem;
  }
  
  .services-hero-subtitle {
    font-size: 1rem;
  }
}

/* Motion About Visual */
.about-image {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motion-about-visual {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.skill-hexagon {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0;
  animation: hexFadeIn 0.6s ease-out forwards;
}

@keyframes hexFadeIn {
  0% {
    opacity: 0;
    transform: translate(0, 20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-hexagon-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.1s;
}

.skill-hexagon-2 {
  bottom: 20px;
  left: 10px;
  animation-delay: 0.2s;
}

.skill-hexagon-3 {
  bottom: 20px;
  right: 10px;
  animation-delay: 0.3s;
}

.hexagon-inner {
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(30, 144, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-hexagon:hover .hexagon-inner {
  background: rgba(30, 144, 255, 0.1);
  transform: scale(1.1);
}

.motion-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  color: var(--primary);
}

.line-1, .line-2, .line-3 {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.5s ease-out forwards;
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 200;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
}

.line-1 { animation-delay: 0.4s; }
.line-2 { animation-delay: 0.5s; }
.line-3 { animation-delay: 0.6s; }

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column-reverse;
    align-items: center;
  }
  
  .about-image {
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-about-visual,
  .skill-hexagon,
  .motion-lines,
  .line-1, .line-2, .line-3 {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* Portfolio Categories */
.portfolio-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.category-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  display: inline-block;
  color: var(--foreground);
}

/* Card Meta & Status Tags */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-tag {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 9999px;
  background: #ecfdf5 !important;
  color: #10b981 !important;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Lab Grid Stack */
@media (max-width: 768px) {
  .lab-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 1.5rem !important;
  }
  
  .lab-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 2rem !important;
  }
  
  .portfolio-categories {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 1.5rem !important;
  }
  
  .portfolio-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 1.5rem !important;
  }
  
  .portfolio-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 2rem !important;
  }
  
  .portfolio-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .portfolio-card p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  .card-header {
    margin-bottom: 1.5rem !important;
  }
  
  .status-tag {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.75rem !important;
  }
  
  /* Mobile Menu Enhancement */
  .nav-links {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .dark-mode .nav-links {
    background: rgba(15, 23, 42, 0.9) !important;
  }
  
  /* Hero Image Max Width */
  .hero-image {
    max-width: 100%;
  }
  
  .hero-image img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Utilities */
.text-center {
  text-align: center;
  padding-top: 2rem;
}

.bg-section {
  background-color: var(--muted);
}
/* LIGHT MODE HEADER FIX */
body:not(.dark-mode) .nav-link {
    color: #1e293b !important; /* Forces dark text in light mode */
}

body:not(.dark-mode) .site-navigation:not(.scrolled) {
    background: rgba(255, 255, 255, 0.5); /* Adds slight tint so links are readable */
    backdrop-filter: blur(10px);
}

/* Ensure Logo is visible in light mode */
body:not(.dark-mode) .site-logo {
    color: var(--primary) !important;
}

/* DARK MODE HEADER FIX (Just to be safe) */
.dark-mode .nav-link {
    color: #f8fafc !important;
}
