/* ===================================
   NUEVA VISTA FOUNDATION
   Sacred Temple Global Styles
   =================================== */

/* CSS Variables - Sacred Design System */
:root {
    /* Sacred Color Palette */
    --volcanic-red: #C72C48;
    --deep-blue: #004D7A;
    --sacred-white: #f4f1ea;
    --obsidian-dark: #1a1a1a;
    --obsidian-medium: #2d1810;
    --glow-red: rgba(199, 44, 72, 0.6);
    --glow-blue: rgba(0, 77, 122, 0.4);
    
    /* Typography - OPTIMIZED WITH GEORGIA */
    --font-mystical: Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Animation Timings */
    --pulse-duration: 4s;
    --breathe-duration: 6s;
    --transition-smooth: 0.3s ease;
    --transition-sacred: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sacred Geometry */
    --foundation-x: 120;
    --foundation-y: 100;
    --capital-x: 280;
    --capital-y: 100;
    --ai-x: 200;
    --ai-y: 200;
    --center-x: 200;
    --center-y: 150;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at center, var(--obsidian-medium) 0%, var(--obsidian-dark) 70%);
    color: var(--sacred-white);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Volcanic Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(199, 44, 72, 0.05) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(0, 77, 122, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="volcanic" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%23C72C48" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23volcanic)"/></svg>');
    z-index: -1;
    pointer-events: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mystical);
    font-weight: normal;
    line-height: 1.3;
    color: var(--sacred-white);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    font-weight: bold;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.9;
}

a {
    color: var(--volcanic-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--sacred-white);
    text-shadow: 0 0 10px var(--glow-red);
}

/* ===================================
   SACRED COMPONENTS
   =================================== */

/* Sacred Button - Inter Bold for better conversion */
.sacred-button {
    background: linear-gradient(135deg, var(--volcanic-red) 0%, var(--deep-blue) 100%);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition-sacred);
    box-shadow: 0 8px 25px var(--glow-red);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.sacred-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.sacred-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--glow-red);
}

.sacred-button:hover::before {
    animation: shimmer 0.6s ease;
}

@keyframes shimmer {
    0% { 
        transform: translateX(-100%) translateY(-100%) rotate(45deg); 
        opacity: 0; 
    }
    50% { opacity: 1; }
    100% { 
        transform: translateX(100%) translateY(100%) rotate(45deg); 
        opacity: 0; 
    }
}

/* Pathway Card */
.pathway-card {
    background: rgba(244, 241, 234, 0.05);
    border: 2px solid rgba(199, 44, 72, 0.4);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 44, 72, 0.1), transparent);
    transition: left 0.5s ease;
}

.pathway-card:hover {
    background: rgba(199, 44, 72, 0.15);
    border-color: var(--volcanic-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--glow-red);
}

.pathway-card:hover::before {
    left: 100%;
}

/* Sacred Container */
.sacred-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Section Spacing */
.sacred-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ===================================
   SACRED ANIMATIONS
   =================================== */

/* Sacred Pulse */
@keyframes sacred-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.08); 
        opacity: 1; 
    }
}

.sacred-pulse {
    animation: sacred-pulse var(--pulse-duration) ease-in-out infinite;
}

/* Fault Line Glow */
@keyframes fault-glow {
    0%, 100% { 
        opacity: 0.2; 
        box-shadow: 0 0 10px var(--volcanic-red); 
    }
    50% { 
        opacity: 0.6; 
        box-shadow: 0 0 20px var(--volcanic-red); 
    }
}

.fault-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--volcanic-red), transparent);
    animation: fault-glow var(--breathe-duration) ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-sacred) ease-out;
}

/* Fog Reveal */
@keyframes fogReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.fog-reveal {
    animation: fogReveal var(--transition-sacred) ease-out;
}

/* ===================================
   NAVIGATION
   =================================== */
.sacred-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(199, 44, 72, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mystical);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sacred-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--volcanic-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--sacred-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(199, 44, 72, 0.2);
    color: var(--volcanic-red);
}

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

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--sacred-white);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }
    
    .sacred-container {
        padding: var(--spacing-sm);
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        transition: left var(--transition-sacred);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(199, 44, 72, 0.2);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .sacred-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-volcanic { color: var(--volcanic-red); }
.text-blue { color: var(--deep-blue); }
.text-sacred { color: var(--sacred-white); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-column { flex-direction: column; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Performance Optimization */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* ===================================
   GEORGIA TYPOGRAPHY ENHANCEMENTS
   =================================== */

/* Sacred Text - Georgia Italic for mystical content */
.sacred-text,
.mystical-quote,
blockquote {
    font-family: var(--font-mystical);
    font-style: italic;
    font-size: 1.25em;
    line-height: 2.0;
    letter-spacing: 0.03em;
    color: var(--sacred-white);
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    opacity: 0.95;
}

/* Personal Voice - Georgia Italic for authentic passages */
.personal-voice {
    font-family: var(--font-mystical);
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.9;
    color: var(--sacred-white);
    border-left: 3px solid var(--volcanic-red);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

/* Pull Quotes - Georgia Bold Italic */
.pull-quote {
    font-family: var(--font-mystical);
    font-style: italic;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.6;
    color: var(--volcanic-red);
    text-align: center;
    margin: 3rem auto;
    max-width: 700px;
}

/* Sacred emphasis */
.emphasis-sacred {
    font-family: var(--font-mystical);
    font-style: italic;
    color: var(--volcanic-red);
    font-weight: bold;
}
