/* =============================================================
   أكاديمية اختبار البرمجيات — style.css
   Modern RTL Arabic Portfolio — Full CSS3 Design System
   Author: Software QA Academy
   Direction: RTL (Right-to-Left)
============================================================= */

/* ─────────────────────────────────────────────────────────────
   1. CSS Custom Properties (Design Tokens)
───────────────────────────────────────────────────────────── */
:root {
  /* ── Color Palette ── */
  --clr-primary:        #1E3A8A;   /* Deep Tech Blue */
  --clr-primary-dark:   #162C6B;   /* Darker Blue */
  --clr-primary-light:  #3B5DC5;   /* Lighter Blue */
  --clr-primary-subtle: #EFF6FF;   /* Blue tint background */

  --clr-secondary:      #0D9488;   /* Teal/Cyan */
  --clr-secondary-dark: #0A7A6E;   /* Darker Teal */
  --clr-secondary-light:#14B8A6;   /* Lighter Teal */
  --clr-secondary-subtle:#CCFBF1;  /* Teal tint background */

  --clr-bg:             #F8FAFC;   /* Light Soft Gray */
  --clr-bg-alt:         #F1F5F9;   /* Slightly deeper gray */
  --clr-white:          #FFFFFF;
  --clr-dark-bg:        #0F1F4B;   /* Dark section background */
  --clr-dark-bg-2:      #142260;   /* Lighter dark */

  --clr-text:           #1E293B;   /* Charcoal Black */
  --clr-text-muted:     #64748B;   /* Muted Gray */
  --clr-text-light:     #94A3B8;   /* Light Gray text */

  --clr-border:         #E2E8F0;   /* Subtle border */
  --clr-border-dark:    #CBD5E1;   /* Stronger border */

  --clr-success:        #10B981;   /* Green */
  --clr-error:          #EF4444;   /* Red */
  --clr-warning:        #F59E0B;   /* Amber */

  /* ── Typography ── */
  --font-primary: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --fs-xs:    0.75rem;    /* 12px */
  --fs-sm:    0.875rem;   /* 14px */
  --fs-base:  1rem;       /* 16px */
  --fs-md:    1.125rem;   /* 18px */
  --fs-lg:    1.25rem;    /* 20px */
  --fs-xl:    1.5rem;     /* 24px */
  --fs-2xl:   1.875rem;   /* 30px */
  --fs-3xl:   2.25rem;    /* 36px */
  --fs-4xl:   3rem;       /* 48px */
  --fs-5xl:   3.75rem;    /* 60px */
  --fs-6xl:   4.5rem;     /* 72px */

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extrabold:800;
  --fw-black:    900;

  /* ── Spacing ── */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* ── Borders & Radii ── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl:  0 25px 50px -12px rgba(0,0,0,0.2);
  --shadow-colored: 0 10px 30px rgba(30, 58, 138, 0.25);

  /* ── Transitions ── */
  --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 500ms cubic-bezier(0.34,1.56,0.64,1);

  /* ── Layout ── */
  --container-max:  1280px;
  --container-pad:  clamp(1rem, 4vw, 2rem);
  --nav-height:     70px;
  --section-pad:    clamp(4rem, 8vw, 7rem);
}

/* ─────────────────────────────────────────────────────────────
   2. CSS Reset & Base Styles
───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   3. Utility Classes
───────────────────────────────────────────────────────────── */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section padding */
.section-padding {
  padding-block: var(--section-pad);
}

/* ─────────────────────────────────────────────────────────────
   4. Shared Section Header
───────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  background: var(--clr-secondary-subtle);
  border: 1px solid rgba(13,148,136,0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.tag-light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.section-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.title-light {
  color: var(--clr-white);
}

.section-subtitle {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-md));
  color: var(--clr-text-muted);
  max-width: 620px;
  margin-inline: auto;
}

.subtitle-light {
  color: rgba(255,255,255,0.75);
}

/* ─────────────────────────────────────────────────────────────
   5. Shared Button Styles
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  font-family: var(--font-primary);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-base),
    transform var(--transition-spring),
    box-shadow var(--transition-base),
    color var(--transition-base);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: var(--clr-white);
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-secondary-dark));
  box-shadow: 0 14px 40px rgba(30,58,138,0.4);
  color: var(--clr-white);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  color: var(--clr-white);
}

/* ─────────────────────────────────────────────────────────────
   6. HEADER & NAVIGATION
───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}

/* Scrolled state added by JavaScript */
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-xl);
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
}

.brand-text {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  line-height: 1.2;
}

.brand-text strong {
  font-weight: var(--fw-black);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-muted);
  border-radius: var(--radius-md);
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-primary);
  background: var(--clr-primary-subtle);
}

.nav-link.active::after {
  width: 60%;
}

/* ── Hamburger Menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  z-index: 1001;
}

.hamburger:hover {
  background: var(--clr-primary-subtle);
}

.ham-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--clr-primary);
  border-radius: var(--radius-full);
  transition:
    transform var(--transition-base),
    opacity var(--transition-fast),
    width var(--transition-base);
  transform-origin: center;
}

/* Hamburger open state */
.hamburger[aria-expanded="true"] .ham-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .ham-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] .ham-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   7. HERO SECTION
───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--clr-dark-bg) 0%,
    var(--clr-dark-bg-2) 40%,
    #0A3060 70%,
    #0D4040 100%
  );
  padding-top: var(--nav-height);
}

/* ── Geometric Background Animations ── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.geo {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: float-geo 8s ease-in-out infinite;
}

.geo-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--clr-secondary), transparent);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.geo-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--clr-primary-light), transparent);
  bottom: -100px;
  left: 10%;
  animation-delay: -3s;
  opacity: 0.1;
}

.geo-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--clr-secondary-light), transparent);
  top: 30%;
  left: 5%;
  animation-delay: -5s;
  opacity: 0.15;
}

.geo-4 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, var(--clr-primary), var(--clr-secondary));
  top: 20%;
  right: 30%;
  transform: rotate(45deg);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: -2s;
  opacity: 0.05;
}

.geo-5 {
  width: 150px;
  height: 150px;
  border: 2px solid rgba(13,148,136,0.3);
  bottom: 20%;
  right: 15%;
  animation-delay: -4s;
  background: transparent;
  opacity: 0.4;
}

@keyframes float-geo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(5deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}

/* ── Floating Code Lines ── */
.code-line {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: var(--fs-sm);
  color: var(--clr-secondary);
  opacity: 0.25;
  letter-spacing: 0.05em;
  animation: drift 12s ease-in-out infinite;
}

.cl-1 { top: 20%; left: 8%; animation-delay: 0s; }
.cl-2 { bottom: 35%; right: 6%; animation-delay: -4s; font-size: var(--fs-xs); }
.cl-3 { top: 65%; left: 20%; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50%       { transform: translateY(-15px) translateX(5px); opacity: 0.35; }
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: var(--space-3xl);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1.2rem;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-secondary-light);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.05em;
  animation: fade-in-up 0.6s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-secondary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-6xl));
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.7s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--clr-secondary-light), #5EEAD4, var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(var(--fs-base), 2.5vw, var(--fs-lg));
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
  animation: fade-in-up 0.7s ease 0.2s both;
}

/* Hero Bio */
.hero-bio {
  font-size: clamp(var(--fs-sm), 2vw, var(--fs-base));
  color: rgba(255,255,255,0.65);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  animation: fade-in-up 0.7s ease 0.3s both;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
  animation: fade-in-up 0.7s ease 0.4s both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  animation: fade-in-up 0.7s ease 0.5s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  font-weight: var(--fw-black);
  color: var(--clr-secondary-light);
  line-height: 1;
  margin-inline-start: -0.2rem;
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* Reposition suffix in RTL */
.stat-item {
  position: relative;
}

.stat-item {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: baseline;
}

.stat-number,
.stat-suffix {
  display: inline;
}

.stat-label {
  width: 100%;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  font-weight: var(--fw-medium);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  align-self: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: bounce-down 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-full);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

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

/* ─────────────────────────────────────────────────────────────
   8. ABOUT SECTION
───────────────────────────────────────────────────────────── */
.about-section {
  background: var(--clr-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-4xl);
  align-items: start;
}

/* ── Avatar Visual ── */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-card {
  position: relative;
  z-index: 1;
}

.avatar-frame {
  width: 300px;
  height: 300px;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-primary-subtle), var(--clr-secondary-subtle));
  border: 4px solid var(--clr-white);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--clr-border);
  animation: morph-border 8s ease-in-out infinite;
}

@keyframes morph-border {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  33%       { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  66%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.avatar-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-tags {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.exp-tag {
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
}

.tag-blue {
  background: var(--clr-primary-subtle);
  color: var(--clr-primary);
  border: 1px solid rgba(30,58,138,0.15);
}

.tag-teal {
  background: var(--clr-secondary-subtle);
  color: var(--clr-secondary-dark);
  border: 1px solid rgba(13,148,136,0.2);
}

/* Floating skill pills */
.skill-pill {
  position: absolute;
  padding: 0.4rem 0.9rem;
  background: var(--clr-white);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  animation: float-pill 4s ease-in-out infinite;
  white-space: nowrap;
}

.pill-1 { top: 5%;  right: -10px; animation-delay: 0s; }
.pill-2 { top: 40%; left: -15px;  animation-delay: -1.5s; }
.pill-3 { bottom: 25%; right: -20px; animation-delay: -3s; }
.pill-4 { bottom: 5%;  left: -5px; animation-delay: -0.8s; }

@keyframes float-pill {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── About Content ── */
.about-content {
  padding-block: var(--space-md);
}

.about-name {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-xl));
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}

.about-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  margin-right: 0;
}

.about-paragraph {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

/* ── Skill Bars ── */
.about-skills {
  margin-top: var(--space-2xl);
}

.skills-heading {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--space-lg);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.skill-percent {
  color: var(--clr-secondary);
  font-weight: var(--fw-bold);
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────
   9. CURRICULUM SECTION
───────────────────────────────────────────────────────────── */
.curriculum-section {
  background: var(--clr-bg);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ── Curriculum Card ── */
.curriculum-card {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  overflow: hidden;
}

.curriculum-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: right;
}

.curriculum-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.curriculum-card:hover::before {
  transform: scaleX(1);
}

/* Featured Card */
.featured-card {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #1a4599 50%, #0c7a6e 100%);
  border-color: transparent;
  color: var(--clr-white);
}

.featured-card::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
}

.featured-card .card-description,
.featured-card .card-level,
.featured-card .card-hours,
.featured-card .card-topics li {
  color: rgba(255,255,255,0.85);
}

.featured-card .card-title {
  color: var(--clr-white);
}

.featured-card .card-footer {
  border-color: rgba(255,255,255,0.2);
}

.featured-card .card-topics li::before {
  background: rgba(255,255,255,0.7);
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.25rem 0.75rem;
  background: var(--clr-warning);
  color: #1c1400;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

/* Card Icon */
.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.icon-blue {
  color: var(--clr-primary);
  background: var(--clr-primary-subtle);
}

.icon-teal {
  color: var(--clr-secondary);
  background: var(--clr-secondary-subtle);
}

.featured-card .icon-blue,
.featured-card .icon-teal {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Card Body */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

.card-description {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.card-topics {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.card-topics li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.card-topics li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-secondary);
  flex-shrink: 0;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--clr-border);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.card-level {
  color: var(--clr-secondary-dark);
  background: var(--clr-secondary-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.card-hours {
  color: var(--clr-text-muted);
}

.featured-card .card-level {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
}

/* ─────────────────────────────────────────────────────────────
   10. METHODOLOGY SECTION
───────────────────────────────────────────────────────────── */
.methodology-section {
  background: linear-gradient(
    135deg,
    var(--clr-dark-bg) 0%,
    var(--clr-dark-bg-2) 50%,
    #0A3060 100%
  );
  position: relative;
  overflow: hidden;
}

.methodology-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.methodology-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin-inline: auto;
}

/* ── Each Step ── */
.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Step Number Column */
.step-number-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(13,148,136,0.4);
}

.step-connector {
  width: 2px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, rgba(13,148,136,0.5), transparent);
  margin-block: var(--space-sm);
}

/* Step Content */
.step-content-wrapper {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding-bottom: var(--space-3xl);
  padding-top: var(--space-sm);
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.step-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.step-text {
  flex: 1;
}

.step-title {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-xl));
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.step-description {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.step-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
}

.step-highlights li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(13,148,136,0.25);
  border: 1px solid rgba(13,148,136,0.5);
  border-radius: 50%;
  font-size: 11px;
  color: var(--clr-secondary-light);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   11. WHY QA SECTION
───────────────────────────────────────────────────────────── */
.why-qa-section {
  background: var(--clr-white);
}

/* Quote */
.qa-quote {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--clr-primary-subtle), var(--clr-secondary-subtle));
  border-radius: var(--radius-xl);
  border-right: 4px solid var(--clr-primary);
  text-align: center;
  position: relative;
}

.qa-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 8rem;
  color: var(--clr-primary);
  opacity: 0.1;
  line-height: 1;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: normal;
}

.quote-cite {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-style: italic;
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Reason Card */
.reason-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--clr-white);
}

.reason-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.reason-icon svg {
  width: 100%;
  height: 100%;
}

.reason-body {
  flex: 1;
}

.reason-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.reason-text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   12. CONTACT SECTION
───────────────────────────────────────────────────────────── */
.contact-section {
  background: var(--clr-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* ── Contact Info Column ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contact-info-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--clr-primary-subtle), var(--clr-secondary-subtle));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
  border: 1px solid var(--clr-border);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-value {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
}

a.info-value:hover {
  color: var(--clr-secondary);
}

/* Social links */
.social-links-box {
  padding: var(--space-xl);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}

.social-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--space-lg);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-spring),
    box-shadow var(--transition-base);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--clr-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Contact Form ── */
.contact-form-wrapper {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.required-star {
  color: var(--clr-error);
  margin-inline-start: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  outline: none;
  text-align: right;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 18px;
  padding-left: 40px;
  cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.form-input.has-error,
.form-textarea.has-error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.field-error {
  font-size: var(--fs-xs);
  color: var(--clr-error);
  font-weight: var(--fw-medium);
  min-height: 1em;
}

.char-counter {
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  text-align: left;
}

/* Submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: var(--fs-base);
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.spin-icon {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.send-icon {
  width: 18px;
  height: 18px;
}

/* Form Success */
.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--clr-secondary-subtle);
  border-radius: var(--radius-md);
  border: 1px solid rgba(13,148,136,0.3);
  animation: fade-in-up 0.4s ease both;
}

.form-success svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.form-success p {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-secondary-dark);
}

/* ─────────────────────────────────────────────────────────────
   13. FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-dark-bg);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-xl);
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  text-decoration: none;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-spring);
}

.footer-social-link:hover {
  background: var(--clr-secondary);
  border-color: var(--clr-secondary);
  color: white;
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* Footer Columns */
.footer-col-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast), padding-right var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-secondary-light);
  padding-right: 4px;
}

/* Newsletter */
.footer-newsletter-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
  border-color: var(--clr-secondary);
}

.newsletter-input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  color: white;
  font-size: var(--fs-sm);
  outline: none;
  font-family: var(--font-primary);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-btn {
  padding: 0.7rem 1rem;
  background: var(--clr-secondary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--clr-secondary-dark);
}

.newsletter-btn svg {
  width: 18px;
  height: 18px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy,
.footer-made {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.4);
}

/* ─────────────────────────────────────────────────────────────
   14. BACK TO TOP BUTTON
───────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition:
    transform var(--transition-spring),
    opacity var(--transition-base);
  opacity: 0;
  z-index: 999;
}

.back-to-top:not([hidden]) {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ─────────────────────────────────────────────────────────────
   15. SCROLL REVEAL ANIMATIONS
───────────────────────────────────────────────────────────── */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Reveal classes added by Intersection Observer via JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─────────────────────────────────────────────────────────────
   16. RESPONSIVE DESIGN — MEDIA QUERIES
   Mobile-first approach, scaling up
───────────────────────────────────────────────────────────── */

/* ── Small devices (mobile < 640px) ── */
@media (max-width: 639px) {

  :root {
    --nav-height: 64px;
  }

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    background: rgba(15, 31, 75, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
  }

  .nav-link {
    font-size: var(--fs-xl);
    color: rgba(255,255,255,0.8);
    padding: var(--space-sm) var(--space-xl);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--clr-white);
    background: rgba(255,255,255,0.1);
  }

  /* Hero */
  .hero-title {
    font-size: var(--fs-3xl);
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .stat-divider {
    height: 36px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-visual {
    order: -1;
  }

  .avatar-frame {
    width: 220px;
    height: 220px;
  }

  .skill-pill {
    display: none;
  }

  /* Curriculum */
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Methodology */
  .method-step {
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
  }

  .step-content-wrapper {
    flex-direction: column;
    gap: var(--space-md);
  }

  .step-icon-wrap {
    display: none;
  }

  /* Reasons Grid */
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .reason-card {
    flex-direction: column;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .social-icons {
    flex-wrap: wrap;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 42px;
    height: 42px;
  }
}

/* ── Medium devices (tablet 640px–1023px) ── */
@media (min-width: 640px) and (max-width: 1023px) {

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--clr-border);
    z-index: 998;
    transform: translateY(-150%);
    transition: transform var(--transition-slow);
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: all;
  }

  .nav-link {
    font-size: var(--fs-base);
    color: var(--clr-text);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .avatar-frame {
    width: 250px;
    height: 250px;
  }

  /* Curriculum */
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reasons */
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Large devices (desktop 1024px+) ── */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    /* Reset to visible for desktop */
    position: static;
    flex-direction: row;
    visibility: visible;
    pointer-events: all;
    background: transparent;
    transform: none;
    box-shadow: none;
    padding: 0;
  }
}

/* ── Extra large (1280px+) ── */
@media (min-width: 1280px) {
  .curriculum-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Hover only on capable devices ── */
@media (hover: none) {
  .curriculum-card:hover,
  .reason-card:hover,
  .btn:hover,
  .social-btn:hover {
    transform: none;
  }
}
