/* Base styles reflecting the 'Space Future' and 'Dark Navy' themes */
:root {
    --dark-navy: #0A0F1E;
    --electric-blue: #00F0FF;
    --digital-purple: #B200FF;
    --teal: #00FFB2;
    --text-light: #F0F4F8;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-navy);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Interactive Canvas Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

header, main, footer {
    position: relative;
    z-index: 10;
}

/* --- Layout & Glassmorphism --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
    padding: 2rem 0;
}

.glass-panel {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

.product-grid .glass-panel:hover {
    transform: rotateX(10deg) rotateY(-10deg) translateZ(10px);
    border-color: rgba(178, 0, 255, 0.8);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(178, 0, 255, 0.3);
}

/* Typography */
h1, h2, h3, h4 {
    margin-top: 0;
}

.glass-panel h3 {
    color: var(--teal);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-panel p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Updated White Buttons --- */
.btn-white {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--dark-navy) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-white:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* --- Contact Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.form-label {
    display: block;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Navigation Layout --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* --- Material Design Breakpoints & Responsiveness --- */

/* Tablet & Smaller Desktop (max-width: 900px) */
@media (max-width: 900px) {
    h1 {
        font-size: 2.8rem !important;
    }
    .nav-container {
        padding: 1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin: 0.5rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 3rem 1rem !important;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Disable hover tilt on mobile for better touch experience */
    .product-grid .glass-panel:hover {
        transform: none;
    }
}