/* Global Variables */
:root {
    /* Brand Colors based on Logo */
    --bg-color: #001f3f;
    /* Deep Navy Blue */
    --text-color: #ffffff;
    --accent-color: #00AEEF;
    /* Bright Cyan/Blue */
    --secondary-accent: #8CC63F;
    /* Fresh Green */

    --glass-bg: rgba(0, 31, 63, 0.4);
    --glass-border: rgba(0, 174, 239, 0.2);
    --glass-blur: 15px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Physics Canvas Container */
#canvas-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: all;
    /* Allow interaction with physics objects */
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    /* Darker, solid-ish background to ensure logo visibility */
    background: rgba(0, 31, 63, 0.95);
    /* Deep Navy Brand Color */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 50px;
    /* Increased from 40px */
    width: auto;
    border-radius: 5px;
    /* Optional: If the new png still has edges, this might help, but transparency should be key */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Layout */
main {
    position: relative;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through empty spaces to the canvas */
}

section {
    min-height: 80vh;
    /* changed from 100vh to allow better flow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5%;
    pointer-events: auto;
    /* Re-enable pointer events for content */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    align-items: flex-start;
    text-align: left;
    /* Subtle background grid or glow matching the logo */
    background: radial-gradient(circle at 80% 20%, rgba(140, 198, 63, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 174, 239, 0.15) 0%, transparent 40%);
}

.hero-content {
    max-width: 800px;
    margin-top: 60px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    /* margin-bottom: 2rem; */
    color: #ccc;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Buttons */
.cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.05);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Contact Form & Layout */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    text-align: left;
}

.contact-left {
    flex: 1 1 300px;
}

.contact-right {
    flex: 1 1 250px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-right h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-accent);
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Remainder of input styles stays same */

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 2rem;
    /* Reduced height */
    /* Matching the Header Background */
    background: rgba(0, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    color: #aaa;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 20;
}

footer p {
    color: #8CC63F;
    /* Secondary accent for text */
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
        /* Reduced horizontal padding, kept vertical but... user said spacing is too much. */
        /* Let's actually reduce vertical padding as per plan */
        padding: 2rem 5%;
        min-height: auto;
        /* Remove forced height on mobile */
    }

    h1 {
        font-size: 2.8rem;
    }

    .glass-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.9rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        flex: 1 1 100%;
    }
}