/* ================================================================
   AI VIDEO PORTFOLIO — styles.css
   Modern Modular CSS Architecture
   
   STRUCTURE:
   1.  Design Tokens (CSS Custom Properties)
   2.  Reset & Base
   3.  Layout Utilities
   4.  Ambient Orbs (decorative)
   5.  Buttons
   6.  Topbar
   7.  Navbar + Mobile Menu
   8.  Hero Section
   9.  Profile Card
   10. Showreel Card
   11. Section Commons (section-header, section-label)
   12. Services Grid
   13. Filter Bar
   14. Video Grid & Cards
   15. Tools Grid
   16. CTA Section
   17. Footer
   18. Video Modal
   19. Responsive (mobile-first breakpoints)
================================================================ */


/* ================================================================
   1. DESIGN TOKENS
   Edit these to change the entire site's look at once.
================================================================ */
:root {
  /* Colors */
  --color-bg:          #FAF9F6;  /* Soft Cream */
  --color-bg-card:     #FFFFFF;  /* White */
  --color-border:      rgba(0, 0, 0, 0.08); /* Light grey border */
  --color-border-glow: rgba(15, 23, 42, 0.15); /* Subtle dark glow */
  --color-text:        #1A1A1A;  /* Deep dark text */
  --color-text-muted:  #4A5568;  /* Medium dark text */
  --color-text-dim:    #718096;  /* Lighter dark text */

  /* Brand Colors */
  --color-accent:  #6366F1;  /* Indigo / Purple */
  --color-pink:    #EC4899;  /* Hot Pink */
  --color-cyan:    #06B6D4;  /* Cyan */
  --color-green:   #22C55E;  /* Success Green */
  --color-upwork:  #14A800;  /* Upwork Green */

  /* Gradients */
  --gradient-brand:  linear-gradient(135deg, var(--color-accent), var(--color-pink));
  --gradient-purple: linear-gradient(135deg, #818CF8, #6366F1);
  --gradient-pink:   linear-gradient(135deg, #F472B6, #EC4899);

  /* Typography */
  --font-family: 'Outfit', sans-serif;
  --font-size-base: 16px;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;

  /* Borders */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-card:  0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-glow:  0 0 40px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Section padding */
  --section-padding: var(--space-xl) 0;
}


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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font-family: var(--font-family); cursor: pointer; border: none; }


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

.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}
.section:nth-of-type(even) {
  background-color: #F3EFEA;
}

/* Gradient text utilities */
.gradient-text--purple {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text--pink {
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-text { color: var(--color-accent); }

/* Upwork badge (reusable) */
.upwork-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 168, 0, 0.10);
  border: 1px solid rgba(20, 168, 0, 0.25);
  color: #4ADE80;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Animated pulse dot */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.6); }
}


/* ================================================================
   4. AMBIENT ORBS
   Purely decorative background glows
================================================================ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}
.orb--purple { width: 700px; height: 700px; background: #4F46E5; top: -300px; left: -300px; }
.orb--pink   { width: 600px; height: 600px; background: #BE185D; bottom: -200px; right: -200px; }
.orb--cyan   { width: 450px; height: 450px; background: #0891B2; top: 45%; left: 45%; transform: translate(-50%, -50%); }


/* ================================================================
   5. BUTTONS
   Usage: <a class="btn btn--green btn--lg">...</a>
   Modifiers: --green, --gradient, --outline
   Sizes:     --lg (default is normal size)
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn--lg { padding: 14px 28px; font-size: 0.98rem; }

.btn--green {
  background: var(--color-upwork);
  color: #ffffff;
}
.btn--green:hover {
  background: #128a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 168, 0, 0.38);
}

.btn--gradient {
  background: var(--gradient-brand);
  color: #ffffff;
}
.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  background: rgba(99, 102, 241, 0.08);
}


/* ================================================================
   6. TOPBAR
================================================================ */
.topbar {
  background: rgba(99, 102, 241, 0.09);
  border-bottom: 1px solid rgba(99, 102, 241, 0.18);
  padding: 9px 0;
  font-size: 0.79rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 10;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar__inner i    { color: var(--color-accent); margin-right: 5px; }
.topbar__link       { color: var(--color-accent); font-weight: 700; transition: var(--transition); }
.topbar__link:hover { color: var(--color-pink); }


/* ================================================================
   7. NAVBAR + MOBILE MENU
================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  transition: border-color 0.3s ease;
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar__logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar__logo i { color: var(--color-accent); }

.navbar__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.navbar__links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 0;
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.navbar__links a:hover { color: var(--color-text); }
.navbar__links a:hover::after { width: 100%; }

.navbar__cta { margin-left: 16px; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(7, 9, 15, 0.98);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 62px;
  z-index: 899;
}
.mobile-menu.is-open { display: flex; }

.mobile-menu__link {
  padding: 13px 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}
.mobile-menu__link:hover         { color: var(--color-text); background: rgba(99, 102, 241, 0.06); }
.mobile-menu__link--cta          { color: #4ADE80 !important; font-weight: 700; }


/* ================================================================
   8. HERO SECTION
================================================================ */
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content (left column) */
.hero__content {}
.hero__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.78;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Pill / tag */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.badge-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  display: block;
  animation: pulse 2s infinite;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.tag i { color: var(--color-accent); font-size: 0.72rem; }

/* Hero Aside (right column) */
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* ================================================================
   9. PROFILE CARD
================================================================ */
.profile-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.profile-card:hover {
  border-color: var(--color-border-glow);
}

.profile-card__pic-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
}
.profile-card__pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
}
.profile-card__online {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  background: var(--color-green);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
}

.profile-card__name { font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; }
.profile-card__role { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 12px; }

.profile-card__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-sm);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1rem; font-weight: 900; }
.stat small { font-size: 0.72rem; color: var(--color-text-muted); }
.stat-divider { width: 1px; height: 28px; background: var(--color-border); }


/* ================================================================
   10. DEVICE CLUSTER (Hero 3-Device Showreel)
================================================================ */
.device-cluster {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Base Device Frame */
.device-macbook, .device-ipad, .device-iphone {
  position: absolute;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  will-change: transform, box-shadow;
}

/* Specific hover effects to preserve base transforms and prevent z-index shaking */
.device-macbook:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-hover);
}
.device-ipad:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-hover);
}
.device-iphone:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-hover);
}

/* MacBook (Back Center) */
.device-macbook {
  width: 440px;
  height: 280px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 10px 10px 0 10px;
  background: #E2E8F0;
}
.macbook-screen {
  width: 100%;
  height: calc(100% - 20px);
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.macbook-base {
  height: 20px;
  background: #CBD5E1;
  width: 110%;
  margin-left: -5%;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.device-macbook video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.device-macbook:hover video { opacity: 0.9; }

/* iPad (Middle Right) */
.device-ipad {
  width: 200px;
  height: 270px;
  right: 0;
  top: 50px;
  z-index: 2;
  border-radius: 16px;
  padding: 10px;
  background: #FFFFFF;
}
.ipad-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.device-ipad video { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.device-ipad:hover video { opacity: 1; }

/* iPhone (Front Left) */
.device-iphone {
  width: 180px;
  height: 350px;
  left: 10px;
  top: 30px;
  z-index: 3;
  border-radius: 24px;
  padding: 8px;
  background: #FFFFFF;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.iphone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.device-iphone video { width: 100%; height: 100%; object-fit: cover; }

.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rdot { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; animation: pulse 1.5s infinite; }

.iphone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}
.iphone-overlay i {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; padding-left: 3px;
}
.device-iphone:hover .iphone-overlay { opacity: 1; }

@media (max-width: 900px) {
  .device-cluster { height: 300px; }
  .device-macbook { width: 300px; height: 190px; }
  .device-ipad { width: 140px; height: 190px; top: 40px; right: 10px; }
  .device-iphone { width: 130px; height: 260px; left: 0; top: 20px; }
}
.showreel-card__footer i { color: var(--color-pink); }


/* ================================================================
   11. SECTION COMMONS
================================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-label {
  display: inline-block;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}


/* ================================================================
   12. SERVICES GRID
   Items rendered by JS (renderServices in script.js)
================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.service-card:hover {
  border-color: var(--color-border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
/* Icon color variants */
.icon--cyan   { background: rgba(6, 182, 212, 0.12); color: var(--color-cyan); }
.icon--purple { background: rgba(99, 102, 241, 0.12); color: #818CF8; }
.icon--pink   { background: rgba(236, 72, 153, 0.12); color: var(--color-pink); }
.icon--blue   { background: rgba(59, 130, 246, 0.12); color: #60A5FA; }

.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 9px; }
.service-card p  { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 13px; line-height: 1.65; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; }
.service-card li { font-size: 0.82rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 7px; }
.service-card li i { color: var(--color-green); font-size: 0.7rem; flex-shrink: 0; }


/* ================================================================
   13. FILTER BAR
================================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-tab {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab:hover,
.filter-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}


/* ================================================================
   14. VIDEO GRID & CARDS
   Cards rendered by JS (renderVideos in script.js)
================================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.video-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  border-color: var(--color-border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Thumbnail: 16:9 aspect ratio container */
.video-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* = 9/16 = 16:9 ratio */
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
  overflow: hidden;
}

/* Canvas (JS draws extracted video frame here) */
.video-card__canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-card__canvas { transform: scale(1.06); }

/* Fallback video (hidden until canvas fails) */
.video-card__fallback-vid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  display: block;
}

/* Overlay */
.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.video-card__play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  padding-left: 4px;
  transition: var(--transition);
  pointer-events: none;
}
.video-card:hover .video-card__play-btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.video-card__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(99, 102, 241, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Card Info */
.video-card__info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 7px;
}
.video-card__title { font-size: 0.95rem; font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.video-card__desc  { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 12px; flex: 1; line-height: 1.55; }

.video-card__footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--color-pink);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}


/* ================================================================
   15. TOOLS GRID
   Items rendered by JS (renderTools in script.js)
================================================================ */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tool-pill {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.tool-pill:hover {
  border-color: var(--color-border-glow);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}
.tool-pill i { color: var(--color-accent); }


/* ================================================================
   15.5 CASE STUDY SECTION
================================================================ */
.case-study-section {
  padding: var(--space-xl) 0;
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.case-study__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.case-study__header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; }
.case-study__header p { color: var(--color-text-muted); font-size: 1.05rem; }

.case-study__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.case-study__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
}
.case-study__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.case-study__label {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.badge-before { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.badge-after  { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }

.case-study__images {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.case-img {
  width: calc(50% - 5px);
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.case-study__stats p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  text-align: center;
}

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


/* ================================================================
   16. CTA SECTION
================================================================ */
.cta-section { padding: var(--space-xl) 0; }
.cta-box {
  position: relative;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.cta-box__glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  pointer-events: none;
}
.cta-box h2 { font-size: 2rem; font-weight: 800; margin: 14px 0 12px; }
.cta-box p  { color: var(--color-text-muted); margin-bottom: 26px; max-width: 440px; margin-left: auto; margin-right: auto; }


/* ================================================================
   17. FOOTER
================================================================ */
.footer {
  background: #F3EFEA;
  border-top: 1px solid var(--color-border);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 0.78rem; color: var(--color-text-dim); }


/* ================================================================
   18. VIDEO MODAL
================================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}

.modal__box {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal.is-open .modal__box { transform: scale(1); }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.modal__title {
  font-size: 0.95rem;
  font-weight: 700;
  max-width: calc(100% - 50px);
}
.modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--color-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.modal__close:hover { background: rgba(236, 72, 153, 0.5); }

.modal__video-wrap {
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  max-height: 70vh;
}
.modal__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}


/* ================================================================
   19. RESPONSIVE BREAKPOINTS
================================================================ */

/* Tablet */
@media (max-width: 960px) {
  .hero__grid     { grid-template-columns: 1fr; gap: 40px; }
  .hero__aside    { flex-direction: row; flex-wrap: wrap; }
  .profile-card,
  .showreel-card  { flex: 1 1 260px; }
  .navbar__links,
  .navbar__cta    { display: none; }
  .navbar__hamburger { display: flex; }
}

/* Mobile */
@media (max-width: 580px) {
  :root { --section-padding: 56px 0; }
  .hero             { padding: 50px 0 56px; }
  .hero__actions    { flex-direction: column; }
  .hero__aside      { flex-direction: column; }
  .cta-box          { padding: 40px 20px; }
  .cta-box h2       { font-size: 1.5rem; }
  .footer__inner    { flex-direction: column; text-align: center; }
  .video-grid       { grid-template-columns: 1fr; }
  .services-grid    { grid-template-columns: 1fr; }
}
