/* Custom Styles for AI Film Training */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

@supports (overflow-x: clip) {
  html, body {
    overflow-x: clip;
  }
}

body {
  font-family: var(--font-sans);
  background-color: #06070a;
  color: #e2e8f0;
}

main, section, footer {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  main, section, footer {
    overflow-x: clip;
  }
}

img, video, iframe, canvas {
  max-width: 100%;
}

.glow-purple, .glow-cyan, .glow-amber {
  max-width: 100vw;
  pointer-events: none;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Cinematic Background Gradients & Glows */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.glow-purple {
  background: radial-gradient(circle, rgba(147, 51, 234, 0.18) 0%, rgba(147, 51, 234, 0) 70%);
}

.glow-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
}

.glow-amber {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(15, 18, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 40px -15px rgba(147, 51, 234, 0.2);
}

/* Animated Gradient Text */
.gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Film grain effect */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Smooth custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #262c3e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4460;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 8s infinite ease-in-out;
}

/* AI Film Institute – Video Library Styles */
.vl-video-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.vl-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px -15px rgba(147, 51, 234, 0.25);
}

.vl-filter-btn, .vl-access-btn {
  user-select: none;
  cursor: pointer;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ===== Academy visual refresh: clean, editorial, responsive ===== */
:root{--ink:#080a12;--panel:#101421;--muted:#a8b0c2;--violet:#a855f7;--gold:#f4b942}
html{scroll-padding-top:92px}
body{background:#080a12;color:#f4f5fb;line-height:1.6}
.film-grain{opacity:.012}
header.sticky{background:rgba(7,9,16,.94)!important;border-bottom:1px solid rgba(255,255,255,.09);box-shadow:0 8px 30px rgba(0,0,0,.18)}
header .max-w-7xl{min-height:76px;height:auto!important}
header nav{gap:clamp(10px,1.15vw,20px)!important;font-size:12px!important;white-space:nowrap}
header nav a{transition:color .2s ease}
header nav a:hover{color:#d8b4fe}
header .group{min-width:0}
header .group>div:first-child{width:42px;height:42px;flex-shrink:0}
.academy-hero{position:relative;isolation:isolate;padding:76px 0 44px;overflow-x:hidden;background:radial-gradient(ellipse at 76% 28%,rgba(115,55,185,.18),transparent 34%),radial-gradient(ellipse at 8% 78%,rgba(13,148,136,.10),transparent 32%),linear-gradient(180deg,#0b0d17 0%,#080a12 100%)}
@supports (overflow-x: clip){.academy-hero{overflow-x:clip}}
.academy-hero:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.22;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,black,transparent 90%)}
.academy-hero-inner{display:grid;grid-template-columns:1fr;align-items:center;gap:clamp(24px,3.5vw,48px);position:relative;z-index:1;width:100%}
@media(min-width:1024px){.academy-hero-inner{grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);gap:clamp(32px,4vw,56px)}}
.hero-copy{max-width:610px;min-width:0;padding:12px 0 22px}
.hero-eyebrow{display:inline-flex;align-items:center;gap:9px;max-width:100%;padding:8px 14px;border:1px solid rgba(192,132,252,.35);border-radius:999px;background:rgba(124,58,237,.14);color:#d8b4fe;font-size:11px;font-weight:800;letter-spacing:.13em}
.hero-live-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#34d399;box-shadow:0 0 10px #34d399}
.hero-kicker{margin:20px 0 10px;color:#f2bd55;font-size:11px;font-weight:800;letter-spacing:.19em;overflow-wrap:break-word}
.hero-copy h1{font-size:clamp(36px,5.2vw,70px);line-height:1.06;letter-spacing:-.045em;font-weight:800;margin:0 0 20px;color:#fff;overflow-wrap:break-word}
.hero-gradient{background:linear-gradient(100deg,#d8a4ff 0%,#a78bfa 48%,#f6c76a 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-subtitle{max-width:540px;color:#cbd5e1;font-size:clamp(15px,1.35vw,18px);line-height:1.7;margin:0 0 24px}
.hero-process{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#e6e8f0;font-size:12px;font-weight:700;margin:0 0 28px}
.hero-process span{display:inline-flex;align-items:center;padding:6px 12px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#f1f5f9}
.hero-process i{width:4px;height:4px;border-radius:50%;background:#a78bfa;display:inline-block}
.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:100%}
.hero-primary,.hero-secondary{min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:0 24px;border-radius:13px;font-size:14px;font-weight:800;max-width:100%;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.hero-primary{color:#fff;background:linear-gradient(110deg,#8538df,#a64de7 55%,#e99c36);box-shadow:0 12px 32px rgba(147,51,234,.25)}
.hero-secondary{color:#eefcf7;background:rgba(16,25,31,.85);border:1px solid rgba(52,211,153,.35)}
.hero-secondary span{color:#34d399}
.hero-primary:hover,.hero-secondary:hover{transform:translateY(-2px)}
.hero-trust{margin-top:22px;color:#94a3b8;font-size:11px;letter-spacing:.08em;font-weight:700;flex-wrap:wrap;max-width:100%}
.hero-trust span{color:#f4bd54;margin-right:7px}
.hero-visual-wrap{position:relative;min-width:0;width:100%}
.hero-image-frame{position:relative;overflow:hidden;border-radius:20px;border:1px solid rgba(208,178,255,.34);background:#151827;box-shadow:0 24px 70px rgba(0,0,0,.6);aspect-ratio:16/9;width:100%}
.hero-image-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%;filter:brightness(1.08) contrast(1.06) saturate(1.04);transform:scale(1.005);transition:transform .5s ease}
.hero-image-frame:hover img{transform:scale(1.035)}
.hero-image-shade{display:none!important}
.hero-image-caption{position:absolute;left:22px;bottom:20px;max-width:calc(100% - 32px);display:flex;align-items:center;gap:12px;color:white}
.caption-mark{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#8b5cf6,#e6a33b);font-weight:900;font-size:13px}
.hero-image-caption strong,.hero-image-caption small,.hero-floating-card strong,.hero-floating-card small{display:block}
.hero-image-caption strong{font-size:13px}.hero-image-caption small{font-size:11px;color:#c5cada;margin-top:2px}
.hero-floating-card{position:absolute;right:10px;bottom:10px;max-width:calc(100% - 20px);display:flex;align-items:center;gap:11px;padding:13px 17px;border-radius:15px;background:rgba(16,19,31,.94);border:1px solid rgba(192,132,252,.35);box-shadow:0 16px 45px rgba(0,0,0,.4);backdrop-filter:blur(14px)}
.floating-icon{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:rgba(168,85,247,.18);color:#e9c7ff}
.hero-floating-card strong{font-size:12px}.hero-floating-card small{font-size:10px;color:#aab2c3;margin-top:2px}
.hero-orb{position:absolute;z-index:-1;border-radius:50%;filter:blur(80px);pointer-events:none;max-width:100vw}.hero-orb-one{width:260px;height:260px;right:5%;top:5%;background:rgba(139,92,246,.12)}.hero-orb-two{width:220px;height:220px;left:4%;bottom:8%;background:rgba(20,184,166,.08)}
.hero-highlights{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(16,20,32,.75);overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.2);width:100%}
.highlight-item{display:flex;align-items:center;gap:14px;padding:20px 24px;min-width:0;width:100%}.highlight-item>div{min-width:0}.highlight-item+.highlight-item{border-left:1px solid rgba(255,255,255,.08)}
.highlight-number{font-size:13px;font-weight:900;color:#c084fc;letter-spacing:.06em;flex-shrink:0}.highlight-item strong{display:block;font-size:13px;color:#f5f5fa;overflow-wrap:break-word}.highlight-item small{display:block;font-size:11px;color:#94a3b8;margin-top:3px;overflow-wrap:break-word}
/* Consistent section rhythm and cards */
section:not(.academy-hero){scroll-margin-top:88px}
#courses,#portfolio,#curriculum,#about,#contact{padding-top:clamp(64px,7vw,100px)!important;padding-bottom:clamp(64px,7vw,100px)!important}
#courses h2,#portfolio h2,#curriculum h2,#about h2{letter-spacing:-.035em;line-height:1.12}
.glass-panel{background:linear-gradient(145deg,rgba(20,24,39,.94),rgba(12,15,25,.96));border-color:rgba(255,255,255,.10)}
.glass-panel-hover:hover{transform:translateY(-5px);border-color:rgba(192,132,252,.45);box-shadow:0 22px 50px rgba(0,0,0,.28)}
button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid #c084fc;outline-offset:3px}
@media(max-width:1100px){header nav{gap:8px!important;font-size:11px!important}.academy-hero-inner{gap:34px}.hero-highlights{margin-top:48px}.highlight-item{padding:17px 14px}}
@media(max-width:1023px){header .max-w-7xl{padding-top:8px;padding-bottom:8px;gap:10px}header nav{flex-wrap:wrap;white-space:normal;row-gap:4px;justify-content:center}}
@media(max-width:767px){.academy-hero{padding:44px 0 30px}.academy-hero-inner{grid-template-columns:1fr;gap:28px}.hero-copy{padding:0;align-items:center;text-align:center;margin:auto}.hero-eyebrow{font-size:10px;justify-content:center}.hero-kicker{margin-top:16px;font-size:10px}.hero-copy h1{font-size:clamp(30px,8.8vw,48px);margin-bottom:16px}.hero-subtitle{font-size:15px;margin-left:auto;margin-right:auto}.hero-process{justify-content:center;gap:8px;font-size:11px;margin-bottom:24px}.hero-actions{justify-content:center;width:100%}.hero-primary,.hero-secondary{width:100%;max-width:340px;min-height:48px}.hero-trust{margin-top:18px;font-size:10px;justify-content:center}.hero-visual-wrap{padding:0 0 12px}.hero-image-frame{aspect-ratio:16/9;border-radius:16px}.hero-image-frame img{object-position:center 35%}.hero-image-caption{left:10px;bottom:10px;max-width:calc(100% - 20px);padding:8px 10px;gap:8px}.hero-floating-card{right:8px;bottom:8px;padding:8px 12px}.hero-highlights{grid-template-columns:1fr;margin-top:24px;border-radius:14px}.highlight-item{padding:14px 14px;gap:10px}.highlight-item+.highlight-item{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.highlight-item strong{font-size:12px}.highlight-item small{font-size:11px}.highlight-number{font-size:11px}}
@media(max-width:479px){header .group{flex-shrink:1!important;max-width:calc(100% - 56px)}header .group>div:first-child{width:36px;height:36px}}
@media(max-width:380px){.hero-copy h1{font-size:clamp(27px,8.6vw,36px)}.hero-process{gap:6px}.hero-process span{font-size:10px;padding:5px 9px}.highlight-item{padding:12px 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
