/* ═══════════════════════════════════════════════
   FRAME TALES STUDIOS — index.css
   Palette: Warm Cinematic (Burnt Sienna + Cream)
═══════════════════════════════════════════════ */

:root {
    /* ── NEW COLOR PALETTE ── */
    --bg-primary:      #0A0A08;   /* warm near-black          */
    --bg-secondary:    #1A1815;   /* warm dark surface        */
    --bg-card:         #181714;   /* card surface             */
    --text-primary:    #F2EDE4;   /* warm cream white         */
    --text-secondary:  #6E6A65;   /* warm muted gray          */
    --accent:          #CF5C27;   /* burnt sienna — cinematic */
    --accent-light:    #E87848;   /* hover/lighter accent     */
    --accent-glow:     rgba(207, 92, 39, 0.18);
    --accent-subtle:   rgba(207, 92, 39, 0.07);

    /* Glass effects — warm-tinted */
    --glass-bg:        rgba(20, 19, 17, 0.55);
    --glass-border:    rgba(242, 237, 228, 0.06);
    --glass-border-md: rgba(242, 237, 228, 0.12);

    /* Typography */
    --font-heading: 'Clash Display', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Motion */
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--ease);
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--bg-primary); }
body {
    font-family: var(--font-body);
    background:  var(--bg-primary);
    color:       var(--text-primary);
    line-height: 1.6;
    overflow-x:  hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;                         /* custom cursor active */
}
@media (max-width:768px) { body { cursor:auto; } }

h1,h2,h3,h4,h5,h6,.logo { font-family:var(--font-heading); font-weight:600; }

.container { max-width:1280px; margin:0 auto; padding:0 5%; }


/* ── SCROLL PROGRESS BAR ────────────────────── */
#progressBar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
}


/* ── CUSTOM CURSOR ──────────────────────────── */
#cursor {
    position: fixed;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s var(--ease), background 0.2s;
    transform-origin: center;
}
#cursorRing {
    position: fixed;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.5;
    transition: transform 0.15s var(--ease), opacity 0.2s;
}
#cursor.cursor-grow   { transform: scale(3); background: var(--accent-light); }
#cursorRing.ring-grow { transform: scale(1.6); opacity: 0.25; }
@media (max-width:768px) { #cursor, #cursorRing { display:none; } }


/* ── FILM GRAIN ─────────────────────────────── */
.film-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9996;
    opacity: 0.045;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox%3D"0 0 256 256" xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%3E%3Cfilter id%3D"n"%3E%3CfeTurbulence type%3D"fractalNoise" baseFrequency%3D"0.9" numOctaves%3D"4" stitchTiles%3D"stitch"%2F%3E%3C%2Ffilter%3E%3Crect width%3D"100%25" height%3D"100%25" filter%3D"url(%23n)"%2F%3E%3C%2Fsvg%3E');
    background-size: 180px 180px;
    /* position shifted by JS every 50ms */
}


/* ── TYPOGRAPHY UTILITIES ───────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-header { margin-bottom: 4rem; }


/* ── NAVIGATION ─────────────────────────────── */
.navbar {
    position:  fixed;
    top: 0; width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    background: rgba(10,10,8,0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(242,237,228,0.04);
    transition: var(--transition);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.8rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease);
    display: inline-block;
}
.nav-links a:hover { color: var(--text-primary); transform: translateY(-2px) scale(1.05); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 600;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.35s var(--ease), opacity 0.25s;
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width:768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        background: rgba(10,10,8,0.97);
        backdrop-filter: blur(24px);
        z-index: 550;
    }
    .nav-links.open   { display: flex; }
    .nav-links a      { font-size: 1.8rem; font-family: var(--font-heading); }
}

/* Outline button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--glass-border-md);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width:768px) { .btn-outline { display:none; } }


/* ── BUTTONS ────────────────────────────────── */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 15px 30px var(--accent-glow);
    transform: translateY(-4px) scale(1.03);
}

.btn-secondary {
    background: var(--glass-bg);
    color: #F2EDE4;
    border: 1px solid rgba(242,237,228,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(20, 19, 17, 0.5);
}


/* ── HERO ───────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg { position:absolute; inset:0; z-index:0; }

.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: drift 22s infinite ease-in-out alternate;
}
.blob-1 {
    width: 50vw; height: 50vw;
    background: var(--accent);
    opacity: 0.12;
    top: -15%; left: -10%;
}
.blob-2 {
    width: 38vw; height: 38vw;
    background: #6B3A1F;
    opacity: 0.08;
    bottom: -10%; right: -8%;
    animation-delay: -10s;
}

@keyframes drift {
    0%   { transform: translate(0,0) scale(1);      }
    100% { transform: translate(6%,10%) scale(1.12); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 0 5%;
}

.role-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.main-title {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.93;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

/* Text rotator */
.text-rotator {
    min-height: 72px;
    position: relative;
    margin-bottom: 3rem;
}
.supporting-text {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    position: absolute;
    width: 100%;
    left: 50%; top: 0;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.9s ease;
    line-height: 1.65;
}
.supporting-text.active { opacity: 1; }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ── SECTIONS ───────────────────────────────── */
section { padding: 120px 0; position: relative; z-index: 1; }


/* ── WORK / PROJECTS ────────────────────────── */
.work-section { background: var(--bg-secondary); }
.projects-grid { display:flex; flex-direction:column; gap:6rem; }

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.project-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}
.project-card:nth-child(even) .project-visual { order:2; }
.project-card:nth-child(even) .project-info   { order:1; }

/* Project visual — cinematic placeholder */
.project-visual {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-visual:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* AHM — cool dark teal */
.project-visual-ahm {
    background: linear-gradient(155deg, #0C1A1E 0%, #0A1218 55%, var(--bg-primary) 100%);
}
.project-visual-ahm::before {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 26px,
            rgba(242,237,228,0.03) 27px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(242,237,228,0.015) 61px
        );
}
.project-visual-ahm::after {
    content: '▶  ALLIED HEALTH MEDIA';
    position: absolute;
    bottom: 24px; left: 28px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(242,237,228,0.18);
}

/* Kalrav — warm cinematic */
.project-visual-kalrav {
    background: linear-gradient(155deg, #1A0D06 0%, #120908 55%, var(--bg-primary) 100%);
}
.project-visual-kalrav::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(207,92,39,0.14) 0%, transparent 60%);
}
.project-visual-kalrav::after {
    content: '▶  KALRAV ANNUAL FEST';
    position: absolute;
    bottom: 24px; left: 28px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(242,237,228,0.18);
}

/* Hover overlay */
.project-overlay {
    position: absolute; inset: 0;
    background: rgba(207,92,39,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}
.project-visual:hover .project-overlay { opacity:1; }

.view-case {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    transform: translateY(18px);
    transition: transform 0.4s var(--ease);
}
.project-visual:hover .view-case { transform: translateY(0); }

/* Project info */
.project-tags { display:flex; gap:0.8rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.project-tags span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    background: var(--accent-subtle);
    border: 1px solid rgba(207,92,39,0.25);
    border-radius: 100px;
    color: var(--accent-light);
}
.project-info h3 { font-size: 2.2rem; margin-bottom:1.4rem; line-height:1.1; }
.project-desc { color:var(--text-secondary); margin-bottom:0.8rem; font-size:1.05rem; }
.project-desc strong { color:var(--text-primary); font-weight:500; }

@media (max-width:1024px) {
    .project-card,
    .project-card:nth-child(even) { grid-template-columns:1fr; gap:2rem; }
    .project-card:nth-child(even) .project-visual { order:1; }
    .project-card:nth-child(even) .project-info   { order:2; }
}


/* ── SERVICES ───────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
}

.service-category {
    background: var(--bg-primary);
    padding: 2.8rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-category::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}
.service-category:hover { 
    border-color:var(--glass-border-md); 
    transform:translateY(-12px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.service-category:hover::after { width:100%; }

.service-icon {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    opacity: 0.7;
}

.service-category h3 { font-size:1.65rem; margin-bottom:1.8rem; }

.service-category ul { list-style:none; }
.service-category ul li {
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}
.service-category ul li::before {
    content: '→';
    position: absolute; left: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

@media (max-width:1024px) { .services-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px)  { .services-grid { grid-template-columns:1fr; } }


/* ── PROCESS ────────────────────────────────── */
.process-section { background: var(--bg-secondary); }
.process-list { display:flex; flex-direction:column; gap:1.5rem; }

.process-item {
    display: flex;
    gap: 3rem;
    padding: 2.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 2px solid transparent;
    border-radius: 18px;
    align-items: flex-start;
    transition: var(--transition);
}
.process-item:hover {
    background: rgba(207,92,39,0.04);
    border-color: rgba(207,92,39,0.25);
    border-left-color: var(--accent);
}

.process-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.5;
    min-width: 80px;
}

.process-content h3 { font-size:1.8rem; margin-bottom:0.8rem; }
.process-content p  { color:var(--text-secondary); font-size:1.05rem; max-width:600px; }

@media (max-width:640px) {
    .process-item { flex-direction:column; gap:1rem; padding:2rem; }
}


/* ── ABOUT ──────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-desc { font-size:1.15rem; color:var(--text-secondary); margin-bottom:1.4rem; line-height:1.75; }

.about-highlights {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.highlight-badge {
    padding: 0.65rem 1.2rem;
    background: var(--accent-subtle);
    border: 1px solid rgba(207,92,39,0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 500;
}

/* Portrait */
.portrait-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Cinematic gradient stand-in */
.portrait-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 40% 35%, rgba(207,92,39,0.22) 0%, transparent 55%),
        linear-gradient(180deg, #1A0F09 0%, #0A0A08 100%);
}
.portrait-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(242,237,228,0.25);
    text-transform: uppercase;
    text-align: center;
}

.glitch-effect {
    position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(207,92,39,0.06) 45%, transparent 50%);
    background-size: 250% 250%;
    animation: glitch 6s infinite linear;
}
@keyframes glitch {
    0%   { background-position: 220% 0;   }
    100% { background-position: -220% 0;  }
}

@media (max-width:1024px) {
    .about-grid { grid-template-columns:1fr; gap:3.5rem; }
    .portrait-placeholder { max-width:400px; }
}


/* ── TESTIMONIALS ───────────────────────────── */
.testimonials-section { padding:100px 0; background: var(--bg-secondary); }

.testimonial-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    padding-right: 2rem;
    scrollbar-width: none;
}
.testimonial-slider::-webkit-scrollbar { display:none; }

.testimonial-card {
    min-width: 380px;
    max-width: 380px;
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
    flex-shrink: 0;
}
.testimonial-card:hover { border-color: rgba(207,92,39,0.25); }

.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.testimonial-author { display:flex; align-items:center; gap:0.9rem; }

.author-avatar {
    width: 44px; height: 44px;
    background: var(--accent-subtle);
    border: 1px solid rgba(207,92,39,0.25);
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-light);
}

.author-info strong { display:block; font-size:1rem; color:var(--text-primary); }
.author-info span   { color:var(--text-secondary); font-size:0.85rem; }


/* ── CONTACT ────────────────────────────────── */
.contact-section { padding:140px 0; }

.contact-box {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 5rem 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}
.contact-box::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%; transform: translateX(-50%);
    width: 60%; height: 80%;
    background: radial-gradient(ellipse, var(--accent-subtle) 0%, transparent 65%);
    pointer-events: none;
}

.cta-title { font-size:clamp(2rem,4vw,3.2rem); margin-bottom:1.2rem; line-height:1.15; }
.cta-desc  { color:var(--text-secondary); font-size:1.15rem; margin-bottom:2.8rem; }

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-links { display:flex; justify-content:center; gap:2.2rem; flex-wrap:wrap; }
.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.25s;
}
.social-links a:hover { color:var(--accent); }


/* ── FOOTER ─────────────────────────────────── */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-primary);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.footer-logo { font-family:var(--font-heading); font-weight:700; color:var(--text-primary); }

@media (max-width:768px) {
    .footer-content { flex-direction:column; text-align:center; }
}


/* ── ANIMATIONS ─────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-up.in-view { opacity:1; transform:translateY(0); }

/* Staggered delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }


/* ── RESPONSIVE MISC ────────────────────────── */
@media (max-width:768px) {
    .hero-stats     { gap:2rem; }
    .hero-actions   { flex-direction:column; align-items:center; }
    .btn-primary,
    .btn-secondary  { width:100%; max-width:280px; }
    .contact-links  { flex-direction:column; align-items:center; }
    section         { padding:80px 0; }
    .projects-grid  { gap:3.5rem; }
}
