:root {
    /* Spatial Design System (Apple Vision Pro inspired) */

    /* Materials */
    --material-glass: rgba(200, 200, 200, 0.15);
    --material-glass-hover: rgba(255, 255, 255, 0.25);
    --material-glass-heavy: rgba(30, 30, 35, 0.6);

    --material-glass-purple: rgba(147, 51, 234, 0.15);
    --material-glass-purple-hover: rgba(255, 255, 255, 0.25);
    --material-glass-purple-heavy: rgba(30, 30, 35, 0.6);

    --material-glass-blue: rgba(59, 130, 246, 0.15);
    --material-glass-blue-hover: rgba(255, 255, 255, 0.25);
    --material-glass-blue-heavy: rgba(30, 30, 35, 0.6);

    --material-glass-yellow: rgba(234, 179, 8, 0.15);
    --material-glass-yellow-hover: rgba(255, 255, 255, 0.25);
    --material-glass-yellow-heavy: rgba(30, 30, 35, 0.6);



    /* Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --accent-glow: rgba(255, 255, 255, 0.4);

    /* Fonts */
    --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Outfit', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Space Grotesk', sans-serif;

    /* Spacing & Layout */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --spacing-unit: 8px;

    /* Depth & Effects */
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --backdrop-blur: blur(35px);
    --border-light: 1px solid rgba(255, 255, 255, 0.15);
    --border-hover: 1px solid rgba(255, 255, 255, 0.4);

    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 17px;
    /* Apple standard body size */
}

/* Background - Abstract Spatial Environment */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 0%, #2a2a35 0%, #000000 60%),
        radial-gradient(circle at 80% 80%, rgba(50, 50, 80, 0.3), transparent 40%);
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    /*background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);/*/
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 24px;
    max-width: 65ch;
}

.title-text {
    color: var(--text-primary);
}

.glass-text {
    /* glass effect text */
    display: block;
    background: transparent;
    -webkit-background-clip: text;
    color: transparent;
    /* Adjusted for text, using similar principles to shadow-glass */
    text-stroke: 1px rgba(255, 255, 255, 0.7);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: text-stroke 0.5s ease-in-out;
    transition: -webkit-text-stroke 0.5s ease-in-out;

}

.glass-text:hover {
    text-stroke: 3px rgba(255, 255, 255, 1);
    -webkit-text-stroke: 3px rgba(255, 255, 255, 1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}



.gradient-text {
    /* Subtle highlight instead of neon */
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    /* Slightly tighter for focus */
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

/* Navbar - Floating Spatial Dock */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 8px;
    z-index: 1000;

    background: rgba(20, 20, 20, 0.6);
    /* Darker, more contrast */
    backdrop-filter: blur(20px) saturate(180%);
    /* Heavy blur + vibrancy */
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Inner highlight */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar:hover {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateX(-50%) scale(1.02);
    /* Subtle scale up */
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 4px;
    /* Tighter gap for pill dock feel */
    background: rgba(255, 255, 255, 0.05);
    /* Subtle container for links */
    border-radius: 100px;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Hover Effect - visionOS Highlight */
.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.nav-links a:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

/* Active State (simulated) */
.nav-links a.active {
    background: #fff;
    color: #000;
}

.nav-links .btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.nav-links .btn-primary:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Buttons - Spatial Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-spring);
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Glass Cards - The Core of Spatial Design */
.glass-card {
    background: var(--material-glass);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    /* Very rounded */
    padding: 40px;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    /* Highlight sheen */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: var(--material-glass-hover);
    border: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    transition: var(--transition-spring);
}

.hero-image img {
    width: 120px;
    opacity: 0.5;
    height: auto;
}

.hero-image:hover {
    transform: scale(1.15);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* Tags */
.tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 40px 0;
}

.social-links a {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.copyright {
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    /* Scale effect for spatial feel */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        position: absolute;
        width: 90%;
        bottom: auto;
        /* Bottom nav on mobile often feels better, or stick to top */
        top: 12px;
        padding: 16px 24px;
    }

    .navbar .container {
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        height: 100svh;
    }

    .nav-links {
        display: none;
        /* Need a better mobile menu, but hiding for simplicity as per previous */
    }

    .hero-content {
        padding: 0;
    }

    .glass-card {
        padding: 24px;
        border-radius: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }
}