/* === Global Styles & Variables === */
:root {
    --primary-color: #0A4D68; /* A deep, professional blue */
    --secondary-color: #088395; /* A bright, tech teal */
    --accent-color: #00FFCA; /* A vibrant, high-tech mint */
    --dark-bg: #05161A;
    --light-text: #F0F0F0;
    --dark-text: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: var(--dark-text);
    line-height: 1.6;
    /* Add padding-top to prevent content from hiding under fixed navbar */
    padding-top: 70px; 
}

/* === Navigation === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; /* Keeps content spaced from edges */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0; /* Make it full width */
    right: 0; /* Make it full width */
    z-index: 1000;
    box-sizing: border-box; /* Ensures padding is included in width */
    height: 70px; /* Give navbar a fixed height */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* NEW: Hamburger Menu Button (hidden on desktop) */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark-text);
    cursor: pointer;
}

/* === Utility & Buttons === */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.content-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* === Hero Section (NEW 2-COLUMN LAYOUT) === */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding-top: 2rem; /* Body padding-top already handles navbar offset */
    padding-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    background: #f9f9f9; /* Match body background */
}

.hero-column-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.hero-text-column {
    text-align: left;
}

/* This is the original .hero-content, now renamed */
.hero-main-content h1 {
    color: var(--dark-text); /* Back to dark text */
}

.hero-main-content p {
    font-size: 1.25rem;
    color: #555; /* Back to dark text */
    margin-bottom: 2rem;
}

.hero-animation-column {
    width: 100%;
}

/* STYLING THE 3D CANVAS */
#aiCore {
    height: 500px; /* Taller canvas */
    width: 100%;
    cursor: grab;
    background: var(--dark-bg); /* Dark background for canvas */
    border-radius: 8px;
    overflow: hidden; /* Ensures canvas stays in border */
}

#aiCore canvas {
    display: block; /* Fixes any weird canvas spacing */
}

/* STYLING THE DEMO CONTROLS (in hero) */
.hero-animation-column .showcase-container {
    /* Reset showcase grid styles */
    display: block;
    grid-template-columns: none;
    gap: 0;
    align-items: stretch;
    text-align: left;
    margin-top: 1rem; /* Space between canvas and controls */
}

.hero-animation-column .showcase-controls {
    /* Reset showcase grid styles */
    grid-column: auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero-animation-column .control-btn {
    flex-grow: 1; /* Make buttons fill the space */
}

.hero-animation-column .showcase-content {
    /* Reset showcase grid styles */
    grid-column: auto;
    grid-row: auto;
    background: #fff; /* Give content a light card bg */
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === Showcase Section (Our Work) === */
.showcase-section {
    background-color: #fff;
}

/* This rule now *only* applies to the showcase in the #process section */
.showcase-section .showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
    margin-top: 3rem;
}

.animation-viewport {
    height: 400px;
    background-color: var(--dark-bg);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* This is the *old* animation div, which is now empty */
.ai-core-animation {
    display: none;
}

.showcase-controls {
    grid-column: 1 / -1; /* Make controls span full width */
    display: flex;
    flex-wrap: wrap; /* Allow controls to wrap on mobile */
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.control-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.control-btn.active,
.control-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.showcase-content {
    grid-column: 2 / 3; /* Position content to the right */
    grid-row: 1 / 2; /* Position content in the first row */
}

.content-panel {
    display: none; /* Hide all panels by default */
}

.content-panel.active {
    display: block; /* Show only the active one */
}


/* === Contact Section === */
.contact-section {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.contact-section h2 {
    color: #fff;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    background-color: #0c2a33;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding included in width */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
}

.contact-form textarea {
    grid-column: 1 / -1; /* Span full width */
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: center;
    width: 200px;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: #eee;
    color: #777;
    font-size: 0.9rem;
}

/* === Auth & App Styles === */
.nav-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--secondary-color);
}

/* Hide auth container by default */
#auth-container {
    display: none;
    padding-top: 100px; /* Offset from fixed navbar */
    min-height: 100vh;
}

/* ==================================
   Responsive Design
   ================================== */

/* === For Tablets & Mobile === */
@media (max-width: 900px) {
    body {
        /* Re-adjust body padding for shorter navbar if needed, but 70px is fine */
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* --- Mobile Navigation --- */
    .nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001;
    }

    .nav-links {
        display: none; /* Hide links by default */
        position: absolute;
        top: 70px; /* Match navbar height */
        left: 0;
        right: 0;
        
        flex-direction: column;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex; /* Show when active */
    }
    
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
    }

    /* --- Mobile Hero (from your file) --- */
    .hero-section {
        min-height: auto; /* Let content define height */
        padding-top: 3rem;
    }
    .hero-column-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2rem;
    }
    .hero-text-column {
        text-align: center; /* Center text when stacked */
        order: 2; /* Put text below animation */
    }
    .hero-animation-column {
        order: 1; /* Put animation on top */
    }
    .hero-main-content h1 {
        font-size: 2.5rem; /* Smaller H1 on mobile */
    }
    #aiCore {
        height: 350px; /* Shorter canvas on mobile */
    }

    /* --- Mobile Contact Form --- */
    .contact-form {
        grid-template-columns: 1fr; /* Stack to single column */
    }
}

/* === For Showcase Section (from your file) === */
@media (max-width: 768px) {
    .showcase-section .showcase-container {
        grid-template-columns: 1fr;
    }
    .showcase-section .animation-viewport {
        grid-row: 1;
        height: 300px; /* Even shorter viewport */
    }
    .showcase-section .showcase-content {
        grid-row: 2;
        grid-column: 1 / -1;
        text-align: center;
    }
    .showcase-section .showcase-controls {
        grid-row: 3;
        flex-direction: column; /* Stack control buttons */
    }
}