/* --- BCRP UNIFIED MASTER THEME 2026 --- */
:root {
    --main-blue: #007bff;
    --main-blue-glow: rgba(0, 123, 255, 0.6);
    --dark-bg: #010204;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(1, 2, 4, 0.5);
    --swift: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION (FLOATING PILL STYLE) --- */
.navbar {
    position: fixed;
    top: 25px; /* Floating offset */
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: 0.5s var(--swift);
}

/* Container for the pill look */
.navbar .nav-container, 
.navbar { /* Handles both structure types in your HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* This creates the actual glass pill */
#navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 35px;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
}

.navbar.scrolled {
    background: rgba(1, 2, 4, 0.9);
    border-color: var(--main-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -1px; margin-right: 20px; }
.logo span { color: var(--main-blue); text-shadow: 0 0 15px var(--main-blue-glow); }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--main-blue); }

/* --- HERO & HEADERS --- */
.hero, .page-header {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 20px 60px;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
}

.hero h1, .page-header h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.95;
    text-transform: uppercase;
}

.blue-glow {
    color: var(--main-blue);
    text-shadow: 0 0 30px var(--main-blue-glow);
}

.subtitle {
    color: rgba(255,255,255,0.5);
    margin: 25px 0 45px;
    max-width: 650px;
    font-size: 1.1rem;
}

/* --- LOGO ANIMATION --- */
.hero-logo-wrapper { margin-bottom: 30px; perspective: 1000px; }
.pulse-logo {
    width: 200px;
    filter: drop-shadow(0 0 30px var(--main-blue-glow));
    animation: logoBreathing 4s ease-in-out infinite;
    transition: transform 0.6s var(--swift);
}

@keyframes logoBreathing {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.03); }
}

/* --- BUTTONS --- */
.hero-btns { display: flex; gap: 20px; }
.btn-primary, .btn-glow-nav {
    background: var(--main-blue);
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--main-blue-glow);
    transition: 0.3s var(--swift);
    display: inline-block;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: 0.3s var(--swift);
}

.btn-primary:hover, .btn-secondary:hover { transform: translateY(-5px); }

/* --- LEGAL CONTENT (TERMS/PRIVACY) --- */
.privacy-wrapper {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.legal-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    color: rgba(255, 255, 255, 0.8);
}

.legal-box h2 { color: #fff; margin: 40px 0 15px; font-size: 1.5rem; }
.legal-list li { margin-bottom: 10px; padding-left: 20px; position: relative; list-style: none; }
.legal-list li::before { content: "•"; color: var(--main-blue); position: absolute; left: 0; font-weight: bold; }

.liability-alert {
    background: rgba(255, 68, 68, 0.05);
    border-left: 4px solid #ff4444;
    padding: 25px;
    margin: 20px 0;
    color: #fff;
    font-weight: 700;
    border-radius: 0 12px 12px 0;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.reveal, .animate-pop, .animate-slide-up, .animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s var(--swift) forwards;
}

.delay-1, .animate-slide-up { animation-delay: 0.2s; }
.delay-2, .animate-fade-in { animation-delay: 0.4s; }

/* --- TERMS OF SERVICE SPECIFIC LAYOUT --- */

/* Centers the Header for Legal Pages */
.page-header {
    padding: 180px 20px 60px; /* Large top padding to clear the floating nav */
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -3px;
    text-transform: uppercase;
}

/* The Glassmorphism Container for the Text */
.privacy-wrapper {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.legal-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 60px;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Typography inside the Legal Box */
.legal-box h2 {
    color: #fff;
    font-size: 1.6rem;
    margin: 45px 0 15px;
    font-weight: 700;
}

.legal-box p {
    margin-bottom: 20px;
}

/* Professional List Styling */
.legal-list {
    list-style: none;
    margin: 20px 0 30px 20px;
}

.legal-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.legal-list li::before {
    content: "•";
    color: var(--main-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
    text-shadow: 0 0 10px var(--main-blue-glow);
}

/* Red Alert for Liability Section */
.liability-alert {
    background: rgba(255, 68, 68, 0.05);
    border-left: 4px solid #ff4444;
    padding: 25px;
    margin: 25px 0;
    color: #fff;
    font-weight: 700;
    border-radius: 0 12px 12px 0;
}

/* Ensure animations trigger (using your existing fadeInUp) */
.animate-pop, .animate-slide-up, .animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s var(--swift) forwards;
}

.animate-slide-up { animation-delay: 0.2s; }
.animate-fade-in { animation-delay: 0.4s; }

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .legal-box {
        padding: 30px;
        border-radius: 20px;
    }
    .page-header {
        padding-top: 140px;
    }
}

/* --- FIXED HOME PAGE LAYOUT --- */

/* Centering the Hero & Logo */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* --- CENTERED FEATURES SECTION --- */
.home-features {
    padding: 80px 5%;
    display: flex;
    justify-content: center;
}

.section-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

/* The Professional Card Look */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center; /* Centers your emojis and text */
    transition: transform 0.3s var(--swift), border 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-blue);
    background: rgba(0, 123, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Fix for the 'Professional Staff' glow in features */
.feature-card h3.blue-glow {
    text-shadow: 0 0 15px var(--main-blue-glow);
}
/* --- ABOUT PAGE SPECIFIC STYLES --- */

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 20px 100px; /* Space for the floating pill nav */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Profile Circle */
.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.profile-circle {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 30px var(--main-blue-glow);
}

.profile-circle img {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 0 10px var(--main-blue));
}

.about-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: -2px;
}

/* Centered Grid & Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 50px;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    transition: 0.4s var(--swift);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-blue);
    background: rgba(255, 255, 255, 0.04);
}

.about-card h3 {
    color: var(--main-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.about-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--main-blue);
    font-weight: bold;
}

/* Message from Owner Box */
.personal-note {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.personal-note h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.personal-note p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* --- ANIMATIONS SYNC --- */
.animate-pop { animation: fadeInUp 0.8s var(--swift) forwards; }
.animate-slide-up { 
    opacity: 0;
    animation: fadeInUp 1s var(--swift) forwards;
    animation-delay: calc(var(--order) * 0.2s); 
}
.animate-fade-in { 
    opacity: 0;
    animation: fadeInUp 1.2s var(--swift) 0.6s forwards; 
}

/* --- BCRP 2026 MODERN THEME FIX --- */

:root {
    --main-blue: #007bff;
    --main-blue-glow: rgba(0, 123, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --swift: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. MAIN CONTENT CENTERING */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 180px 20px 100px; /* Clears the floating navbar */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 2. HEADER & LOGO CIRCLE */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.profile-circle {
    width: 110px;
    height: 110px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--main-blue-glow);
    backdrop-filter: blur(10px);
}

.profile-circle img {
    width: 60%;
    filter: drop-shadow(0 0 10px var(--main-blue));
}

.page-header h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.blue-glow {
    color: var(--main-blue);
    text-shadow: 0 0 25px var(--main-blue-glow);
}

/* 3. GRID & CARDS (GLASSMORPHISM) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 50px;
    transition: all 0.4s var(--swift);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.glass-card h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
}

/* 4. LIST STYLING */
.legal-list {
    list-style: none;
    padding: 0;
}

.legal-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: 0.3s;
}

.legal-list li::before {
    content: "•";
    color: var(--main-blue);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    text-shadow: 0 0 10px var(--main-blue-glow);
}

.legal-list li:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 5. FOOTER NOTE */
.personal-note {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), transparent);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(15px);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-pop, .animate-slide-up, .animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s var(--swift) forwards;
}

.animate-slide-up { animation-delay: 0.2s; }
.animate-fade-in { animation-delay: 0.4s; }

/* Server Directory Button - Glassmorphism Style */
.directory-section {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 80px;
}

.directory-btn {
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    color: #ffffff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    
    /* Micro-interactions & Depth */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.directory-btn:hover {
    /* Refined Glow & Lift */
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.6);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.directory-btn:active {
    transform: translateY(-2px);
}
