/* --- CSS CONSTANTS (VARIABLES) --- */
:root {
    /* Colors */
    --primary-color: #4891ff;        /* Lighter, vibrant blue */
    --primary-hover: #70aaff;
    --primary-glow: rgba(72, 145, 255, 0.5);
    
    --bg-dark: #121212;
    --bg-light: #f4f7fa;             /* Subtle light blue-gray for sections */
    --bg-white: #ffffff;
    
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #ffffff;
    --text-hero-sub: #f0f0f0;        /* Brighter subtitle for hero */
    
    --nav-bg: rgba(0, 0, 0, 0.85);
    
    /* Fonts */
    --font-titles: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* --- GLOBAL FIXES --- */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Fixes the AOS "wider than display" issue */
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
}

section {
    position: relative;
    overflow: hidden; /* Ensures animated elements don't cause scrollbars */
}

h1, h2, h3, h4, .navbar-brand {
    font-family: var(--font-titles);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PRELOADER --- */
#site-preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

/* --- NAVBAR --- */
.custom-nav {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    letter-spacing: -0.5px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.brand-assets {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 8px;
}

.navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1rem 1.2rem !important;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Active State & Hover */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Contact Button in Nav */
.nav-link.btn-primary {
    background-color: var(--primary-color) !important;
    border: none;
    border-radius: 50px;
    color: white !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-link.btn-primary.active {
    background-color: var(--text-light) !important;
    color: var(--primary-color) !important;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Deep black base */
    z-index: 1; /* Base layer */
}

/* Layer 1: The Image (Bottom) */
.hero-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2; 
}

/* Layer 2: The Video (Middle) */
#hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 3; /* Higher than placeholder */
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* Layer 3: The Overlay (Top of background) */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Darkened to make subtitle pop */
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 4; 
}

/* Layer 4: The Text Content (Very Top) */
.hero-content {
    position: relative;
    z-index: 5; 
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

/* Enhanced Hero Subtitle visibility */
.hero-content .lead {
    color: var(--text-hero-sub) !important;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BRIGHT SERVICES SECTION --- */
.services-section-bright {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.services-section-bright h2 {
    color: var(--bg-dark);
}

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

/* --- FOOTER (Distinct from Services) --- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 4px solid var(--primary-color);
}

/* --- ENHANCED FORM FIELDS --- */

.form-control, .form-select {
    /* Use a clearer, slightly thicker border */
    border: 2px solid #d1d8e0; 
    border-radius: 10px; /* Matching our "rounded" fancy theme */
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    background-color: var(--bg-white);
}

/* Hover state: slight darkening to show it's interactable */
.form-control:hover, .form-select:hover {
    border-color: #b1b9c1;
}

/* Focus state: The "Pop" when a user clicks to type */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-glow);
    background-color: #fff;
    outline: 0;
}

/* Style for labels to make them stand out above the inputs */
label.fw-bold {
    color: var(--text-main);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}
