/* 
 * Cosmic Glass Design System
 * Inspired by: Glass cylinders, orbital rings, golden energy flows
 * Palette: Deep purple-blue (#0d0d1a - #1a1a3a), Golden-orange (#f5a623, #ff6b2b), Cool purple (#7c3aed)
 */

:root {
    /* === Core Cosmic Colors === */
    --cosmic-void: #0a0a12;
    --cosmic-deep: #0d0d1a;
    --cosmic-mid: #151528;
    --cosmic-surface: #1a1a2e;
    --cosmic-elevated: #252540;

    /* === Glow Colors === */
    --glow-gold: #f5a623;
    --glow-orange: #ff6b2b;
    --glow-amber: #fbbf24;
    --glow-purple: #a855f7;
    --glow-blue: #6366f1;
    --glow-cyan: #22d3ee;

    /* === Glass Properties === */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-glow: rgba(245, 166, 35, 0.3);
    --glass-blur: 20px;

    /* === Text Colors === */
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.7);
    --text-muted: rgba(248, 250, 252, 0.5);
    --text-glow: #fbbf24;

    /* === Shadows & Glows === */
    --shadow-ambient: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-gold: 0 0 40px rgba(245, 166, 35, 0.15), 0 0 80px rgba(245, 166, 35, 0.05);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.15), 0 0 80px rgba(168, 85, 247, 0.05);

    /* === Gradients === */
    --gradient-cosmic-bg: linear-gradient(135deg, var(--cosmic-void) 0%, #12122a 50%, var(--cosmic-deep) 100%);
    --gradient-gold-line: linear-gradient(90deg, transparent, var(--glow-gold), transparent);
    --gradient-glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* === Base Body === */
body.cosmic-theme {
    background: var(--gradient-cosmic-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

/* === Cosmic Background Layer === */
.cosmic-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 70%),
        var(--gradient-cosmic-bg);
    z-index: -1;
}

/* === Glass Card === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-ambient);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass-shine);
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-glow);
    box-shadow: var(--shadow-ambient), var(--shadow-glow-gold);
}

/* === Glass Card with Golden Glow === */
.glass-card-gold {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 16px;
    box-shadow: var(--shadow-ambient), 0 0 30px rgba(245, 166, 35, 0.1);
    position: relative;
}

.glass-card-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-gold-line);
    opacity: 0.6;
}

/* === Orbital Ring Decoration === */
.orbital-ring {
    position: absolute;
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 50%;
    animation: orbit-pulse 4s ease-in-out infinite;
}

@keyframes orbit-pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* === Glowing Text === */
.text-glow {
    color: var(--text-glow);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
}

/* === Primary Button (Golden) === */
.btn-cosmic {
    background: linear-gradient(135deg, var(--glow-gold) 0%, var(--glow-orange) 100%);
    color: #0a0a12;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-cosmic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}

/* === Secondary Button (Glass) === */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px 28px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-glow);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15);
}

/* === Hero Section === */
.hero-cosmic {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-cosmic-bg);
}

.hero-cosmic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/cosmic-waves.jpg') center/cover no-repeat;
    opacity: 0.4;
}

.hero-cosmic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--cosmic-void) 90%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* === Cosmic Divider === */
.divider-cosmic {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.3), rgba(168, 85, 247, 0.2), transparent);
    margin: 40px 0;
}

/* === Stat Cards with Glow === */
.stat-cosmic {
    padding: 24px;
    text-align: center;
}

.stat-cosmic .value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--glow-gold), var(--glow-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-cosmic .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* === Input Fields === */
.input-cosmic {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.input-cosmic:focus {
    outline: none;
    border-color: var(--glow-gold);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.input-cosmic::placeholder {
    color: var(--text-muted);
}

/* === Navigation Header === */
.header-cosmic {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* === Footer === */
.footer-cosmic,
.site-footer {
    background: rgba(10, 10, 18, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: auto;
    /* Push to bottom if flex container */
}

/* === Animation: Floating Particles === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--glow-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

/* === Responsive === */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 12px;
    }

    .btn-cosmic,
    .btn-glass {
        padding: 10px 20px;
    }
}

/* === Cosmic Icon Sprites === */
.icon-sprite {
    width: 64px;
    height: 64px;
    background-image: url('../images/cosmic-icons-sprite.jpg');
    background-size: 300% 300%;
    background-repeat: no-repeat;
    border-radius: 12px;
    filter: drop-shadow(0 0 8px rgba(110, 124, 255, 0.4));
    transition: all 0.3s ease;
}

.icon-sprite:hover {
    filter: drop-shadow(0 0 12px rgba(245, 166, 35, 0.6)) brightness(1.2);
    transform: scale(1.05);
}

/* Row 1 */
.icon-avatar {
    background-position: 0% 0%;
}

/* Shield/Face */
.icon-ship {
    background-position: 50% 0%;
}

/* Spaceship */
.icon-team {
    background-position: 100% 0%;
}

/* Team */

/* Row 2 */
.icon-drops {
    background-position: 0% 50%;
}

/* Drops */
.icon-create {
    background-position: 50% 50%;
}

/* Blob/Magic */
.icon-fav {
    background-position: 100% 50%;
}

/* Cards */

/* Row 3 */
.icon-box {
    background-position: 0% 100%;
}

/* Box/Camera */
.icon-chat {
    background-position: 50% 100%;
}

/* Magnifier/Search */
.icon-mic {
    background-position: 100% 100%;
}

/* Mic */

/* === Feature Icons (2x3 Grid) === */
.icon-feature {
    width: 64px;
    height: 64px;
    background-image: url('../images/features-sprite.webp');
    background-size: 300% 200%;
    /* 3 cols, 2 rows */
    background-repeat: no-repeat;
    border-radius: 12px;
    filter: drop-shadow(0 0 12px rgba(110, 124, 255, 0.4));
    transition: all 0.3s ease;
}

/* Feature Positions */
/* Row 1 */
.feat-shield {
    background-position: 0% 0%;
}

/* Shield */
.feat-orbit {
    background-position: 50% 0%;
}

/* Orbit/Planet */
.feat-team {
    background-position: 100% 0%;
}

/* Team */
/* Row 2 */
.feat-rocket {
    background-position: 0% 100%;
}

/* Rocket */
.feat-bar {
    background-position: 50% 100%;
}

/* Bar/Block */
.feat-mic {
    background-position: 100% 100%;
}

/* Mic */

/* === Project Icons (1x4 Grid) === */
.icon-project {
    width: 64px;
    height: 64px;
    background-image: url('../images/projects-sprite.png');
    background-size: 400% 100%;
    /* 4 cols, 1 row */
    background-repeat: no-repeat;
    border-radius: 12px;
    filter: drop-shadow(0 0 12px rgba(245, 166, 35, 0.4));
    transition: all 0.3s ease;
}

/* Project Positions */
.proj-app {
    background-position: 0% 0%;
}

/* Phone */
.proj-library {
    background-position: 33.33% 0%;
}

/* Team/Users */
.proj-routing {
    background-position: 66.66% 0%;
}

/* Connection/Cubes */
.proj-avatar {
    background-position: 100% 0%;
}

/* Brain/Head */