/* Custom Font Declarations - Fixed */
@font-face {
    font-family: 'Magic Star';
    src: url('./fonts/Magic Star.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Midnight Constellations';
    src: url('./fonts/Midnight.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Starry Fayez';
    src: url('./fonts/Starry Fayez.otf') format('opentype');
    font-display: swap;
}

/* CSS Custom Properties for Colors */
:root {
    --cosmic-black: #0a0520;
    --starlight-purple: #7d5fff;
    --alchemical-gold: #f9c74f;
    --witch-pink: #ff80e0;
    --void-texture: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><rect width='100%' height='100%' fill='%23230520'/><circle cx='10%' cy='15%' r='1' fill='%23375fff'/></svg>");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, 
        #1a0b3d 0%,
        #2d1b4e 33%,
        #A3007A 66%,
        #9E9200 100%);
    min-height: 100vh;
    font-family: 'Midnight Constellations', 'Georgia', serif;
    color: #e8d5ff;
    position: relative;
    overflow-x: hidden;
}

/* Animated starfield background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, var(--starlight-purple), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, var(--alchemical-gold), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

/* Holographic cat background overlay */
body::after {
    content: '';
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('https://video-public.canva.com/VAEIkRrGZQc/v/9f069c24a3.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    filter: blur(1px) hue-rotate(20deg);
    animation: holographic-float 8s ease-in-out infinite;
}

@keyframes holographic-float {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% { 
        transform: translate(-45%, -55%) rotate(1deg) scale(1.05);
        opacity: 0.2;
    }
    50% { 
        transform: translate(-50%, -45%) rotate(0deg) scale(1.1);
        opacity: 0.25;
    }
    75% { 
        transform: translate(-55%, -50%) rotate(-1deg) scale(1.05);
        opacity: 0.2;
    }
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Main heading with Magic Star font */
h1 {
    font-family: 'Magic Star', 'Imperial Script', 'Neonderthaw', fantasy;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--alchemical-gold);
    text-shadow: 
        0 0 20px var(--alchemical-gold),
        0 0 40px var(--alchemical-gold),
        2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    animation: glow 3s ease-in-out infinite alternate;
    font-weight: normal;
    text-transform: uppercase;
}

@keyframes glow {
    from { 
        text-shadow: 
            0 0 20px var(--alchemical-gold),
            0 0 40px var(--alchemical-gold),
            2px 2px 4px rgba(0,0,0,0.8);
    }
    to { 
        text-shadow: 
            0 0 30px var(--alchemical-gold),
            0 0 60px var(--alchemical-gold),
            0 0 80px var(--witch-pink),
            2px 2px 4px rgba(0,0,0,0.8);
    }
}

/* Subtitle with Starry Fayez font */
.subtitle {
    font-family: 'Starry Fayez', 'Dancing Script', cursive;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    color: var(--witch-pink);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.4;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* Navigation or content sections */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mystical-card {
    background: rgba(125, 95, 255, 0.1);
    border: 2px solid rgba(125, 95, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Enhanced glowing borders for cards */
.mystical-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--starlight-purple), 
        var(--witch-pink), 
        var(--alchemical-gold),
        var(--starlight-purple));
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mystical-card:hover::before {
    opacity: 1;
}

.mystical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 95, 255, 0.4);
}

.card-title {
    font-family: 'Magic Star', 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--alchemical-gold);
    margin-bottom: 1rem;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 10px rgba(249, 199, 79, 0.5);
}

.card-content {
    font-family: 'Midnight Constellations', 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #e8d5ff;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(0, 0, 0, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mystical-card {
        padding: 1.5rem;
    }
}

/* Loading fallback styles */
.font-loading h1 {
    font-family: 'Imperial Script', 'Neonderthaw', fantasy;
}

.font-loading .subtitle {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
}

.font-loading .card-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Magic Star', 'Imperial Script', fantasy;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--alchemical-gold);
    text-shadow: 
        0 0 20px var(--alchemical-gold),
        0 0 40px var(--alchemical-gold),
        2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: glow 3s ease-in-out infinite alternate;
}

.page-subtitle {
    font-family: 'Starry Fayez', 'Dancing Script', cursive;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--witch-pink);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    letter-spacing: 1px;
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Magic Star', 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--starlight-purple);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--starlight-purple);
}

/* Project Status Indicators */
.project-status {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(125, 95, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--alchemical-gold);
    text-align: center;
    border: 1px solid rgba(125, 95, 255, 0.4);
}

/* Commission Status Card */
.commission-status {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Character Profile Styles */
.character-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.character-image {
    text-align: center;
}

.character-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(125, 95, 255, 0.3);
    filter: drop-shadow(0 0 20px rgba(125, 95, 255, 0.4));
}

.character-details h3 {
    font-family: 'Magic Star', serif;
    color: var(--alchemical-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.character-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Trait Lists */
.trait-list {
    list-style: none;
    padding: 0;
}

.trait-list li {
    padding: 0.3rem 0;
    color: #e8d5ff;
}

.trait-list li strong {
    color: var(--witch-pink);
}

/* About Studio Specific */
.studio-mission {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsive Design for Character Profile */
@media (max-width: 768px) {
    .character-profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    .content-section {
        margin-bottom: 3rem;
    }
}
/* NAVIGATION STYLES - ADD THIS TO YOUR style.css */

.mystical-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(26, 11, 61, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(125, 95, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(125, 95, 255, 0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: #e8d5ff;
    text-decoration: none;
    font-family: 'Starry Fayez', 'Dancing Script', cursive;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--alchemical-gold);
    background: rgba(249, 199, 79, 0.1);
    text-shadow: 0 0 10px var(--alchemical-gold);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--alchemical-gold);
    background: rgba(249, 199, 79, 0.15);
    text-shadow: 0 0 15px var(--alchemical-gold);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mystical-nav {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 8px 15px;
    }
    
    .nav-list {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

/* Adjust main container to account for fixed nav */
.container {
    padding-top: 80px;
}