/* Retro Age Engineering - Premium Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    /* Palette */
    --bg-dark: #030305;
    --bg-card: rgba(20, 20, 30, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --primary-cyan: #00f3ff;
    --primary-purple: #bd00ff;
    --accent-pink: #ff0055;

    --text-main: #ffffff;
    --text-muted: #a0a0b0;

    /* Effects */
    --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --glow-purple: 0 0 10px rgba(189, 0, 255, 0.5), 0 0 20px rgba(189, 0, 255, 0.3);

    /* Spacing */
    --section-spacing: 8rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.2);
}

/* --- Canvas Background --- */
#scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-cyan);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-main);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Sections --- */
section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--primary-purple);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
}

/* --- Contact --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* --- Footer --- */
footer {
    padding: 3rem 0;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-wrapper nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(3, 3, 5, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        padding-bottom: 4rem;
        /* Extra padding for bottom content if needed */
        flex-direction: column;
        align-items: center;
        transform: translateY(-100%);
        /* Hidden by default */
        opacity: 0;
        transition: all 0.4s ease;
        pointer-events: none;
        display: flex;
        /* Override previous display: none */
    }

    .nav-wrapper nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-cyan);
    }

    .nav-wrapper .btn-primary {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-large {
        padding: 0.8rem 1.2rem !important;
        /* Force smaller padding on mobile */
        font-size: 0.9rem !important;
        width: auto;
    }
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}