/* --- Variables & Reset --- */
:root {
    --bg-dark: #0f1012;
    --bg-card: #181a1f;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #10b981;
    /* Emerald 500 */
    --accent-glow: rgba(16, 185, 129, 0.4);
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --spacing-section: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* --- Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    /* Full viewport height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image:
        linear-gradient(to bottom, rgba(15, 16, 18, 0.3), var(--bg-dark)),
        url('./src/hero-background.webp');
    /* Placeholder Hero BG */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-content {
    z-index: 2;
    /* max-width: 800px; */
    padding: 0 1rem;
}

.hero-content img {
    box-shadow: none;
}

.hero-title {
    width: 28rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    /* Neon glow effect on text */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #cbd5e1;
}

/* Button Group */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button.primary {
    background-color: var(--accent);
    color: #0f1012;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
    background-color: #34d399;
}

.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* --- Feature Sections (Zig-Zag) --- */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out text and image */
    gap: 4rem;
    padding: var(--spacing-section) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When visible via JS IntersectionObserver */
.feature-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image::before {
    /* Optional decorative glow behind images */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

/* Zig-Zag Logic: Even sections reversed */
.feature-section:nth-child(even) {
    flex-direction: row-reverse;
}

/* Divider lines between sections (optional but aesthetic) */
.feature-section:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    background-color: #000;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.socials a {
    color: #fff;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .feature-section {
        flex-direction: column !important;
        /* Force column stack on mobile */
        text-align: center;
        gap: 2rem;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}