/* Modern Design System Tokens */
:root {
  /* Vibrant, Light, Live Colors */
  --color-primary: #0ea5e9;
  /* Vibrant Ocean Blue */
  --color-primary-dark: #0284c7;
  --color-primary-light: #38bdf8;
  --color-secondary: #0d9488;
  /* Lively Teal */
  --color-bg-main: #ffffff;
  /* Clean White */
  --color-bg-alt: #f1f5f9;
  /* Slate 50 (Very light gray/blue) */
  --color-text-main: #1e293b;
  /* Slate 800 (Dark but not black) */
  --color-text-muted: #475569;
  /* Slate 600 */
  --color-text-light: #94a3b8;
  /* Slate 400 */
  --color-border: #e2e8f0;
  /* Slate 200 */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0ea5e9, #0d9488);
  --gradient-subtle: linear-gradient(to right, rgba(14, 165, 233, 0.05), rgba(13, 148, 136, 0.05));

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Shadows (Soft, modern elevations) */
  --shadow-sm: 0 1px 2px 0 rgba(14, 165, 233, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(14, 165, 233, 0.1), 0 4px 6px -2px rgba(14, 165, 233, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(14, 165, 233, 0.15), 0 10px 10px -5px rgba(14, 165, 233, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
  margin-bottom: var(--spacing-sm);
}

p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

/* Layout Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  position: relative;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  /* Pill shape */
  border: none;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
  color: white;
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-main);
}

/* Micro-animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.stagger-container .stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-container.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}


/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.testimonial-card {
  background: var(--color-bg-main);
  padding: var(--spacing-xl);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-bounce);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.quote-icon {
  color: var(--color-primary-light);
  opacity: 0.2;
  margin-bottom: var(--spacing-md);
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-main);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.testimonial-info {
  margin-top: auto;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
/* Page-Specific Styles (moved from index.html) */

    /* Specific Page Styles */

    /* Hero Section */
    .hero {
      padding: calc(var(--spacing-2xl) + var(--header-height)) 0 var(--spacing-2xl);
      min-height: 85vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 800px;
      height: 800px;
      background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
      border-radius: 50%;
      z-index: -1;
    }

    .hero-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--spacing-2xl);
      align-items: center;
    }

    .hero-text h1 {
      font-size: 3.5rem;
      line-height: 1.1;
      margin-bottom: var(--spacing-md);
      color: var(--color-text-main);
    }

    .hero-text p {
      font-size: 1.25rem;
      margin-bottom: var(--spacing-xl);
      max-width: 540px;
    }

    .hero-actions {
      display: flex;
      gap: var(--spacing-md);
    }

    .hero-image {
      position: relative;
      display: flex;
      justify-content: center;
    }

    .hero-image img {
      width: 100%;
      max-width: 350px;
      border-radius: 2rem;
      box-shadow: var(--shadow-lg);
      display: block;
      margin: 0;
      z-index: 2;
      position: relative;
    }

    .hero-image::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: calc(100% + 40px);
      max-width: 390px;
      height: calc(100% + 40px);
      border: 3px solid var(--color-primary);
      border-radius: 2.5rem;
      z-index: 1;
      transition: all var(--transition-smooth);
    }

    .hero-image:hover::after {
      transform: translate(calc(-50% + 10px), calc(-50% - 10px));
    }

    /* Services Section */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: var(--spacing-xl);
    }

    .services-grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }

    .service-card {
      background: var(--color-bg-main);
      padding: var(--spacing-xl);
      border-radius: 1.5rem;
      box-shadow: var(--shadow-md);
      transition: all var(--transition-bounce);
      border: 1px solid var(--color-border);
      position: relative;
      overflow: hidden;
    }

    .service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--gradient-primary);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform var(--transition-smooth);
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-hover);
    }

    .service-card:hover::before {
      transform: scaleX(1);
    }

    .service-icon {
      width: 64px;
      height: 64px;
      background: var(--gradient-subtle);
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: var(--spacing-lg);
      color: var(--color-primary);
    }

    .service-icon svg {
      width: 32px;
      height: 32px;
      stroke-width: 1.5;
    }

    .service-title {
      font-size: 1.5rem;
      margin-bottom: var(--spacing-sm);
    }

    .service-skills {
      display: flex;
      flex-wrap: wrap;
      gap: var(--spacing-xs);
      margin-top: var(--spacing-md);
    }

    .skill-tag {
      background: var(--color-bg-alt);
      color: var(--color-primary-dark);
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      font-size: 0.875rem;
      font-weight: 500;
      border: 1px solid rgba(14, 165, 233, 0.2);
    }

    /* Experience Section */
    .timeline {
      max-width: 800px;
      margin: 0 auto;
      position: relative;
    }

    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      left: 32px;
      height: 100%;
      width: 2px;
      background: var(--color-border);
    }

    .timeline-item {
      position: relative;
      padding-left: 80px;
      margin-bottom: var(--spacing-2xl);
    }

    .timeline-item:last-child {
      margin-bottom: 0;
    }

    .timeline-icon {
      position: absolute;
      left: 16px;
      top: 0;
      width: 34px;
      height: 34px;
      background: var(--color-bg-main);
      border: 3px solid var(--color-primary);
      border-radius: 50%;
      z-index: 1;
    }

    .timeline-content {
      background: var(--color-bg-main);
      padding: var(--spacing-xl);
      border-radius: 1rem;
      box-shadow: var(--shadow-md);
      border: 1px solid var(--color-border);
      transition: all var(--transition-smooth);
    }

    .timeline-content:hover {
      box-shadow: var(--shadow-hover);
      border-color: rgba(14, 165, 233, 0.3);
    }

    .timeline-title {
      font-size: 1.35rem;
      color: var(--color-text-main);
      margin-bottom: 0.25rem;
    }

    .timeline-meta {
      display: flex;
      gap: var(--spacing-md);
      color: var(--color-primary);
      font-weight: 500;
      font-size: 0.9rem;
      margin-bottom: var(--spacing-md);
    }

    .timeline-list {
      list-style: none;
    }

    .timeline-list li {
      color: var(--color-text-muted);
      margin-bottom: var(--spacing-sm);
      position: relative;
      padding-left: 1.5rem;
    }

    .timeline-list li::before {
      content: "\2192";
      position: absolute;
      left: 0;
      color: var(--color-secondary);
      font-weight: bold;
    }

    /* Skills Grid */
    .skills-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: var(--spacing-lg);
    }

    .skill-category {
      background: var(--color-bg-main);
      padding: var(--spacing-xl);
      border-radius: 1.5rem;
      box-shadow: var(--shadow-md);
      border: 1px solid var(--color-border);
    }

    .skill-category-title {
      font-size: 1.25rem;
      margin-bottom: var(--spacing-md);
      display: flex;
      align-items: center;
      gap: var(--spacing-sm);
      color: var(--color-primary-dark);
    }

    .skill-category-title svg {
      width: 24px;
      height: 24px;
    }

    /* Stats Section */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: var(--spacing-xl);
      margin-top: var(--spacing-2xl);
    }

    .stat-card {
      text-align: center;
      padding: var(--spacing-xl);
      background: var(--gradient-subtle);
      border-radius: 1rem;
      border: 1px dashed rgba(14, 165, 233, 0.3);
    }

    .stat-value {
      font-size: 3rem;
      font-weight: 800;
      font-family: var(--font-heading);
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: var(--spacing-xs);
    }

    .stat-label {
      font-weight: 500;
      color: var(--color-text-muted);
    }

    /* Contact Section */
    .contact-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--spacing-2xl);
      align-items: start;
    }

    .contact-info {
      padding-right: var(--spacing-xl);
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
      margin-bottom: var(--spacing-lg);
    }

    .contact-icon {
      width: 48px;
      height: 48px;
      background: var(--color-bg-alt);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-primary);
    }

    .contact-item h4 {
      margin-bottom: 0.25rem;
      font-size: 1.1rem;
    }

    .contact-item p,
    .contact-item a {
      color: var(--color-text-muted);
      margin: 0;
    }

    .form-group {
      margin-bottom: var(--spacing-lg);
    }

    .form-control {
      width: 100%;
      padding: 1rem;
      border: 1px solid var(--color-border);
      border-radius: 0.75rem;
      font-family: var(--font-sans);
      font-size: 1rem;
      color: var(--color-text-main);
      background: var(--color-bg-main);
      transition: all var(--transition-smooth);
    }

    .form-control:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    }

    textarea.form-control {
      min-height: 150px;
      resize: vertical;
    }

    /* Footer */
    .footer {
      background-color: var(--color-bg-alt);
      padding: var(--spacing-xl) 0;
      text-align: center;
      border-top: 1px solid var(--color-border);
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: var(--spacing-md);
      margin-bottom: var(--spacing-md);
    }

    .social-link {
      width: 40px;
      height: 40px;
      background: var(--color-bg-main);
      border: 1px solid var(--color-border);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-text-muted);
      transition: all var(--transition-bounce);
    }

    .social-link:hover {
      background: var(--gradient-primary);
      color: white;
      border-color: transparent;
      transform: translateY(-3px);
    }

    /* Responsive Design */
    @media (max-width: 992px) {
      .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .hero-actions {
        justify-content: center;
      }

      .hero-text h1 {
        font-size: 3rem;
      }

      .hero-image {
        margin-top: var(--spacing-xl);
      }

      .contact-wrapper {
        grid-template-columns: 1fr;
      }

      .contact-info {
        padding-right: 0;
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        text-align: center;
      }

      .nav-links.active {
        display: flex;
      }

      .mobile-menu-btn {
        display: block;
      }

      .hero-text h1 {
        font-size: 2.5rem;
      }

      .timeline::before {
        left: 15px;
      }

      .timeline-item {
        padding-left: 45px;
      }

      .timeline-icon {
        left: 0;
        width: 32px;
        height: 32px;
      }

      .section-title {
        font-size: 2rem;
      }
    }

    @media (max-width: 1199px) {
      .services-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      }
    }

    @media (min-width: 1200px) {
      .skills-container {
        grid-template-columns: repeat(4, 1fr);
      }
    }
  
