@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #05050A;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-glass: rgba(15, 15, 25, 0.4);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    
    --primary-gradient: linear-gradient(135deg, #818CF8 0%, #C084FC 100%);
    --bg-gradient: radial-gradient(circle at top center, rgba(79, 70, 229, 0.15) 0%, rgba(0,0,0,0) 50%);

    --btn-sec-bg: rgba(255, 255, 255, 0.05);
    --btn-sec-bg-hover: rgba(255, 255, 255, 0.1);
    --btn-sec-text: #FFFFFF;
    
    --footer-bg: rgba(0, 0, 0, 0.4);
    --footer-title: #FFFFFF;
}

body.light-mode {
    --bg-main: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    
    --border-glass: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(99, 102, 241, 0.5);
    
    --text-main: #0F172A;
    --text-muted: #475569;
    
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --bg-gradient: radial-gradient(circle at top center, rgba(99, 102, 241, 0.1) 0%, rgba(255,255,255,0) 50%);

    --btn-sec-bg: rgba(99, 102, 241, 0.1);
    --btn-sec-bg-hover: rgba(99, 102, 241, 0.2);
    --btn-sec-text: #4F46E5;
    
    --footer-bg: #E2E8F0;
    --footer-title: #0F172A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= UTILITIES ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--btn-sec-bg);
    color: var(--btn-sec-text);
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border-glass);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--btn-sec-bg-hover);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818CF8;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: var(--bg-main); /* Using main background for solid visibility or a new var */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.nav-links {
    /* Hidden by default on mobile — shown only on wide screens via min-width below */
    display: none;
    gap: 20px;
    align-items: center;
}

/* === Show nav-links only on desktop (> 1150px) === */
@media (min-width: 1151px) {
    .nav-links {
        display: flex;
    }
    /* Hide hamburger on desktop */
    .hide-on-mobile-inverse {
        display: none !important;
    }
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    /* Visible by default on mobile */
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

.theme-toggle-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--bg-card);
    transform: rotate(15deg);
}

/* ================= HERO ================= */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* ================= ARC GALLERY HERO ================= */
.arc-gallery-wrapper {
    position: absolute;
    top: 120px; /* Pushed significantly down to clear navbar */
    width: 100%;
    /* height is set dynamically by JS via radius * 1.2 */
    margin: 0 auto;
    pointer-events: none; /* Let clicks pass through background */
}

.arc-pivot {
    position: absolute;
    left: 50%;
    bottom: 0; /* Pivot exactly at bottom of wrapper */
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

.arc-item {
    position: absolute;
    pointer-events: auto; /* Re-enable clicks/hovers for cards */
    opacity: 0;
    transform-origin: center bottom;
}

.arc-card {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.light-mode .arc-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.arc-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px var(--border-glow);
    z-index: 50 !important;
}

.arc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
@keyframes arc-fade-in-up {
    0% { opacity: 0; transform: translate(-50%, 60%); }
    100% { opacity: 1; transform: translate(-50%, 50%); }
}

.animate-arc-up {
    animation: arc-fade-in-up 0.8s ease-out forwards;
}

@keyframes content-fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    opacity: 0;
    animation: content-fade-in 0.8s ease-out forwards;
}

.hero-content-arc {
    margin-top: 250px; /* Push text down strictly in sync with the absolute arch wrapper */
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content-arc h1 {
    font-size: clamp(32px, 5vw, 56px); /* Scaled down hero font size */
    margin-bottom: 20px;
}

.hero-content-arc p {
    font-size: 16px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .hero-content-arc {
        margin-top: 200px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-bottom: 20px;
    }
    .hero-cta {
        margin-bottom: 20px;
    }
    .steps-section {
        padding-top: 30px;
    }
    .arc-gallery-wrapper {
        top: 80px; 
    }
    .hero-content-arc {
        margin-top: 190px;
    }
    .hero-content-arc h1 {
        font-size: clamp(28px, 6vw, 36px);
    }
    .hero-content-arc p {
        font-size: 14px;
        max-width: 90%;
        margin-bottom: 20px;
    }
}

/* ================= STEPS ================= */
.steps-section {
    padding: 100px 0 50px;
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    background: var(--bg-card); /* overriding generic glass slightly */
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    font-size: 15px;
}

@media (min-width: 993px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 65px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: var(--border-glass);
        z-index: -1;
    }
}

/* ================= 6 POSES DEMO ================= */
.demo-section {
    padding: 100px 0;
    position: relative;
}

.demo-container {
    display: grid;
    grid-template-columns: 300px auto 1fr;
    gap: 40px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
}

.demo-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-card {
    background: var(--bg-glass);
    border: 1px dashed var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.input-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-main);
}

.input-card span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.demo-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pulse-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    animation: pulse 2s infinite;
    border: none;
}

.pulse-button svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.demo-outputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.output-card {
    aspect-ratio: 3/4;
    border-radius: 12px;
    background: var(--bg-main);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
}

.output-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.demo-container.active .output-card img {
    opacity: 1;
}

.demo-container.active .output-card:nth-child(1) img { transition-delay: 0.1s; }
.demo-container.active .output-card:nth-child(2) img { transition-delay: 0.3s; }
.demo-container.active .output-card:nth-child(3) img { transition-delay: 0.5s; }
.demo-container.active .output-card:nth-child(4) img { transition-delay: 0.7s; }
.demo-container.active .output-card:nth-child(5) img { transition-delay: 0.9s; }
.demo-container.active .output-card:nth-child(6) img { transition-delay: 1.1s; }


.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    font-size: 12px;
    font-weight: 600;
}

/* ================= BEFORE / AFTER SLIDER ================= */
.slider-section {
    padding: 100px 0;
}

.slider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.slider-container {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4; /* Vertical orientation */
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

@media (max-width: 576px) {
    .slider-grid {
        grid-template-columns: 1fr;
    }
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-before {
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* ================= FEATURES ================= */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #818CF8;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ================= PRICING ================= */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card.popular {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
}

.price-credits {
    color: #818CF8;
    font-weight: 600;
    margin-bottom: 30px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.price-features li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border-glass);
}

.price-features li:last-child {
    border-bottom: none;
}


/* ================= FOOTER ================= */
.footer {
    padding: 80px 0 30px;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-glass);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 15px;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--footer-title);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #818CF8;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
    .demo-action {
        flex-direction: row;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1150px) {
    .hero h1 {
        font-size: 36px;
    }
    .demo-outputs {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-container {
        aspect-ratio: 4/5;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================= FAB (Floating Action Buttons) ================= */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.fab-btn:hover {
    transform: translateY(-5px);
}

.wa-fab {
    background-color: #25D366;
}

.top-fab {
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.top-fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pulse-glow {
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
        transform: scale(0.9);
        transform-origin: bottom right;
    }
}

/* ================= MOBILE MENU OVERLAY ================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 10, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    /* Use opacity + visibility fade instead of slide */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.light-mode .mobile-menu-overlay {
    background: rgba(248, 250, 252, 0.97);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-menu-nav a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-menu-overlay .btn-primary, 
.mobile-menu-overlay .btn-secondary {
    width: 200px;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 1150px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 16px !important;
        gap: 6px !important;
    }
    .logo img {
        height: 24px !important;
    }
    
    /* Center Footer on Mobile */
    .footer-grid, .footer-bottom {
        text-align: center;
    }
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links > div {
        justify-content: center;
    }
}

/* ===== VIDEO GALLERY ===== */
.video-playlist-row::-webkit-scrollbar {
    height: 6px;
}
.video-playlist-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.video-playlist-row::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}
.video-playlist-row::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
