@import url('variables.css');
@import url('animations.css');

/* Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* scroll-behavior: smooth; -- Conflicts with GSAP precision */
}

body {
    background-color: var(--color-bg-deep);
    /* background-image: url('../img/texture-grain.png'); - Handled by JS background-scroll */
    /* background-repeat: repeat; */
    /* background-size: 2000px; */
    /* background-attachment: fixed; */
    /* Parallax-like feel for texture */
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--font-serif);
    color: var(--color-accent-gold);
    line-height: 1.2;
}

a {
    color: var(--color-accent-indigo);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-teal);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-padding {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-alt {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.section-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0) 20%,
            rgba(0, 0, 0, 0) 80%,
            rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.cinematic-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-xl) 0;
    /* Silky transition overlay */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Typography Utilities */
.lead {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    font-weight: 300;
}

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

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

.text-gold {
    color: var(--color-accent-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-deep);
}

.btn-primary:hover {
    background-color: #fab387;
    /* Slightly lighter gold */
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.btn-outline:hover {
    background: rgba(255, 158, 100, 0.1);
}

/* Decorative Elements */
.hr-gold {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    margin: var(--space-lg) 0;
}

/* Card Style */
.card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--color-bg-elevated);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Cinematic Layout --- */
.cinematic-layout,
.cinematic-layout body {
    overflow-x: hidden;
    background: #000;
    scroll-behavior: auto !important;
}

.cinematic-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-xl) 0;
}

/* Play Overlay */
#cinematic-play-overlay {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

#cinematic-play-btn {
    background: rgba(184, 158, 107, 0.2);
    /* Using gold-ish fallback for var */
    border: 2px solid #b89e6b;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#cinematic-play-btn:hover {
    background: rgba(184, 158, 107, 0.6);
    transform: scale(1.1);
}

#cinematic-play-overlay.playing #cinematic-play-btn {
    background: #b89e6b;
    box-shadow: 0 0 20px #b89e6b;
}

.cinematic-item {
    will-change: transform, opacity;
}

.principle-card {
    background: rgba(0, 0, 0, 0.6);
    /* Less transparent background */
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border-left: 2px solid #b89e6b;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.principle-card h4,
.principle-card p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}