/* ============================================
   KAOTIC THOUGHTS - IMMERSIVE WEBSITE STYLES
   Vibrant | Atmospheric | Afrocentric | Healing
   ============================================ */

/* ===== CSS VARIABLES - BRAND PALETTE ===== */
:root {
    /* Brand Colors from Logo */
    --purple-deep: #2E1A3D;
    --purple-royal: #4A2B5E;
    --magenta: #FF1493;
    --coral: #FF7F7F;
    --gold: #FFB347;
    --gold-bright: #FFD700;
    --green-soft: #7FB77E;
    --green-vibrant: #4CAF50;
    --black-rich: #0A0A0A;
    --lavender: #DDA0DD;
    
    /* Atmospheric Effects */
    --glow-magenta: 0 0 20px rgba(255, 20, 147, 0.5);
    --glow-gold: 0 0 30px rgba(255, 179, 71, 0.6);
    --glow-coral: 0 0 25px rgba(255, 127, 127, 0.4);
    
    /* Typography */
    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Inter', 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
    
    /* Effects */
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ===== GLOBAL RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: #FFFFFF;
    background: var(--black-rich);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: rgba(10, 10, 10, 0.98);
    color: #FFD700;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 10001;
    border-radius: 0 0 8px 0;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    transition: top 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #FFFFFF;
    outline-offset: 2px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.6);
}

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

*:focus {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: #FFFFFF;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
    line-height: 1.8;
}

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

a:hover, a:focus {
    color: var(--magenta);
    text-shadow: var(--glow-magenta);
}

/* ===== IMMERSIVE BACKGROUNDS ===== */
.page-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.atmosphere-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Animated glow orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--magenta), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold), transparent);
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--coral), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -30px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 30px); }
}

/* Afrocentric pattern overlay */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 179, 71, 0.03) 35px, rgba(255, 179, 71, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 20, 147, 0.02) 35px, rgba(255, 20, 147, 0.02) 70px);
    opacity: 0.5;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 179, 71, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

@media (max-width: 1100px) {
    .nav-container {
        min-height: 60px;
        padding: 0.5rem 1rem;
    }
}

.nav-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(var(--glow-gold));
    transition: var(--transition);
}

@media (max-width: 1100px) {
    .nav-logo img {
        height: 50px;
    }
}

.nav-logo img:hover {
    filter: drop-shadow(var(--glow-magenta));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 1.rem;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

@media (max-width: 1100px) {
    .nav-link {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.3), transparent);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link:focus::before {
    left: 100%;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255, 20, 147, 0.2);
    color: var(--gold);
    box-shadow: var(--glow-magenta);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--magenta), var(--coral));
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
    box-shadow: var(--glow-magenta);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--magenta), var(--gold));
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--magenta), var(--coral));
    color: white;
    box-shadow: var(--glow-magenta);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.8);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--black-rich);
    box-shadow: var(--glow-gold);
}

.btn-gold:hover,
.btn-gold:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--gold);
    color: var(--black-rich);
    box-shadow: var(--glow-gold);
}

/* Button glow effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== SOUNDWAVE ELEMENT ===== */
.soundwave {
    width: 100%;
    max-width: 600px;
    height: 100px;
    margin: var(--space-lg) auto;
}

.soundwave svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: none;
    stroke: url(#waveGradient);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.8;
    animation: waveFlow 3s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% { d: path("M0,50 Q25,20 50,50 T100,50 T150,50 T200,50"); }
    50% { d: path("M0,50 Q25,80 50,50 T100,50 T150,50 T200,50"); }
}

/* ===== GLASS PANEL EFFECT ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 179, 71, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

/* ===== CONTENT CONTAINERS ===== */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
}

.content-section {
    position: relative;
    padding: var(--space-xxl) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--magenta), var(--gold), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 30px rgba(255, 20, 147, 0.5);
    -webkit-text-stroke: 1.5px #FFD700;
    text-stroke: 1.5px #FFD700;
    paint-order: stroke fill;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--lavender);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    -webkit-text-stroke: 0.8px #FFD700;
    text-stroke: 0.8px #FFD700;
    paint-order: stroke fill;
}

/* ===== GRID LAYOUTS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.card {
    position: relative;
    background: rgba(46, 26, 61, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 179, 71, 0.1));
    opacity: 0;
    transition: var(--transition);
}

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

.card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 179, 71, 0.4);
}

.card-content {
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
    filter: drop-shadow(var(--glow-gold));
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--gold);
    -webkit-text-stroke: 1px #FFD700;
    text-stroke: 1px #FFD700;
    paint-order: stroke fill;
}

.card-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    -webkit-text-stroke: 0.5px rgba(255, 215, 0, 0.3);
    text-stroke: 0.5px rgba(255, 215, 0, 0.3);
    paint-order: stroke fill;
}

/* ===== HERO SECTIONS ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xxl) var(--space-md);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto var(--space-lg);
    filter: drop-shadow(0 0 30px rgba(255, 179, 71, 0.6));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 179, 71, 0.6)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(255, 20, 147, 0.8)); }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF, var(--lavender), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1.5px #FFD700;
    text-stroke: 1.5px #FFD700;
    paint-order: stroke fill;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--coral);
    font-weight: 400;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    -webkit-text-stroke: 1px #FFD700;
    text-stroke: 1px #FFD700;
    paint-order: stroke fill;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

/* ===== FOOTER ===== */
.main-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(46, 26, 61, 0.95), var(--black-rich));
    padding: var(--space-xxl) var(--space-md) var(--space-lg);
    border-top: 2px solid rgba(255, 179, 71, 0.3);
    margin-top: var(--space-xxl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 1.125rem;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--magenta);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1100px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-lg);
        transition: var(--transition);
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem;
        font-size: 1.125rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0 var(--space-sm);
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-magenta { color: var(--magenta); }
.text-coral { color: var(--coral); }

.glow-text-magenta {
    text-shadow: var(--glow-magenta);
}

.glow-text-gold {
    text-shadow: var(--glow-gold);
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

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