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

:root {
    /* Color Palette */
    --primary: #2D6A4F;
    --primary-light: #40916C;
    --accent: #FF7B00;
    --accent-glow: rgba(255, 123, 0, 0.4);
    --bg-dark: #081C15;
    --bg-card: rgba(27, 67, 50, 0.3);
    --text-main: #D8F3DC;
    --text-muted: #95D5B2;
    --white: #ffffff;

    /* Transitions & Blurs */
    --glass-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-shadow: 0 0 20px rgba(45, 106, 79, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Customization */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

p {
    font-weight: 300;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-dark {
    background: rgba(8, 28, 21, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
    background: #ff8c00;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #081C15;
    padding-top: 80px;
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    /* Suble video background */
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 28, 21, 0.3) 0%, rgba(8, 28, 21, 0.6) 100%);
    z-index: 1;
}

/* Ensure hero content is above background */
.hero-grid {
    position: relative;
    z-index: 2;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(45, 106, 79, 0.4);
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Stacked Gallery (React Port) */
.stacked-gallery {
    position: relative;
    width: 320px;
    height: 480px;
    margin: 0 auto;
    perspective: 1000px;
}

.stacked-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 28, 21, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
    cursor: pointer;
    overflow: hidden;
    /* Default stacked state: centered */
    transform: translateY(0) scale(1);
    z-index: 1;
}

.stacked-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

.stacked-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px var(--accent-glow);
    z-index: 10 !important;
}

/* Active states managed by JS for the spread effect */
.stacked-card.active-spread {
    /* Styles applied when gallery is hovered/active */
}

@media (max-width: 768px) {
    .stacked-gallery {
        width: 240px;
        height: 360px;
        margin-bottom: 2rem;
    }
}

/* Form Section */
.tester-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
}

.form-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Features grid */
.features-section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 3rem;
}

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

.feature-card {
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.feature-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Guide Section */
.guide-section {
    padding: 80px 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 4rem 0;
}

.step {
    text-align: center;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.copy-box {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.copy-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 60px 0 20px;
    background: #040d0a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo img {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Response messaging */
.hidden {
    display: none;
}

.success-message {
    padding: 2rem;
    background: rgba(45, 106, 79, 0.2);
    border-radius: 20px;
    border: 1px solid var(--primary);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
        padding: 0 1rem;
    }

    .hero-image {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .guide-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .hero {
        background: #081C15;
    }
}

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

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .input-group input {
        background: rgba(255, 255, 255, 0.05);
        padding: 1.2rem;
        border-radius: 30px;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links {
        display: none;
    }

    .form-container {
        padding: 2rem;
    }

    .hero {
        padding-top: 120px;
    }
}