/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00aaff; /* A vibrant tech blue */
    --dark-bg: #111827;       /* Dark gray for background */
    --light-bg: #1f2937;      /* Lighter gray for cards */
    --text-color: #f9fafb;    /* Off-white for text */
    --text-muted: #9ca3af;    /* Gray for subtitles */
    --border-color: #374151;
    --success-color: #10b981;
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- General Section Styling --- */
section {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
    position: relative; /* Needed for positioning context */
}

/* --- Interactive Grid Background --- */
#interactive-grid {
    position: fixed; /* Changed to fixed to cover viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place BEHIND all other content */
}

/* --- Home/Hero Section --- */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Hide anything that goes outside the section */
}

/* No longer need z-index here since canvas is behind everything */
.hero-content, .details-grid {
    position: relative; 
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

#home h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

#home .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button, .calendly-button, .submit-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .calendly-button:hover, .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

.detail-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease-in-out;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Vision & About Sections --- */
#vision, #about {
    text-align: center;
}

.vision-content, .about-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.calendly-button {
    margin-bottom: 2rem;
}

.social-media {
    margin-top: 2rem;
}

.social-media a {
    color: var(--text-muted);
    font-size: 1.8rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-links {
        padding-top: 1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}
