/* ================================================
   IJSTECH PORTFOLIO — STYLESHEET
   Organized sections:
   1.  CSS Variables (tokens) + Light Theme
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Cursor Glow
   6.  Background Grid
   7.  Navigation + Theme Toggle
   8.  Buttons
   9.  Hero Section
   10. About Section
   11. Skills Section
   12. Projects Section
   13. Achievements Section
   14. Pricing Section
   15. Contact Section
   16. Footer
   17. Animations & Keyframes
   18. Modals — Case Study & Pricing
   19. Media Queries (Mobile)
================================================ */

/* ================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   Change colors, fonts, and spacing here to
   quickly retheme the entire site.
================================================ */
:root {
  /* --- COLOR PALETTE --- */
  --clr-bg:         #0A0E1A;   /* Deep space dark — main background */
  --clr-bg-2:       #0F1424;   /* Slightly lighter dark — card backgrounds */
  --clr-bg-3:       #161B2E;   /* Elevated surface color */
  --clr-primary:    #7C3AED;   /* Electric violet — main brand color */
  --clr-primary-lt: #9F6BFF;   /* Lighter violet for hover states */
  --clr-accent:     #00F5FF;   /* Neon cyan — signature accent */
  --clr-accent-dim: rgba(0, 245, 255, 0.12);  /* Dimmed accent for glows */
  --clr-text:       #F0F0FF;   /* Near-white for headings */
  --clr-text-2:     #A8B2D8;   /* Muted blue-white for body text */
  --clr-text-3:     #7F8AAC;   /* Accessible muted text for labels and secondary info */
  --clr-success:    #4ADE80;
  --clr-error:      #FCA5A5;
  --clr-border:     rgba(124, 58, 237, 0.2);  /* Subtle purple border */
  --clr-border-2:   rgba(255, 255, 255, 0.06); /* Very subtle white border */

  /* --- TYPOGRAPHY --- */
  --font-display: 'Space Grotesk', sans-serif;  /* Headings, logo */
  --font-body:    'Inter', sans-serif;           /* Body text, UI */
  --font-mono:    'JetBrains Mono', monospace;   /* Code blocks */

  /* --- SPACING SCALE --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- BORDER RADIUS --- */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* --- TRANSITIONS --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.25s var(--ease-out);

  /* --- SHADOWS --- */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.25);
  --shadow-cyan: 0 0 30px rgba(0, 245, 255, 0.15);
}

/* ================================================
   LIGHT THEME OVERRIDES
   🔧 EDIT: Adjust light theme colors to your taste
   Warm cream palette — soft on the eyes
================================================ */
[data-theme="light"] {
  --clr-bg:         #FBF8F4;
  --clr-bg-2:       #F3EDE5;
  --clr-bg-3:       #EAE2D8;
  --clr-primary:    #7C3AED;
  --clr-primary-lt: #6D28D9;
  --clr-accent:     #9A4B00;
  --clr-accent-dim: rgba(154, 75, 0, 0.1);
  --clr-text:       #2D2420;
  --clr-text-2:     #5C4F46;
  --clr-text-3:     #6F625A;
  --clr-success:    #166534;
  --clr-error:      #B91C1C;
  --clr-border:     rgba(124, 58, 237, 0.25);
  --clr-border-2:   rgba(0, 0, 0, 0.06);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.1);
  --shadow-glow:    0 0 40px rgba(124, 58, 237, 0.15);
  --shadow-cyan:    0 0 30px rgba(217, 119, 6, 0.1);
}

/* Smooth theme transition */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.5s ease, color 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease, fill 0.3s ease, stroke 0.3s ease !important;
}

/* Light theme overrides for specific elements */
[data-theme="light"] .nav--scrolled {
  background: rgba(251, 248, 244, 0.92);
}
[data-theme="light"] .btn--ghost {
  color: var(--clr-text-2);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .btn--ghost:hover {
  color: var(--clr-text);
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .tag--dark {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--clr-text-2);
}
[data-theme="light"] .bg-grid {
  background-image: radial-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px);
}
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, transparent 70%);
}
[data-theme="light"] .btn--ghost-light {
  color: var(--clr-text-2);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--clr-bg); }
[data-theme="light"] .nav__mobile {
  background: rgba(251, 248, 244, 0.97);
}
[data-theme="light"] .project-card__dot::before {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .project-card__dot.is-active::before,
[data-theme="light"] .project-card__dot[aria-current="true"]::before {
  background: var(--clr-accent);
  box-shadow: 0 0 5px rgba(154, 75, 0, 0.4);
}
[data-theme="light"] .code-keyword { color: #6D28D9; }
[data-theme="light"] .code-var     { color: #1D4ED8; }
[data-theme="light"] .code-key     { color: #4B5563; }
[data-theme="light"] .code-str     { color: #166534; }
[data-theme="light"] .code-bool    { color: #9A3412; }
[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236F625A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
[data-theme="light"] .pricing-card--featured .btn--ghost-light {
  color: #FAFAFF;
  border-color: rgba(250, 250, 255, 0.7);
}
[data-theme="light"] .pricing-card--featured .btn--ghost-light:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

/* ================================================
   2. RESET & BASE
================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  /* Prevent layout shift from scrollbar */
  scrollbar-gutter: stable;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 99px; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
input, textarea, select { font: inherit; }

[hidden] { display: none !important; }

section[id],
header[id],
#main-content {
  scroll-margin-top: 5.5rem;
}

body.is-scroll-locked,
body.modal-open,
body.menu-open {
  overflow: hidden;
}

/* Visually hidden content remains available to assistive technology. */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--clr-bg-3);
  color: var(--clr-text);
  box-shadow: var(--shadow-md);
  transform: translateY(calc(-100% - var(--space-6)));
  transition: transform var(--transition);
}
.skip-link:focus-visible { transform: translateY(0); }

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

.pricing-card--featured :focus-visible {
  outline-color: #FAFAFF;
}

button:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.btn.is-loading,
.btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.75;
  pointer-events: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .theme-transitioning,
  .theme-transitioning *,
  .theme-transitioning *::before,
  .theme-transitioning *::after {
    transition: none !important;
  }

  .cursor-glow { display: none; }

  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    translate: none !important;
  }

  .theme-toggle:hover,
  .btn:hover,
  .skills__card:hover,
  .project-card:hover,
  .project-card:hover .project-card__image.is-active,
  .achievement-item:hover,
  .pricing-card:hover,
  .social-link:hover,
  .template-card:hover,
  .pricing-project-thumb:hover {
    transform: none !important;
  }
}

/* ================================================
   3. TYPOGRAPHY
   Change font sizes and weights here
================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--clr-text);
}

/* Italic emphasis in headings gets the accent color */
h2 em, h3 em {
  font-style: italic;
  color: var(--clr-accent);
  font-weight: 600;
}

p { color: var(--clr-text-2); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ================================================
   4. LAYOUT UTILITIES
================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Section base spacing */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

/* Section label (e.g. "01 / About") */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary-lt);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border);
  max-width: 80px;
}

/* ================================================
   5. CURSOR GLOW
   Follows mouse — creates ambient purple glow effect
   Disable by removing the #cursorGlow element in HTML
================================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  /* JS updates --x and --y custom properties */
  left: var(--x, -100px);
  top: var(--y, -100px);
}

/* ================================================
   6. BACKGROUND GRID
   Subtle dot grid overlay across the whole site
   Edit dot color in the radial-gradient below
================================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  /* Edit dot color (first rgba) and spacing (sizes) */
  background-image: radial-gradient(rgba(124, 58, 237, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.4) 20%,
    rgba(0,0,0,0.4) 80%,
    transparent 100%
  );
}

/* Keep all content above the fixed grid and glow */
.nav, .hero, .about, .skills, .projects,
.achievements, .pricing, .contact, .footer {
  position: relative;
  z-index: 1;
}

/* ================================================
   7. NAVIGATION
================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Becomes opaque on scroll — see script.js nav scroll handler */
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition),
              border-color var(--transition);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — added by JS */
.nav--scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-color: var(--clr-border-2);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* LOGO */
.nav__logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  transition: color var(--transition);
  margin-right: auto;
}
.nav__logo:hover { color: var(--clr-accent); }
.nav__logo-bracket { color: var(--clr-primary-lt); }

/* NAV LINKS */
.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-2);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--clr-text); }
.nav__link:hover::after { width: 100%; }

/* Active nav link */
.nav__link.active { color: var(--clr-text); }
.nav__link.active::after { width: 100%; }

/* HAMBURGER (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

/* THEME TOGGLE */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border-2);
  background: transparent;
  color: var(--clr-text-2);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition),
              background var(--transition), transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--clr-accent);
  border-color: var(--clr-border);
  background: rgba(124, 58, 237, 0.08);
  transform: rotate(15deg);
}

/* Nav actions group — theme toggle + hamburger, pinned right */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* MOBILE MENU */
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border-2);
  padding: 0 var(--space-6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out),
              opacity 0.25s var(--ease-out), visibility 0s linear 0.4s;
}
.nav__mobile.open,
.nav__mobile.is-open {
  max-height: 500px;
  padding: var(--space-6);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.nav__mobile-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--clr-text-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--clr-border-2);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--clr-accent); }
.nav__mobile-link.active { color: var(--clr-accent); }
.nav__mobile-cta { margin-top: var(--space-4); text-align: center; }

/* ================================================
   8. BUTTONS
   Global button styles — reused throughout
================================================ */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 0.15s ease,
              box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

/* PRIMARY — solid violet */
.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.btn--primary:hover {
  background: #6D28D9;
  border-color: #6D28D9;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

/* GHOST — transparent with border */
.btn--ghost {
  background: transparent;
  color: var(--clr-text-2);
  border-color: var(--clr-border-2);
}
.btn--ghost:hover {
  color: var(--clr-text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* WHITE — for use on the featured pricing card */
.btn--white {
  background: #FAFAFF;
  color: var(--clr-primary);
  border-color: #FAFAFF;
}
.btn--white:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

/* Ghost light — for dark backgrounds */
.btn--ghost-light {
  background: transparent;
  color: #F5F3FF;
  border-color: rgba(250, 250, 255, 0.65);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Nav CTA button — slightly compact */
.btn--nav {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}
.btn--nav:hover {
  background: #6D28D9;
  border-color: #6D28D9;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
}

/* SMALL buttons — for project cards */
.btn--small {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* FULL WIDTH */
.btn--full { width: 100%; }

/* ================================================
   9. HERO SECTION
================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  padding: 7rem var(--space-6) 4rem;
  max-width: 1160px;
  margin: 0 auto;
}

/* EYEBROW */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--clr-text-3);
  margin-bottom: var(--space-6);
}

/* Pulsing green dot */
.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* TITLE */
.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  display: block;
  margin-bottom: var(--space-4);
}
.hero__title-line { display: block; }

/* Second line gets a gradient accent */
.hero__title-line--accent {
  background: linear-gradient(135deg, var(--clr-primary-lt) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TYPEWRITER ROW */
.hero__typewriter {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--clr-text-2);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  min-height: 1.7em;
  white-space: nowrap;
}
/* The changing word */
.hero__typewriter-word {
  color: var(--clr-accent);
  min-width: 140px;
}
/* Blinking cursor */
.hero__typewriter-cursor {
  color: var(--clr-primary-lt);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* DESCRIPTION */
.hero__description {
  font-size: 1rem;
  color: var(--clr-text-2);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

/* CTA BUTTONS ROW */
.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* SCROLL INDICATOR */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-primary-lt), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* === HERO VISUAL (right column) === */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CODE CARD */
.hero__code-card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

/* Code card header (traffic light dots) */
.hero__code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--clr-bg-3);
  border-bottom: 1px solid var(--clr-border-2);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f56; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #27c93f; }

.hero__code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-text-3);
  margin-left: var(--space-2);
}

/* Code body */
.hero__code-body {
  padding: var(--space-6);
  line-height: 1.9;
  overflow-x: auto;
}

/* Code syntax colors — edit to match your preferred theme */
.code-keyword { color: #c792ea; }
.code-var     { color: #82aaff; }
.code-key     { color: #a8b2d8; }
.code-str     { color: #c3e88d; }
.code-bool    { color: #ff9a4a; }

/* FLOATING STAT BADGES */
.hero__badge {
  position: absolute;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.hero__badge--top {
  top: -1.5rem;
  right: clamp(-1.5rem, calc((64rem - 100vw) / 2), 0rem);
  animation: float 6s ease-in-out infinite;
  animation-delay: -2s;
}
.hero__badge--bottom {
  bottom: -1.5rem;
  left: clamp(-1.5rem, calc((64rem - 100vw) / 2), 0rem);
  animation: float 6s ease-in-out infinite;
  animation-delay: -4s;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}
.hero__badge-label {
  font-size: 0.7rem;
  color: var(--clr-text-3);
  white-space: nowrap;
}

/* ================================================
   10. ABOUT SECTION
================================================ */
.about__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* PHOTO */
.about__photo-wrap {
  position: relative;
  width: 280px;
  flex-shrink: 0;
}
/* Decorative border frame */
.about__photo-border {
  position: absolute;
  inset: -10px;
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--radius-xl);
  opacity: 0.4;
  transform: rotate(-3deg);
}
.about__photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  filter: grayscale(10%);
  transition: filter var(--transition);
}
.about__photo:hover { filter: grayscale(0%); }

/* Availability badge on photo */
.about__badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-bg-3);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--clr-success);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.about__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* BIO TEXT */
.about__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-6);
}
.about__body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* STATS ROW */
.about__stats {
  display: flex;
  gap: var(--space-8);
  margin: var(--space-8) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--clr-border-2);
  border-bottom: 1px solid var(--clr-border-2);
}
.about__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}
.about__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--clr-text-3);
  margin-top: var(--space-1);
}

/* ================================================
   11. SKILLS SECTION
================================================ */
.skills__header {
  margin-bottom: var(--space-12);
}
.skills__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* BENTO GRID */
.skills__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}

/* Skill card base */
.skills__card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.skills__card:hover {
  border-color: var(--clr-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* LARGE card — spans 2 columns */
.skills__card--lg {
  grid-column: span 2;
}

.skills__card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}
.skills__card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--space-4);
}

/* TECH TAGS inside skill cards */
.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--clr-primary-lt);
  transition: background var(--transition), border-color var(--transition);
}
.tag:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.5);
}

/* Dark tags — for project cards (over images) */
.tag--dark {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
  color: #eee;
}

/* Soft skills list */
.skills__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.skills__list li {
  font-size: 0.9rem;
  color: var(--clr-text-2);
  padding-left: var(--space-4);
  position: relative;
}
.skills__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-primary-lt);
}

/* HIGHLIGHT CARD (typing speed) */
.skills__card--highlight {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #5b21b6 100%);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.skills__big-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.skills__big-number small {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.8;
}
.skills__card-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-2);
}

/* ================================================
   12. PROJECTS SECTION
================================================ */
.projects__header {
  margin-bottom: var(--space-12);
  display: flex;
  align-items: flex-end;
  gap: var(--space-16);
}
.projects__title {
  font-size: clamp(2rem, 4vw, 3rem);
  flex-shrink: 0;
}
.projects__subtitle {
  font-size: 1rem;
  color: var(--clr-text-3);
  padding-bottom: 0.4rem;
}

/* PROJECT GRID — 2 columns by default */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* PROJECT CARD */
.project-card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--clr-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* IMAGE */
.project-card__image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
/* 🔧 EDIT: Adjust image transition speed (default 0.4s) */
.project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
/* Hide inactive images — only applies when switching between images */
.project-card__image:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}
/* Hover zoom on active image */
.project-card:hover .project-card__image.is-active {
  transform: scale(1.03);
}

/* Image dot navigation — appears on hover when multiple images exist */
.project-card__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card__image-wrap:hover .project-card__dots,
.project-card__dots.has-dots {
  opacity: 1;
}
/* Show dots permanently on touch devices */
@media (hover: none) {
  .project-card__dots.has-dots { opacity: 1; }
}
/* 🔧 EDIT: Change dot size and colors */
.project-card__dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}
.project-card__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}
.project-card__dot:hover::before {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.3);
}
.project-card__dot.is-active::before,
.project-card__dot[aria-current="true"]::before {
  background: var(--clr-accent);
  box-shadow: 0 0 6px rgba(0, 245, 255, 0.5);
}

/* Tags over image */
.project-card__tags {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

/* BODY */
.project-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}
.project-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}
.project-card__links {
  display: flex;
  gap: var(--space-2);
}

/* Center last project when count is odd (e.g. 3 projects) */
.project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - var(--space-3));
}

/* ================================================
   13. ACHIEVEMENTS SECTION
================================================ */
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.achievement-item {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  transition: border-color var(--transition), transform var(--transition);
}
.achievement-item:hover {
  border-color: var(--clr-border);
  transform: translateY(-2px);
}

.achievement-item__medal {
  font-size: 2rem;
  flex-shrink: 0;
}
.achievement-item__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--clr-primary-lt);
  background: rgba(124, 58, 237, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}
.achievement-item__title {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}
.achievement-item__org {
  font-size: 0.75rem;
  color: var(--clr-text-3);
  margin-bottom: var(--space-3);
}
.achievement-item__desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ================================================
   14. PRICING SECTION
================================================ */
.pricing__header {
  margin-bottom: var(--space-12);
}
.pricing__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-3);
}
.pricing__subtitle {
  font-size: 1rem;
  color: var(--clr-text-3);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding-top: var(--space-4);
}

/* PRICING CARD */
.pricing-card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.pricing-card:hover {
  border-color: var(--clr-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* FEATURED card — highlighted middle option */
.pricing-card--featured {
  background: linear-gradient(145deg, var(--clr-primary) 0%, #5b21b6 100%);
  border-color: transparent;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-8px); /* Slightly raised */
}
.pricing-card--featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.35), var(--shadow-md);
}

/* "Most Popular" badge */
.pricing-card__badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__icon {
  font-size: 2rem;
}
.pricing-card__name {
  font-size: 1.3rem;
}
/* White text on featured card */
.pricing-card--featured .pricing-card__name,
.pricing-card--featured .pricing-card__amount,
.pricing-card--featured .pricing-card__period {
  color: #FAFAFF;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--clr-border-2);
}
.pricing-card--featured .pricing-card__price {
  border-color: rgba(255,255,255,0.15);
}
.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1;
}
.pricing-card__period {
  font-size: 0.85rem;
  color: var(--clr-text-3);
}

/* Features list */
.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--clr-text-2);
  padding-left: var(--space-8);
  position: relative;
  line-height: 1.6;
}
.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.6;
  color: var(--clr-accent);
  font-weight: 700;
}
.pricing-card--featured .pricing-card__features li {
  color: #F5F3FF;
}
.pricing-card--featured .pricing-card__features li::before {
  color: #FAFAFF;
}

.pricing-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ================================================
   15. CONTACT SECTION
================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}
.contact__desc {
  font-size: 1rem;
  color: var(--clr-text-2);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

/* SOCIAL LINKS */
.contact__socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}
.social-link:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--clr-border);
  color: var(--clr-text);
  transform: translateX(4px);
}

/* CONTACT FORM */
.contact__form {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-text-2);
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--clr-text-3); }
.form-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}
.form-input[aria-invalid="true"] {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-error) 18%, transparent);
}
.form-input[aria-invalid="true"]:focus-visible {
  outline-color: var(--clr-error);
}

.form-error,
.field-error {
  color: var(--clr-error);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* SELECT dropdown */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8AAC' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
/* Style select options (limited cross-browser) */
.form-select option {
  background: var(--clr-bg-3);
  color: var(--clr-text);
}

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

/* Form status message */
.form-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--clr-text-2);
  line-height: 1.55;
}
.form-status.success { color: var(--clr-success); }
.form-status.error   { color: var(--clr-error); }
.form-status a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-fallback {
  color: var(--clr-text-3);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}
.form-fallback a {
  color: var(--clr-primary-lt);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

form.is-submitting .form-input,
form[aria-busy="true"] .form-input {
  cursor: wait;
}

/* ================================================
   16. FOOTER
================================================ */
.footer {
  border-top: 1px solid var(--clr-border-2);
  padding: var(--space-8) 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  margin-right: auto;
}
.footer__nav {
  display: flex;
  gap: var(--space-4);
}
.footer__nav a {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--clr-text); }

.footer__top {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  transition: color var(--transition);
}
.footer__top:hover { color: var(--clr-accent); }

/* ================================================
   17. ANIMATIONS & KEYFRAMES
================================================ */

/* Blinking cursor in hero typewriter */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Status dot pulse */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Floating code card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* Scroll indicator line */
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}

/* Scroll-reveal animation (applied by JS) */
.reveal {
  opacity: 0;
  translate: 0 24px;
}
.reveal.visible {
  opacity: 1;
  translate: 0 0;
  animation: reveal-in 0.6s var(--ease-out) both;
}
/* Stagger delays for sibling reveals */
.reveal.visible:nth-child(2) { animation-delay: 0.1s; }
.reveal.visible:nth-child(3) { animation-delay: 0.2s; }
.reveal.visible:nth-child(4) { animation-delay: 0.3s; }
.reveal.visible:nth-child(5) { animation-delay: 0.4s; }

@keyframes reveal-in {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ================================================
   18. MODALS — Case Study & Pricing
================================================ */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.open,
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.modal-overlay[aria-hidden="true"]:not(.open):not(.is-open) {
  visibility: hidden;
}

/* Window */
.modal-window {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  padding: 52px 40px 32px;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.open .modal-window,
.modal-overlay.is-open .modal-window {
  transform: scale(1) translateY(0);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border-2);
  color: var(--clr-text-2);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}
.modal-close:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* Scrollable content */
.modal-scroll {
  overflow-y: auto;
  max-height: calc(90vh - 84px);
  padding: 0;
}
#pricingModal .modal-window {
  padding-top: 54px;
}

/* Gallery — main image + horizontal scroll strip */
.modal-gallery-main {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border-2);
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: var(--space-3);
}
.modal-gallery-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-4);
}
.modal-gallery-strip > img,
.modal-gallery-thumb {
  flex: 0 0 auto;
  width: 130px;
  min-width: 130px;
  height: 82px;
  min-height: 82px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color var(--transition), opacity 0.2s ease;
  opacity: 0.55;
}
.modal-gallery-thumb {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--clr-bg-3);
}
.modal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-gallery-thumb:focus-visible {
  opacity: 1;
  outline-offset: -3px;
}
.modal-gallery-strip > img:hover,
.modal-gallery-thumb:hover {
  opacity: 1;
}
.modal-gallery-strip > img.is-selected,
.modal-gallery-thumb.is-selected,
.modal-gallery-thumb[aria-current="true"] {
  border-color: var(--clr-accent);
  opacity: 1;
}

/* Modal content */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.modal-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  line-height: 1.4;
  margin-bottom: var(--space-1);
}
.modal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-primary-lt);
  letter-spacing: 0.04em;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--clr-text-2);
  line-height: 1.75;
  margin-bottom: var(--space-1);
}
.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.modal-link {
  align-self: flex-start;
  margin-top: var(--space-4);
}

/* Template modal purchase button */
#tmplPurchaseBtn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
}

/* ================================================
   PRICING MODAL — Specific styles
================================================ */
#pricingModal .modal-title {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 12px !important;
  padding-right: 40px;
}
#pricingModal .modal-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px !important;
  color: var(--clr-text-2);
}
.pricing-modal-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.5;
  margin-top: 28px !important;
  margin-bottom: 16px !important;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border-2);
  letter-spacing: -0.01em;
}
/* First heading in each section — no border/top gap */
#pricingProjectsSection > .pricing-modal-heading,
#templatesSection > .pricing-modal-heading,
#purchaseFormWrapper > .pricing-modal-heading,
#stayTunedMsg > .pricing-modal-heading,
#tiktokSection > .pricing-modal-heading {
  margin-top: 12px !important;
  padding-top: 0;
  border-top: none;
}

/* Related projects grid inside pricing modal */
.pricing-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.pricing-project-thumb {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 8px;
  cursor: pointer;
  color: inherit;
  display: block;
  font: inherit;
  text-align: left;
  width: 100%;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.pricing-project-thumb:hover {
  border-color: var(--clr-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pricing-project-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.pricing-project-thumb-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-project-thumb-info h4,
.pricing-project-thumb-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.3;
}
.pricing-project-thumb-info p,
.pricing-project-thumb-meta {
  font-size: 0.82rem;
  color: var(--clr-text-3);
  line-height: 1.6;
}

/* Templates grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.template-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 8px;
  transition: border-color var(--transition), transform var(--transition);
}
.template-card:hover {
  border-color: var(--clr-border);
  transform: translateY(-2px);
}
.template-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.template-card-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.template-card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.3;
}
.template-card-info .template-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary-lt);
}
.template-card-info p {
  font-size: 0.82rem;
  color: var(--clr-text-3);
  line-height: 1.6;
}
.template-card-info .btn {
  margin-top: 4px;
}
.template-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 4px;
}
.template-card-actions .btn {
  flex: 1 1 8rem;
  margin-top: 0;
}

/* Purchase form */
#purchaseFormWrapper {
  margin-top: var(--space-4);
}
#purchaseForm {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
#purchaseForm .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.purchase-form-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: 12px;
  padding-top: 8px;
}
.purchase-form-buttons .btn {
  flex: 1;
  font-size: 0.85rem;
}

/* Stay tuned / TikTok placeholders */
.stay-tuned-msg {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--clr-text-2);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}
.tiktok-section {
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
}
.tiktok-section .btn {
  display: inline-flex;
  font-size: 0.9rem;
}

/* Pricing modal — extra bottom space */
#pricingModal #pricingProjectsSection,
#pricingModal #templatesSection,
#pricingModal #stayTunedMsg,
#pricingModal #tiktokSection {
  padding-bottom: 8px;
}

/* ================================================
   19. MEDIA QUERIES — MOBILE RESPONSIVE
   Breakpoints:
   • max-width: 1024px — Tablet
   • max-width: 768px  — Mobile
   • max-width: 480px  — Small mobile
================================================ */

/* TABLET */
@media (max-width: 1024px) {
  .nav__inner {
    gap: var(--space-4);
    padding-inline: var(--space-4);
  }
  .nav__links { gap: var(--space-4); }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
  }
  .hero__eyebrow { justify-content: center; }
  .hero__typewriter { justify-content: center; }
  .hero__description { margin: 0 auto var(--space-8); }
  .hero__actions { justify-content: center; }
  .hero__scroll { align-items: center; }
  .hero__visual { display: none; } /* Hide code card on tablet */

  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__photo-wrap { margin: 0 auto; }
  .about__stats { justify-content: center; }

  .skills__bento { grid-template-columns: 1fr 1fr; }
  .skills__card--lg { grid-column: span 2; }

  .projects__header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }
  .achievements__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-3px); }

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

/* MOBILE */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-16: 3rem;
  }

  /* Show hamburger, hide desktop nav */
  .nav__links, .btn--nav { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: block; }

  .skills__bento {
    grid-template-columns: 1fr;
  }
  .skills__card--lg { grid-column: span 1; }

  .projects__grid { grid-template-columns: 1fr; }
  .project-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: auto;
    width: auto;
  }

  /* Modal mobile — relaxed spacing for readability */
  .modal-overlay { padding: var(--space-3); align-items: center; }
  .modal-window {
    max-height: 90vh;
    border-radius: var(--radius-xl);
    padding: 44px 20px 24px;
    transform: scale(0.95);
  }
  .modal-overlay.open .modal-window,
  .modal-overlay.is-open .modal-window { transform: scale(1); }
  .modal-scroll { padding: 0; max-height: calc(90vh - 68px); }
  .modal-gallery-strip { margin-bottom: var(--space-3); }
  .modal-gallery-strip > img,
  .modal-gallery-thumb { width: 90px; min-width: 90px; height: 56px; min-height: 56px; }
  .modal-gallery-main { border-radius: var(--radius-sm); }
  .modal-title { font-size: 1.15rem; }
  .modal-desc { font-size: 0.9rem; line-height: 1.7; }
  .modal-meta { font-size: 0.75rem; }
  .modal-content { gap: var(--space-3); }
  .modal-link { width: 100%; justify-content: center; }
  .modal-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 1rem; }

  /* Pricing modal mobile */
  #pricingModal .modal-window { padding-top: 46px; }
  #pricingModal .modal-title { font-size: 1.15rem; padding-right: 32px; }
  #pricingModal .modal-desc { margin-bottom: 20px !important; }
  .pricing-modal-heading { font-size: 0.95rem; margin-top: 22px !important; margin-bottom: 12px !important; padding-top: 16px; }
  .pricing-projects-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .purchase-form-buttons { flex-direction: column; }
  .template-card-info { padding: var(--space-3); }
  .template-card-info h4 { font-size: 0.85rem; }
  .template-card-info .template-price { font-size: 1rem; }
  .stay-tuned-msg { padding: var(--space-6) var(--space-4); font-size: 0.9rem; }
  .tiktok-section { padding: var(--space-6) 0; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { margin-right: 0; }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .hero__title { font-size: 2.4rem; }
  .hero__typewriter {
    font-size: 1.1rem;
    justify-content: center;
  }
  .hero__typewriter-word {
    min-width: 7.5ch;
    text-align: left;
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .about__photo { width: 220px; height: 270px; }
  .about__photo-wrap { width: 220px; }
  .contact__form { padding: var(--space-6); }

  /* Small mobile modal */
  .modal-overlay { padding: var(--space-2); }
  .modal-window { padding: 38px 16px 20px; }
  .modal-scroll { padding: 0; max-height: calc(90vh - 58px); }
  .modal-title { font-size: 1.05rem; }
  .modal-desc { font-size: 0.85rem; }
  .modal-gallery-strip > img,
  .modal-gallery-thumb { width: 85px; min-width: 85px; height: 54px; min-height: 54px; }
}
