/* Core Variables */
:root {
    --bg-color: #000000; /* Pitch Black */
    --secondary-bg: #111111; /* Very dark grey spacing */
    --text-color: #ffffff; /* Pure White */
    --accent-gold: #ffffff; /* White borders for crisp monochrome */
    --stone-grey: #a0a0a0; /* Mid-grey for subtext visibility */
    --card-bg: #0a0a0a; /* Elevated black */
    --border-color: rgba(255, 255, 255, 0.2); /* Transparent white */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ================================
   GATEWAY (index.html)
   ================================ */
.gateway-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-color) 100%);
}

.gateway-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    opacity: 0.1;
}

.bg-pillar {
    width: 10%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--stone-grey), transparent);
    transform: scaleY(0);
    transform-origin: bottom;
    animation: pillarRise 2s ease-out forwards;
}

.bg-pillar:nth-child(2) { animation-delay: 0.2s; }
.bg-pillar:nth-child(3) { animation-delay: 0.4s; }
.bg-pillar:nth-child(4) { animation-delay: 0.6s; }

@keyframes pillarRise {
    to { transform: scaleY(1); }
}

.gateway-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 500px;
    padding: 4rem;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 141, 145, 0.2);
    border-top: 3px solid var(--accent-gold);
}

.gateway-seal {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    background: url('../images/seal_emblem.png') no-repeat center center / contain;
    opacity: 0.8;
    transition: var(--transition-slow);
}

.gateway-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.gateway-subtitle {
    font-size: 0.9rem;
    color: var(--stone-grey);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.passcode-input-group {
    position: relative;
    margin-bottom: 2rem;
}

#gateway-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--stone-grey);
    padding: 10px 0;
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    outline: none;
    transition: var(--transition-smooth);
}

#gateway-input:focus {
    border-bottom-color: var(--accent-gold);
}

.gateway-btn {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 12px 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.gateway-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
}

.error-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.unlock-animation .gateway-seal {
    transform: rotate(360deg) scale(1.2);
    opacity: 1;
}

.unlock-animation .gateway-wrapper {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Base generic classes for inner pages setup */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand::before {
    content: '';
    display: block;
    width: 3px;
    height: 30px;
    background: var(--accent-gold);
}

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

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--stone-grey);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--text-color);
}

/* Footer (Mandatory Requirements) */
.main-footer {
    background: #0a0a0a;
    padding: 4rem 5% 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(138, 141, 145, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.footer-brand p {
    color: var(--stone-grey);
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-contact h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-contact p {
    color: var(--stone-grey);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(138, 141, 145, 0.1);
    font-size: 0.85rem;
    color: var(--stone-grey);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: var(--accent-gold);
}

/* ================================
   CURVED UI OVERRIDES & FIXES
   ================================ */
button, .gateway-btn, .role-card, .practice-card, .timeline-content, .bio-image, input, .gateway-content, .error-shake, form {
    border-radius: 16px !important;
}

body .nav-brand {
    color: var(--text-color) !important;
}
.hero-title {
    color: var(--text-color) !important;
}
.hero-subtitle {
    color: var(--text-color) !important;
}
.section-header h2 {
    color: var(--text-color) !important;
}
.role-title {
    color: var(--text-color) !important;
}
.gateway-wrapper {
    background: radial-gradient(circle at center, #333333 0%, var(--bg-color) 100%) !important;
}
.gateway-content {
    background: rgba(0, 0, 0, 0.85) !important;
    border-top: 3px solid var(--text-color) !important;
}
#gateway-input {
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--text-color) !important;
    background: transparent !important;
}
.main-nav {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.footer-brand h3, .footer-contact h4 {
    color: var(--text-color) !important;
}
.main-footer {
    background: var(--secondary-bg) !important;
    border-top: 1px solid var(--border-color) !important;
}
.nav-links a.active {
    color: var(--text-color) !important;
}
.nav-links a:hover {
    color: var(--text-color) !important;
}