/* ===================================
   BRAVES — Portfolio Agency Redesign
   Inspired by Alexix / Aaronn
   =================================== */

/* ---- DARK THEME (Default) ---- */
:root,
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --bg-card: #161616;
    --bg-elevated: #1c1c1c;
    --bg-nav: rgba(10, 10, 10, 0.88);

    --accent: #ccff00;
    --accent-dim: rgba(204, 255, 0, 0.1);
    --accent-glow: 0 0 30px rgba(204, 255, 0, 0.3);

    --btn-bg: #ccff00;
    --btn-text: #000;
    --btn-hover: #d8ff33;
    --btn-outline-c: #ccff00;

    --text: #ffffff;
    --text-2: #aaaaaa;
    --text-3: #666666;

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(204, 255, 0, 0.3);

    --marquee-bg: #ccff00;
    --marquee-text: #000;
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
    --bg: #f5f5f0;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #eeeeea;
    --bg-nav: rgba(245, 245, 240, 0.92);

    --accent: #4a7a00;
    --accent-dim: rgba(74, 122, 0, 0.08);
    --accent-glow: 0 0 20px rgba(74, 122, 0, 0.15);

    --btn-bg: #3a6600;
    --btn-text: #fff;
    --btn-hover: #4a7a00;
    --btn-outline-c: #3a6600;

    --text: #111111;
    --text-2: #555555;
    --text-3: #999999;

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(74, 122, 0, 0.3);

    --marquee-bg: #3a6600;
    --marquee-text: #fff;
}

/* ---- FONTS ---- */
:root {
    --f-head: 'Outfit', sans-serif;
    --f-body: 'Inter', sans-serif;
}

/* ===================================
   RESET
   =================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s, color 0.5s;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--f-head); line-height: 1.1; font-weight: 800; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===================================
   UTILITIES
   =================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-heading { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }
.section-sub { font-size: 18px; color: var(--text-2); max-width: 540px; }
.section-top { margin-bottom: 64px; }
.accent-text { color: var(--accent); }

/* ===================================
   SCROLL PROGRESS
   =================================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--accent); z-index: 9999; width: 0%;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 72px;
    background: var(--bg-nav); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border); z-index: 1000;
    display: flex; align-items: center;
    transition: background 0.4s;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-family: var(--f-head); font-size: 26px; font-weight: 900; }
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.3s; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links .btn { color: var(--btn-text); }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; }

/* Theme Toggle */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-2); font-size: 18px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px;
    font-weight: 700; font-size: 14px; font-family: var(--f-head);
    cursor: pointer; border: none; transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.btn-accent { background: var(--btn-bg); color: var(--btn-text); }
.btn-accent:hover { box-shadow: var(--accent-glow); transform: translateY(-2px); filter: brightness(1.1); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===================================
   HERO
   =================================== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; padding-top: 100px; padding-bottom: 0;
    position: relative; overflow: hidden;
}
.hero-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: 48px; align-items: center; margin-bottom: 80px;
}
.hero-label { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--accent); margin-bottom: 24px; text-transform: uppercase; }
.hero-heading {
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 900; letter-spacing: -2px; margin-bottom: 24px;
}
.hero-desc { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Photo Card */
.hero-photo-card {
    position: relative; border-radius: 24px; overflow: hidden;
    aspect-ratio: 3/4; max-width: 380px; margin-left: auto;
}
.hero-photo {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.2) contrast(1.05);
    transition: filter 0.5s;
}
.hero-photo:hover { filter: grayscale(0) contrast(1.1); }
.photo-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--btn-bg); color: var(--btn-text);
    padding: 12px 20px; border-radius: 14px;
}
.badge-number { display: block; font-size: 22px; font-weight: 900; font-family: var(--f-head); }
.badge-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }

/* Marquee */
.marquee-strip {
    background: var(--marquee-bg); color: var(--marquee-text);
    padding: 14px 0; overflow: hidden; white-space: nowrap;
    margin: 0 -32px;
}
.marquee-track {
    display: inline-flex; align-items: center; gap: 32px;
    animation: marquee 20s linear infinite;
}
.marquee-track span { font-family: var(--f-head); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.marquee-track i { font-size: 10px; opacity: 0.5; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { font-size: 17px; color: var(--text-2); margin-bottom: 36px; line-height: 1.8; }
.about-stats { display: flex; gap: 40px; margin-bottom: 32px; }
.stat-block {}
.stat-num { display: block; font-size: 28px; font-weight: 800; font-family: var(--f-head); color: var(--accent); }
.stat-desc { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.about-img { border-radius: 20px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.social-row { display: flex; gap: 16px; }
.social-row a {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text-2); transition: 0.3s;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ===================================
   PROTOCOL / BENTO GRID
   =================================== */
.protocol-section { background: var(--bg); }
.protocol-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}
.bento-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px; position: relative;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1); overflow: hidden;
}
.bento-card:hover { border-color: var(--border-hover); transform: translateY(-6px); }
.bento-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--text); }
.bento-card p { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.bento-num {
    font-size: 56px; font-weight: 900; font-family: var(--f-head);
    color: var(--accent); opacity: 0.15; margin-bottom: 16px; display: block; line-height: 1;
}
/* Big card with image */
.bento-big { grid-row: span 2; padding: 0; }
.bento-img { width: 100%; height: 60%; object-fit: cover; border-radius: 24px 24px 0 0; }
.bento-overlay { padding: 32px 40px; }
.bento-overlay .bento-num { opacity: 0.3; }
/* Wide card */
.bento-wide { grid-column: span 2; }

/* ===================================
   LEVELS SECTION
   =================================== */
.levels-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.levels-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
    display: flex; flex-direction: column;
    transition: 0.4s; position: relative;
}
.level-card:hover { transform: translateY(-6px); }
.level-card.featured { border-color: var(--accent); }
.level-badge {
    position: absolute; top: -12px; right: 24px;
    background: var(--btn-bg); color: var(--btn-text);
    padding: 4px 14px; border-radius: 8px;
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.level-number { font-size: 48px; font-weight: 900; color: var(--accent); opacity: 0.2; font-family: var(--f-head); line-height: 1; margin-bottom: 16px; }
.level-name { font-size: 22px; margin-bottom: 6px; }
.level-range { font-size: 13px; color: var(--text-3); margin-bottom: 24px; display: block; }
.level-list { list-style: none; flex-grow: 1; margin-bottom: 24px; }
.level-list li { font-size: 14px; color: var(--text-2); margin-bottom: 10px; padding-left: 18px; position: relative; }
.level-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); opacity: 0.5; }
.level-focus { padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.level-focus strong { color: var(--accent); }

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials-section { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 36px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.4s;
}
.testimonial-card:hover { border-color: var(--border-hover); }
.testimonial-quote { font-size: 15px; font-style: italic; color: var(--text-2); line-height: 1.8; margin-bottom: 28px; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent-dim); border: 1px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 18px; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-3); }

/* ===================================
   QUIZ
   =================================== */
.quiz-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quiz-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 32px; padding: 64px; max-width: 800px; margin: 0 auto;
}
.quiz-header { text-align: center; margin-bottom: 40px; }
.quiz-header h3 { font-size: 28px; margin-bottom: 10px; }
.quiz-header p { color: var(--text-2); }
.quiz-question {
    font-family: var(--f-head); font-size: 20px;
    color: var(--accent); margin-bottom: 28px; text-align: center;
}
.quiz-option-btn {
    width: 100%; padding: 20px 24px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text); border-radius: 14px; margin-bottom: 12px;
    text-align: left; font-size: 16px; font-family: var(--f-body);
    cursor: pointer; transition: all 0.3s;
}
.quiz-option-btn:hover { border-color: var(--accent); background: var(--accent-dim); padding-left: 30px; }
.quiz-step-ind { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; }
.quiz-result { text-align: center; }
.quiz-result h2 { color: var(--accent); font-size: 26px; margin-bottom: 16px; }
.quiz-result p { color: var(--text-2); font-size: 16px; margin-bottom: 28px; line-height: 1.7; }

/* ===================================
   CTA SECTION
   =================================== */
.cta-section { background: var(--bg); padding: 80px 0; }
.cta-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 32px; overflow: hidden;
    display: grid; grid-template-columns: 1.2fr 0.8fr;
}
.cta-content { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.cta-content p { color: var(--text-2); font-size: 18px; margin-bottom: 32px; }
.cta-visual { position: relative; }
.cta-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter 0.5s; }
.cta-img:hover { filter: grayscale(0.3) contrast(1.05); }

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-3); margin-top: 16px; font-size: 14px; }
.footer-links-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-3); margin-bottom: 16px; }
.footer-links-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; transition: 0.3s; }
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-3);
}

/* ===================================
   FLOATING WHATSAPP
   =================================== */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 60px; height: 60px; background: #25D366; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: 0.3s; animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); color: #fff; }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================================
   ANIMATIONS
   =================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo-card { max-width: 320px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .protocol-bento { grid-template-columns: 1fr; }
    .bento-big { grid-row: span 1; }
    .bento-wide { grid-column: span 1; }
    .levels-row, .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .cta-card { grid-template-columns: 1fr; }
    .cta-visual { height: 300px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-heading { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .about-stats { flex-direction: column; gap: 20px; }
    .marquee-strip { margin: 0 -20px; }
    .quiz-box { padding: 36px 20px; border-radius: 24px; }
    .cta-content { padding: 40px 24px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 26px; }
}
