@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --bg-base: #f1f5f9; 
    --text-main: #0f172a; 
    --text-muted: #475569; 
    --accent: #1e3a8a; 
    --accent-gradient: linear-gradient(90deg, #1e3a8a, #2563eb); 
    --glass-bg: #ffffff; 
    --glass-border: rgba(0, 0, 0, 0.1); 
}

html {
    /* Enables the smooth gliding effect */
    scroll-behavior: smooth;
    /* Prevents the fixed header from covering section titles */
    scroll-padding-top: 100px; 
}

html, body {
    min-height: 100vh; 
    background: var(--bg-base);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--text-main); }
p, li, span { color: var(--text-muted); }

/* --- HEADER & BRANDING --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.container { width: 90%; max-width: 1100px; margin: auto; }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.nav-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.nav-logo-img { height: 65px; width: auto; mix-blend-mode: multiply; transition: transform 0.3s; }

.logo-text {
    font-size: 26px; font-weight: 800; letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

nav { display: flex; flex-wrap: wrap; }
nav a {
    margin-left: 25px; text-decoration: none; color: var(--text-muted);
    font-weight: 600; font-size: 13px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
nav a:hover, nav a.active { color: var(--accent); }

/* --- MAIN CONTENT & PANELS --- */
main { flex: 1; padding-top: 80px; display: flex; flex-direction: column; }

/* SPACING FOR SECTIONS */
.content-section { padding: 60px 0; border-top: 1px solid var(--glass-border); }

.hero-section {
    padding: 120px 20px 100px 20px; text-align: center;
    /* Darkened the gradient overlay significantly using your brand's deep blue */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(30, 58, 138, 0.85)),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072') center/cover no-repeat;
    border-bottom: 1px solid var(--glass-border); margin-bottom: 40px;
}

/* Targeting only the hero text so it doesn't affect your success page */
.hero-section {
    padding: 100px 20px 80px 20px; text-align: center;
    /* Dialed back the opacity to 0.65 so the image clearly shows through */
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(30, 58, 138, 0.65)),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072') center/cover no-repeat;
    border-bottom: 1px solid var(--glass-border); margin-bottom: 40px;
}

/* 1. Global Defaults (Keeps your Thanks page dark and readable) */
.page-title { 
    font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; 
    color: var(--text-main); text-shadow: none; 
}

.page-subtitle { 
    font-size: 18px; max-width: 700px; margin: 0 auto 30px auto; 
    color: var(--text-muted); font-weight: 500; text-shadow: none; 
}

/* 2. Hero Section Overrides (Makes ONLY the hero text white) */
.hero-section .page-title { 
    color: #ffffff; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
}

.hero-section .page-subtitle { 
    color: #e2e8f0; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); 
}

/* Force the hero button to be white so it stands out */
.hero-section .btn {
    background: #ffffff;
    color: var(--accent);
}
.hero-section .btn:hover {
    background: #f1f5f9;
}

/* Force the hero button to be white so it stands out against the dark background */
.hero-section .btn {
    background: #ffffff;
    color: var(--accent);
}
.hero-section .btn:hover {
    background: #f1f5f9;
}

.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 10px; color: var(--accent); }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 40px auto; font-size: 16px; }

.glass-panel {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-top: 4px solid var(--accent); border-radius: 12px;
    padding: 40px; margin-bottom: 40px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.glass-panel h2, .glass-panel h3 { margin-bottom: 15px; }
.glass-panel i { color: var(--accent); font-size: 28px; margin-bottom: 15px; }

/* --- BUTTONS & FORMS --- */
.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    background: var(--accent); color: white; text-decoration: none;
    font-weight: 600; transition: 0.3s; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(30, 58, 138, 0.4); background: #152c69; color: white;}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

input, textarea {
    width: 100%; padding: 16px; background: #f8fafc;
    border: 1px solid #cbd5e1; border-radius: 8px; color: var(--text-main); 
    margin-bottom: 20px; outline: none; font-family: inherit; transition: all 0.3s;
    resize: vertical;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, textarea:focus { border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1); }

/* --- FOOTER --- */
footer {
    height: 80px; display: flex; align-items: center; justify-content: center;
    border-top: 1px solid var(--glass-border); font-size: 14px; background: var(--bg-base); text-align: center; padding: 0 20px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) { 
    /* Header adjustments */
    header { height: auto; padding: 15px 0; }
    .navbar { flex-direction: column; gap: 15px; justify-content: center; }
    nav { justify-content: center; width: 100%; gap: 10px; }
    nav a { margin-left: 0; margin: 5px 10px; }
    main { padding-top: 130px; }
    html { scroll-padding-top: 150px; } 
    
    /* TIGHTENING THE GAPS */
    .hero-section { padding: 40px 20px 30px 20px; margin-bottom: 25px; } 
    .content-section { padding: 40px 0; } /* Pulls the main sections closer */
    .section-subtitle { margin-bottom: 25px; } 
    
    .glass-panel { padding: 25px; margin-bottom: 20px; } /* Pulls panels closer vertically */
    .grid { gap: 15px; } /* Pulls grid items closer together */
}