/* ============================================
   RAUDRA COSMOS - Main Stylesheet
   ============================================ */

/* ============================================
   1. CSS VARIABLES & ROOT CONFIGURATION
   ============================================ */

:root {
    /* Color Palette */
    --deep-black: #050505;
    --rich-black: #0a0a0f;
    --void-black: #000000;

    --cosmic-purple: #6B5B95;
    --cosmic-purple-light: #8B7BB5;
    --cosmic-purple-dark: #4A3B6B;
    --cosmic-violet: #7B6B9E;

    --fierce-orange: #FF4E50;
    --fierce-orange-light: #FF6B6B;
    --fierce-orange-dark: #E63E40;
    --golden-amber: #F9D423;

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #6B6B6B;

    /* Gradients */
    --gradient-fire: linear-gradient(135deg, var(--fierce-orange) 0%, var(--golden-amber) 100%);
    --gradient-cosmic: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--cosmic-purple-dark) 100%);
    --gradient-vertical: linear-gradient(180deg, var(--deep-black) 0%, var(--rich-black) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.8) 100%);

    /* Element Gradients */
    --element-fire: linear-gradient(135deg, #FF4E50 0%, #FF8C42 100%);
    --element-lightning: linear-gradient(135deg, #FFD700 0%, #FFF8DC 50%, #87CEEB 100%);
    --element-cosmic: linear-gradient(135deg, #6B5B95 0%, #4A90D9 50%, #9B59B6 100%);
    --element-water: linear-gradient(135deg, #00CED1 0%, #4169E1 100%);
    --element-wind: linear-gradient(135deg, #98D8C8 0%, #F7DC6F 100%);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;

    /* Spacing */
    --sidebar-width: 80px;
    --sidebar-offset: 40px;
    --section-padding: 120px 0;
    --container-max-width: 1280px;
    --container-padding: 0 24px;

    /* Effects */
    --glow-purple-sm: 0 0 10px rgba(107, 91, 149, 0.4);
    --glow-purple-md: 0 0 20px rgba(107, 91, 149, 0.6);
    --glow-purple-lg: 0 0 40px rgba(107, 91, 149, 0.8);
    --glow-orange-sm: 0 0 10px rgba(255, 78, 80, 0.4);
    --glow-orange-md: 0 0 20px rgba(255, 78, 80, 0.6);
    --glow-orange-lg: 0 0 40px rgba(255, 78, 80, 0.8);
    --glow-text: 0 0 30px rgba(107, 91, 149, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-starfield: 0;
    --z-nebula: 1;
    --z-content: 10;
    --z-sidebar: 100;
    --z-cursor: 1000;
    --z-preloader: 9999;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root {
        /* Already optimized for dark mode */
    }
}

/* ============================================
   2. CSS RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--deep-black);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--cosmic-purple);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cosmic-purple-light);
}

/* Selection */
::selection {
    background: var(--fierce-orange);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--fierce-orange);
    color: var(--text-primary);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--fierce-orange);
    outline-offset: 4px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   3. PRELOADER STYLES
   ============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: 4px;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-bar {
    width: 280px;
    height: 3px;
    background: rgba(107, 91, 149, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 20px;
}

.preloader-progress {
    height: 100%;
    background: var(--gradient-fire);
    border-radius: var(--radius-full);
    animation: preloaderProgress 2s ease-in-out forwards;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

@keyframes preloaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   4. STAR FIELD CANVAS
   ============================================ */

.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-starfield);
    pointer-events: none;
}

/* ============================================
   5. NEBULA OVERLAY
   ============================================ */

.nebula-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-nebula);
    pointer-events: none;
    overflow: hidden;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: nebulaFloat 30s ease-in-out infinite;
}

.nebula-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cosmic-purple) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--fierce-orange) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

.nebula-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cosmic-violet) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -20s;
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
}

/* ============================================
   6. CUSTOM CURSOR
   ============================================ */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor-inner,
.cursor-outer {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background: var(--fierce-orange);
}

.cursor-outer {
    width: 40px;
    height: 40px;
    border: 1px solid var(--fierce-orange);
    opacity: 0.5;
}

body.hovering .cursor-outer {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    background: rgba(255, 78, 80, 0.1);
}

/* ============================================
   7. SOCIAL SIDEBAR (Desktop)
   ============================================ */

.social-sidebar {
    position: fixed;
    left: var(--sidebar-offset);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: var(--z-sidebar);
}

.social-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(107, 91, 149, 0.1);
    border: 1px solid rgba(107, 91, 149, 0.3);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    transition: var(--transition-base);
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-fire);
    opacity: 0;
    transition: var(--transition-base);
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.social-icon:hover {
    transform: scale(1.15);
    border-color: var(--fierce-orange);
    color: var(--text-primary);
}

.social-icon:hover::before {
    opacity: 0.2;
}

.social-icon:hover i {
    color: var(--fierce-orange);
    filter: drop-shadow(0 0 10px var(--fierce-orange));
}

/* Tooltip */
.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    padding: 8px 14px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--cosmic-purple);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ============================================
   8. MOBILE SOCIAL BAR
   ============================================ */

.mobile-social-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(107, 91, 149, 0.3);
    z-index: var(--z-sidebar);
    justify-content: space-around;
    align-items: center;
}

.mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    transition: var(--transition-base);
}

.mobile-social-icon:hover {
    color: var(--fierce-orange);
    transform: scale(1.1);
}

.mobile-social-icon:active {
    transform: scale(0.95);
}

/* ============================================
   9. MAIN CONTENT CONTAINER
   ============================================ */

.main-content {
    position: relative;
    z-index: var(--z-content);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ============================================
   10. HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(107, 91, 149, 0.15);
    border: 1px solid rgba(107, 91, 149, 0.4);
    border-radius: var(--radius-full);
    margin-bottom: 30px;
    animation: fadeUp 1s ease 0.2s both;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--fierce-orange);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

.hero-badge span:not(.badge-pulse) {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--fierce-orange);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
        box-shadow: 0 0 20px var(--fierce-orange);
    }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 8px;
    text-transform: uppercase;
}

.title-line:first-child {
    animation: fadeUp 1s ease 0.3s both;
}

.title-cosmos {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 78, 80, 0.4));
    animation: fadeUp 1s ease 0.4s both, titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 78, 80, 0.4)); }
    50% { filter: drop-shadow(0 0 50px rgba(255, 78, 80, 0.6)); }
}

/* Hero Subtitle */
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 50px;
    animation: fadeUp 1s ease 0.5s both;
}

.subtitle-text {
    display: block;
    color: var(--text-secondary);
}

.subtitle-highlight {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease 0.6s both;
}

/* Primary CTA */
.cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-fire);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--deep-black);
    overflow: hidden;
    transition: var(--transition-base);
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--golden-amber) 0%, var(--fierce-orange) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.cta-primary .cta-icon {
    font-size: 1.2em;
}

.cta-primary .cta-text {
    position: relative;
    z-index: 1;
}

.cta-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-fire);
    border-radius: var(--radius-full);
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-orange-lg);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary:hover .cta-glow {
    opacity: 0.6;
}

.cta-primary:active {
    transform: translateY(-1px) scale(1);
}

/* Secondary CTA */
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: transparent;
    border: 1px solid rgba(107, 91, 149, 0.5);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.cta-secondary:hover {
    border-color: var(--cosmic-purple);
    background: rgba(107, 91, 149, 0.1);
    color: var(--cosmic-purple-light);
}

.cta-secondary i {
    transition: var(--transition-base);
}

.cta-secondary:hover i {
    transform: translateY(3px);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeUp 1s ease 0.8s both;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--cosmic-purple) 0%, transparent 100%);
}

.scroll-indicator {
    width: 6px;
    height: 6px;
    background: var(--cosmic-purple);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.3; }
}

/* Hero Particles Container */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ============================================
   11. SECTION HEADER COMPONENT
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--fierce-orange);
    letter-spacing: 4px;
    margin-bottom: 15px;
    position: relative;
}

.section-number::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 15px;
    height: 1px;
    background: var(--cosmic-purple);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: var(--gradient-cosmic);
}

.divider-dot {
    width: 6px;
    height: 6px;
    background: var(--fierce-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--fierce-orange);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ============================================
   12. ABOUT SECTION
   ============================================ */

.about {
    padding: var(--section-padding);
    position: relative;
}

.section-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cosmic-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(107, 91, 149, 0.2);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 5%;
    animation: circleRotate 60s linear infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 5%;
    animation: circleRotate 45s linear infinite reverse;
}

@keyframes circleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

/* About Visual */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-icon-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.about-icon-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-cosmic);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: iconBgPulse 4s ease-in-out infinite;
}

@keyframes iconBgPulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.about-icon {
    position: absolute;
    inset: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 91, 149, 0.1);
    border: 1px solid rgba(107, 91, 149, 0.3);
    border-radius: 50%;
    color: var(--cosmic-purple);
    animation: iconRotate 30s linear infinite;
}

.about-icon svg {
    width: 100px;
    height: 100px;
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-rings {
    position: absolute;
    inset: 0;
}

.icon-rings .ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(107, 91, 149, 0.3);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.icon-rings .ring:nth-child(2) {
    inset: 15px;
    animation-delay: 0.5s;
}

.icon-rings .ring:nth-child(3) {
    inset: 30px;
    animation-delay: 1s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* About Text */
.about-text {
    color: var(--text-secondary);
}

.about-intro {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight-gold {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.about-description {
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 91, 149, 0.15);
    border: 1px solid rgba(107, 91, 149, 0.3);
    border-radius: var(--radius-md);
    color: var(--cosmic-purple);
    font-size: var(--text-sm);
}

.highlight-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   13. DEVLOGS SECTION
   ============================================ */

.devlogs {
    padding: var(--section-padding);
}

.devlog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Devlog Card */
.devlog-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(107, 91, 149, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.devlog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-cosmic);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-base);
}

.devlog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-purple-md);
}

.devlog-card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.art-1::before {
    background: var(--element-fire);
}

.art-2::before {
    background: var(--element-cosmic);
}

.art-3::before {
    background: var(--element-water);
}

.placeholder-icon {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: var(--text-primary);
    opacity: 0.5;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-base);
}

.devlog-card:hover .card-overlay {
    opacity: 1;
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(107, 91, 149, 0.5);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--fierce-orange);
}

.card-content {
    padding: 24px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-date {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card-read-time {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.devlog-card:hover .card-title {
    color: var(--cosmic-purple-light);
}

.card-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--fierce-orange);
    transition: var(--transition-base);
}

.card-link:hover {
    gap: 15px;
    color: var(--fierce-orange-light);
}

/* ============================================
   14. PANTHEON SECTION (Character Slider)
   ============================================ */

.pantheon {
    padding: var(--section-padding);
}

.pantheon-slider {
    position: relative;
    margin: 40px 0;
}

.pantheon-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 40px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pantheon-track::-webkit-scrollbar {
    display: none;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(107, 91, 149, 0.4);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-lg);
    transition: var(--transition-base);
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(107, 91, 149, 0.3);
    border-color: var(--cosmic-purple);
    color: var(--fierce-orange);
}

.nav-prev {
    left: -25px;
}

.nav-next {
    right: -25px;
}

/* Character Card */
.character-card {
    flex: 0 0 320px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    scroll-snap-align: center;
    transition: var(--transition-smooth);
}

.character-card:hover {
    transform: scale(1.02);
}

.character-bg {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

.character-fire { background: var(--element-fire); }
.character-lightning { background: var(--element-lightning); }
.character-cosmic { background: var(--element-cosmic); }
.character-water { background: var(--element-water); }
.character-wind { background: var(--element-wind); }

.character-image {
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-silhouette {
    font-size: 8rem;
    color: rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 30px currentColor);
}

.character-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 24px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.95) 50%);
}

.character-element {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.character-name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.character-class {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: var(--radius-full);
    animation: statFill 1.5s ease-out forwards;
}

.stat-atk { background: var(--fierce-orange); }
.stat-def { background: var(--cosmic-purple); }

@keyframes statFill {
    from { width: 0; }
}

.character-reveal {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* Slider Indicators */
.pantheon-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 40px;
    height: 3px;
    background: rgba(107, 91, 149, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.indicator.active,
.indicator:hover {
    background: var(--fierce-orange);
}

/* ============================================
   15. NEWSLETTER SECTION
   ============================================ */

.newsletter {
    padding: var(--section-padding);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(107, 91, 149, 0.2);
    border-radius: var(--radius-xl);
    padding: 60px;
}

.newsletter-visual {
    display: flex;
    justify-content: center;
}

.newsletter-icon {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cosmic);
    border-radius: var(--radius-full);
    font-size: 4rem;
    color: var(--text-primary);
    box-shadow: var(--glow-purple-lg);
    animation: newsletterFloat 4s ease-in-out infinite;
}

@keyframes newsletterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.newsletter-form {
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    gap: 15px;
}

.form-input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(107, 91, 149, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    transition: var(--transition-base);
}

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

.form-input:focus {
    outline: none;
    border-color: var(--cosmic-purple);
    box-shadow: var(--glow-purple-sm);
}

.form-submit {
    padding: 16px 32px;
    background: var(--gradient-fire);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--deep-black);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-base);
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-orange-md);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

.newsletter-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   16. FOOTER
   ============================================ */

.footer {
    position: relative;
    padding: 80px 0 30px;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.footer-line {
    height: 1px;
    background: var(--gradient-cosmic);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 250px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.footer-nav a:hover {
    color: var(--fierce-orange);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(107, 91, 149, 0.2);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-made {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-made .heart {
    color: var(--fierce-orange);
}

/* ============================================
   17. ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   18. RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 1023px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 30px;
    }

    .social-sidebar {
        left: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .devlog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        order: -1;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .newsletter-visual {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   19. RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 767px) {
    :root {
        --sidebar-offset: 0;
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }

    /* Hide desktop sidebar, show mobile bar */
    .social-sidebar {
        display: none;
    }

    .mobile-social-bar {
        display: flex;
    }

    /* Hide custom cursor on touch devices */
    .custom-cursor {
        display: none;
    }

    /* Typography adjustments */
    .hero-title .title-line {
        letter-spacing: 4px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Devlog grid */
    .devlog-grid {
        grid-template-columns: 1fr;
    }

    /* Slider navigation */
    .nav-prev {
        left: 0;
    }

    .nav-next {
        right: 0;
    }

    /* Newsletter form */
    .form-group {
        flex-direction: column;
    }

    .form-submit {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Hero scroll indicator */
    .hero-scroll {
        bottom: 80px;
    }

    /* Section spacing adjustments */
    .pantheon-slider {
        margin: 30px 0;
    }

    .character-card {
        flex: 0 0 280px;
    }
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }

.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 40px; }

.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 40px; }

.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 40px; }

/* ============================================
   21. PRINT STYLES
   ============================================ */

@media print {
    .starfield,
    .nebula-overlay,
    .social-sidebar,
    .mobile-social-bar,
    .custom-cursor,
    .hero-scroll,
    .slider-nav,
    .newsletter-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}

/* ============================================
   22. REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   23. HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --text-secondary: #E0E0E0;
        --text-muted: #A0A0A0;
    }

    .social-icon {
        border-width: 2px;
    }

    .devlog-card,
    .character-card {
        border-width: 2px;
    }
}
