/* 
 * Variant 2: La Dynamique - Style.css
 * Style: Bold, Modern, Dynamic, Tech, High Contrast
 * Font: Space Grotesk (Headers), Inter (Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;600&display=swap');

:root {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --accent-primary: #059669;
    /* Darker Emerald for high contrast */
    --accent-bright: #34d399;
    /* Neon Emerald for highlights */
    --accent-dark: #064e3b;
    --border-color: #d1d5db;

    /* Dynamic Elements */
    --radius-sm: 4px;
    --radius-md: 12px;
    /* Slightly squarer than V1 */
    --shadow-bold: 4px 4px 0px rgba(0, 0, 0, 1);
    /* Hard shadow */
    --shadow-hover: 6px 6px 0px rgba(5, 150, 105, 1);

    --skew-angle: -3deg;
}

[data-theme="dark"] {
    --bg-body: #111827;
    --bg-card: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --accent-primary: #34d399;
    --accent-bright: #10b981;
    --border-color: #374151;
    --shadow-bold: 4px 4px 0px rgba(0, 0, 0, 0.5);
    --shadow-hover: 6px 6px 0px rgba(52, 211, 153, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    /* V3 Background: White with Green Blobs */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.btn {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* Header */
header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--text-main);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-decoration: none;
    border: 2px solid var(--text-main);
    padding: 4px 12px;
    background: var(--accent-bright);
    box-shadow: 2px 2px 0 var(--text-main);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ... existing fonts ... */

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    background-color: transparent;
    /* Allow body bg to show */
    overflow: visible;
    clip-path: none;
    /* Remove V2 clip path */
    margin-bottom: 40px;
    background-image: none;
    /* Remove V2 texture */
}

/* Prop 3 Hero Image Frame */
.hero-img-box {
    width: 350px;
    height: 450px;
    position: relative;
    border: 2px solid var(--accent-primary);
    transition: transform 0.3s;
}

.hero-img-box:hover {
    transform: translate(-5px, -5px);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.hero-img-box:hover .hero-img {
    filter: grayscale(0%);
}

.hero-img-box::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--text-main);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    margin-top: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--text-main);
    transition: all 0.2s;
    font-size: 1rem;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-main);
    background-color: var(--accent-bright);
    color: var(--text-main);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: 4px 4px 0 var(--border-color);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Sections */
section {
    padding: 80px 0;
}

.skew-bg {
    background: var(--text-main);
    color: var(--bg-body);
    transform: skewY(var(--skew-angle));
    padding: 100px 0;
    margin: 80px 0;
}

.skew-content {
    transform: skewY(calc(var(--skew-angle) * -1));
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--text-main);
    padding: 32px;
    box-shadow: var(--shadow-bold);
    transition: all 0.2s;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

/* Glassmorphism Utilities (from V3) */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Timeline (V3 Glass Style) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-bright), var(--accent-primary));
    box-shadow: 0 0 15px var(--accent-primary);
    transition: height 0.1s ease-out;
}

.timeline-item {
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 24px;
    width: 20px;
    height: 20px;
    background: var(--bg-body);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

@media (max-width: 900px) {
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }
}

/* Slider (Prop 1 Style for Fusion) */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 60px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-bold);
    user-select: none;
    border: 4px solid var(--text-main);
}

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

.img-after {
    clip-path: inset(0 0 0 50%);
}

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

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    border: 2px solid var(--accent-primary);
}

/* Footer */
footer {
    background: var(--text-main);
    color: var(--bg-body);
    padding: 60px 0;
    text-align: center;
}

footer a {
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 700;
    margin: 0 16px;
    font-size: 1.2rem;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--text-main);
    padding: 8px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--text-main);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .custom-cursor {
        display: none;
        /* Hide custom cursor on touch devices */
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-bright);
    border-radius: 50%;
    /* Or make it square for more industrial look */
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.active {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 211, 153, 0.2);
    border-color: var(--accent-primary);
}

/* Glitch Title Effect (from Prop 3) */
.glitch-title {
    position: relative;
    color: var(--text-main);
}

.glitch-title::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 2px 0 var(--accent-primary);
    top: 0;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse;
}

@keyframes noise-anim-2 {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    100% {
        clip: rect(80px, 9999px, 100px, 0);
    }
}

/* Glitch Hover Effect */
.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--accent-bright);
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* Scanner Bar for Slider */
.ba-slider .scan-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent-bright);
    box-shadow: 0 0 15px var(--accent-bright);
    z-index: 10;
    pointer-events: none;
}