/* ============================================
   Tomorrow Lab - Forêt Jardin Website Styles
   One-Page Layout (Demo Version - Purple/Green)
   ============================================ */

:root {
    /* New Palette inspired by Cauldron Logo */
    --magic-purple: #8b5cf6;
    /* Vivid Purple */
    --magic-dark-purple: #581c87;
    /* Deep Purple */
    --magic-green: #4ade80;
    /* Bright Green */
    --magic-lime: #a3e635;
    /* Lime Green */

    /* Backgrounds */
    --bg-dark: #1e1b4b;
    /* Desaturated Dark Indigo/Purple */
    --bg-darker: #020617;
    /* Slate 950 - Almost Black */

    /* Text */
    --text-light: #f8fafc;
    --text-muted: #e9d5ff;
    /* Light Purple Text */

    /* Glass Effect */
    --glass-bg: rgba(139, 92, 246, 0.15);
    --glass-border: rgba(163, 230, 53, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, #170F26 50%, #111827 100%);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 10, 30, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
    background: var(--glass-bg);
}

.nav-link.active {
    color: var(--bg-darker);
    background: linear-gradient(135deg, var(--magic-green), var(--magic-lime));
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
    font-weight: 600;
}

/* ============================================
   Main Content & Sections
   ============================================ */

.main {
    padding-top: 70px;
}

.section {
    scroll-margin-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   Compact Hero Section
   ============================================ */

.hero-compact {
    text-align: center;
    padding: 3rem 2rem 1rem;
    background: linear-gradient(180deg,
            rgba(139, 92, 246, 0.15) 0%,
            transparent 100%);
}

.hero-header-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-logo {
    width: 150px;
    /* Increased from 80px */
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(163, 230, 53, 0.4));
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-compact h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--magic-lime), var(--magic-green), var(--magic-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
}

.hero-subtitle strong {
    color: var(--magic-lime);
    font-weight: 500;
}

/* ============================================
   Cards Grid
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 1.5rem;
    border-radius: 16px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--magic-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card h2,
.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--magic-green);
}

.card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ============================================
   Features
   ============================================ */

.features {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--magic-lime);
}

.feature-icon {
    font-size: 1.1rem;
}

/* ============================================
   Section Title
   ============================================ */

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
    background: linear-gradient(135deg, var(--magic-lime), var(--magic-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Project Cards
   ============================================ */

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 16px;
}

.project-media {
    width: 100%;
    /* height: 250px;  Removed fixed height */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover */
    transition: transform 0.5s ease;
    display: block;
    /* Removes bottom space */
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--magic-lime);
}

.project-info p {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-details {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.project-details li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--magic-green);
    font-weight: 700;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-center {
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 600px;
    text-align: center;
}

.contact-card h3 {
    color: var(--magic-green);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.contact-card>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1rem;
    margin: 1.5rem 0;
}

.contact-cell {
    width: 33.33%;
    vertical-align: top;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-btn svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.contact-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-btn.email:hover {
    background: rgba(163, 230, 53, 0.15);
    border-color: var(--magic-lime);
    color: var(--magic-lime);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(163, 230, 53, 0.2);
}

.contact-btn.phone:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--magic-green);
    color: var(--magic-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.2);
}

.contact-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
}

.contact-btn:hover svg {
    transform: scale(1.1);
}

.contact-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.address-icon {
    width: 20px;
    height: 20px;
    color: var(--magic-purple);
}

/* Honeypot anti-spam (hidden) */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================
   Form Styles
   ============================================ */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--magic-green);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--magic-green), var(--magic-lime));
    color: var(--bg-darker);
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

/* ============================================
   Photo Gallery / Carousel
   ============================================ */

.gallery-section {
    padding: 1.5rem 0;
}

.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    min-width: 100%;
    padding: 0 0.5rem;
}

.gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
}

.slide-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-btn:hover {
    background: var(--magic-green);
    border-color: var(--magic-green);
    color: var(--bg-darker);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.gallery-dot:hover {
    background: var(--magic-lime);
}

.gallery-dot.active {
    background: var(--magic-green);
    transform: scale(1.2);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer p {
    margin: 0.2rem 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .logo {
        height: 40px;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .main {
        padding-top: 60px;
    }

    .section {
        scroll-margin-top: 60px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .hero-compact {
        padding: 2rem 1rem 1rem;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-details {
        text-align: left;
    }

    .gallery-container {
        padding: 0 40px;
    }

    .gallery-slide img {
        height: 250px;
    }

    .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Theme Switcher Button */
.theme-switch-btn {
    /* position: fixed; Removed for alignment */
    /* top: 20px; */
    /* right: 20px; */
    /* z-index: 9999; */
    padding: 0.6rem 1.25rem;
    /* Match nav link padding roughly */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* backdrop-filter: blur(10px); Not needed inside header */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    /* Match nav font size */
}

.theme-switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn-magic {
    background: linear-gradient(135deg, #7c3aed, #a3e635);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-btn-original {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}