:root {
    --primary-black: #1a1a1a;
    --text-gray: #555555;
    --light-gray: #f8f9fa;
    --midnight-blue: #293475;
    --steel-blue: #457ABC;
    --lavender: #C9E7F9;
    --white: #FFFFFF;
    --border-light: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--primary-black);
    overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
    font-family: 'Playfair Display', serif;
}

/* ========================================
   NAVBAR
======================================== */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: all 0.4s ease;
    z-index: 9999;
}

#mainNav .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black) !important;
    letter-spacing: -0.5px;
}

#mainNav .nav-link {
    color: var(--primary-black) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 1.5rem;
    position: relative;
    padding: 0.5rem 0 !important;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--midnight-blue);
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: var(--primary-black);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   HORIZONTAL SECTIONS
======================================== */
.horizontal-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
}

.horizontal-track {
    display: flex;
    width: fit-content;
    height: 100%;
    will-change: transform;
}

.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 90px 2rem 2rem;
}

/* ========================================
   PANEL CONTENT STYLING
======================================== */
.panel-content {
    max-width: 900px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.panel h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.panel p.lead {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.panel-icon {
    font-size: 3rem;
    color: var(--midnight-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Decorative background elements */
.panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,52,117,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69,122,188,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ========================================
   PROGRESS INDICATOR
======================================== */
.progress-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-line {
    width: 200px;
    height: 2px;
    background: var(--border-light);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--midnight-blue);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--midnight-blue);
    transform: scale(1.3);
}

.section-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ========================================
   SECTION DIVIDERS
======================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ccc, transparent);
    margin: 0;
    border: none;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--primary-black);
    color: #fff;
    padding: 4rem 0 2rem;
}

.site-footer h5 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--steel-blue);
}

/* ========================================
   SCROLL HINT
======================================== */
.scroll-hint {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-hint span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .panel {
        padding: 80px 1.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .panel {
        padding: 85px 1.5rem 1.5rem;
        align-items: flex-start;
    }
    
    .panel h2 {
        font-size: 2rem;
    }
    
    #mainNav .nav-link {
        margin-left: 0;
        padding: 0.75rem 0 !important;
    }
    
    .progress-line {
        width: 150px;
    }
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* Additional button overrides */
.btn-outline-dark {
    border-color: var(--midnight-blue);
    color: var(--midnight-blue);
}
.btn-outline-dark:hover {
    background-color: var(--midnight-blue);
    border-color: var(--midnight-blue);
    color: white;
}
.btn-dark {
    background-color: var(--midnight-blue);
    border-color: var(--midnight-blue);
}
.btn-dark:hover {
    background-color: var(--steel-blue);
    border-color: var(--steel-blue);
}
.badge.bg-light.text-dark.border {
    border-color: var(--midnight-blue) !important;
    color: var(--midnight-blue) !important;
}
.text-warning {
    color: var(--midnight-blue) !important;
}