/* ========================================
   E.M.O. DIGITAL OMNIVERSE - Design System
   Retro-Futuristic Cyberpunk Portfolio
   ======================================== */

/* ==================== IMPORTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Color Palette - Cyberpunk */
    --space-black: #050505;
    --deep-space: #0a0a0f;
    --cosmic-blue: #0d1b2a;
    --neon-cyan: #00D4FF;
    --neon-cyan-glow: rgba(0, 212, 255, 0.4);
    --digital-lavender: #B8A9C9;
    --acid-green: #ADFF2F;
    --warm-orange: #FF6B35;
    --electric-purple: #A855F7;
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--space-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==================== STARFIELD CANVAS ==================== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) 0;
    position: relative;
}

/* ==================== GLASSMORPHISM ==================== */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan-glow);
    transform: translateY(-5px);
}

/* ==================== TYPOGRAPHY ==================== */
.title-display {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--neon-cyan), var(--digital-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px var(--neon-cyan-glow);
}

.title-section {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ==================== HEADER / NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 30px;
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--neon-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
}

/* ==================== PLANET GRID ==================== */
.planets-section {
    padding: var(--space-3xl) 0;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.planet-card {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}

.planet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.planet-card:hover img {
    transform: scale(1.1);
}

.planet-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.planet-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.planet-theme {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
}

.planet-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    z-index: 5;
    pointer-events: none;
}

.planet-card:hover::before {
    border-color: var(--neon-cyan);
    box-shadow: inset 0 0 30px var(--neon-cyan-glow);
}

/* ==================== CTA BUTTON ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--space-black);
    background: linear-gradient(135deg, var(--neon-cyan), var(--digital-lavender));
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--space-black);
    border-radius: inherit;
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--neon-cyan-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover span {
    position: relative;
    z-index: 1;
    color: var(--neon-cyan);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    background: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.btn-outline:hover {
    background: var(--neon-cyan);
    color: var(--space-black);
    box-shadow: 0 0 30px var(--neon-cyan-glow);
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 40px var(--neon-cyan-glow);
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: var(--space-xl) auto 0;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== PERSONA SECTION ==================== */
.persona-section {
    padding: var(--space-xl) 0;
}

.persona-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.persona-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan-glow);
    flex-shrink: 0;
}

.persona-info {
    flex: 1;
}

.persona-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.05em;
}

.persona-role {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.persona-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .persona-card {
        flex-direction: column;
        text-align: center;
    }

    .persona-avatar {
        width: 120px;
        height: 120px;
    }
}

.footer {
    padding: var(--space-xl) 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== PLANET PAGE STYLES ==================== */
.planet-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-3xl);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.planet-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--space-black) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.planet-hero-content {
    position: relative;
    z-index: 10;
}

.back-link {
    position: fixed;
    top: 100px;
    left: max(var(--space-md), calc(50% - 700px + var(--space-md)));
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
    z-index: 100;
}

.back-link:hover {
    background: var(--neon-cyan);
    color: var(--space-black);
    border-color: var(--neon-cyan);
    transform: translateX(-5px);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.planet-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 60px var(--neon-cyan-glow);
}

.planet-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--digital-lavender);
    margin-top: var(--space-sm);
}

/* ==================== STORY SLIDESHOW ==================== */
.story-section {
    padding: var(--space-3xl) 0;
}

.story-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.story-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.story-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.story-slide.active {
    display: block;
}

.story-slide img {
    width: 100%;
    height: auto;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.slide-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.slide-btn:hover {
    background: var(--neon-cyan);
    color: var(--space-black);
    border-color: var(--neon-cyan);
}

.slide-counter {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.slide-dots {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    justify-content: center;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-border);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slide-dot.active,
.slide-dot:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--neon-cyan-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--neon-cyan-glow), 0 0 60px var(--neon-cyan-glow);
    }
}

/* Glitch text effect */
.glitch-text {
    position: relative;
}

.glitch-text:hover {
    animation: glitch 0.3s infinite;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto;
    }

    .nav-links {
        gap: var(--space-md);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-3xl: 3rem;
    }

    .header-content {
        flex-direction: column;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .header-content>a {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-content nav {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }

    .planets-grid {
        grid-template-columns: 1fr;
    }

    .planet-card {
        aspect-ratio: 16/9;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .slideshow-controls {
        gap: var(--space-md);
    }

    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Planet Hero - Mobile adjustments */
    .planet-hero {
        min-height: 50vh;
        background-attachment: scroll;
        background-position: center top;
    }

    /* Back Link - Mobile adjustments */
    .back-link {
        top: 70px;
        left: var(--space-md);
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.7rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .title-display {
        letter-spacing: 0.05em;
    }

    .hero-tagline {
        letter-spacing: 0.15em;
    }

    .planet-title {
        letter-spacing: 0.08em;
    }
}