/* ========================================
   MSP HITECT - Main Stylesheet
   ======================================== */

/* CSS Custom Properties */
:root {
    --navy: #003366;
    --electric: #007BFF;
    --gold: #C5A059;
    --gold-light: #FDF9F0;
}

/* ========================================
   Base
   ======================================== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========================================
   Background
   ======================================== */
.mesh-bg {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 123, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(197, 160, 89, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

/* ========================================
   Navigation
   ======================================== */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
}

/* ========================================
   Layout
   ======================================== */
.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Typography
   ======================================== */
.text-gold-gradient {
    background: linear-gradient(135deg, #C5A059 0%, #E8D2A6 50%, #C5A059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   Cards
   ======================================== */
.prestige-card {
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.prestige-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(197, 160, 89, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.prestige-card:hover::before {
    opacity: 1;
}

.prestige-card:hover {
    border-color: var(--gold);
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(197, 160, 89, 0.12);
}

/* ========================================
   Buttons
   ======================================== */

/* Gold CTA — used site-wide for primary actions */
.btn-gold {
    background: linear-gradient(135deg, #C5A059 0%, #E8D2A6 50%, #C5A059 100%);
    background-size: 200% auto;
    color: #001A33;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
    transform: scale(1.03);
    background-position: right center;
    box-shadow: 0 12px 32px rgba(197, 160, 89, 0.5);
}

/* Navy button — kept for secondary/alternate use if needed */
.btn-navy {
    background: var(--navy);
    color: #ffffff;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.25);
    background: #002244;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Orbit Animation
   ======================================== */
@keyframes orbit {
    from { transform: rotate(0deg) translateX(clamp(80px, 15vw, 160px)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(clamp(80px, 15vw, 160px)) rotate(-360deg); }
}

.orbit-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbiting-ball {
    position: absolute;
    width: clamp(8px, 2vw, 12px);
    height: clamp(8px, 2vw, 12px);
    background: linear-gradient(135deg, #C5A059, #FDF9F0);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    animation: orbit 8s linear infinite;
}

/* ========================================
   Interactive Solutions Section
   ======================================== */
.solution-nav-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.solution-nav-item.active-solution {
    background: white;
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.05);
    transform: translateX(8px);
}

.solution-nav-item.active-solution .icon-box {
    background: var(--navy);
    color: white;
}

/* ========================================
   Details Pane
   ======================================== */
.details-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    display: none;
}

.details-pane.active-pane {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* ========================================
   Feature Tabs (Showcase Section)
   ======================================== */
.feature-tab.active {
    background: white;
    border-left: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(10px);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.1s linear;
}

/* ========================================
   Slideshow
   ======================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 2rem;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.slide.active-slide {
    opacity: 1;
    z-index: 10;
}

/* ========================================
   Hero — Navy (Career / Inner Pages)
   ======================================== */
.hero-navy {
    background: linear-gradient(135deg, #001A33 0%, #003366 60%, #004080 100%);
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding-top: 6rem;   /* clears the 96px (h-24) fixed navbar */
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-navy::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(0, 123, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Homepage hero — taller, content centred vertically */
.hero-navy-home {
    background: linear-gradient(135deg, #001A33 0%, #003366 60%, #004080 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-navy-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(197, 160, 89, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(0, 123, 255, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.gold-accent-line {
    width: 3rem;
    height: 4px;
    background: linear-gradient(90deg, #C5A059, #E8D2A6);
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

/* ========================================
   Form Inputs
   ======================================== */
.input-field {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
    background: #fff;
}

.input-field::placeholder {
    color: #94a3b8;
}

/* ========================================
   Application Modal
   ======================================== */
.modal-overlay {
    background: rgba(0, 26, 51, 0.6);
    backdrop-filter: blur(6px);
}

/* ========================================
   Footer
   ======================================== */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* ========================================
   Office Cards (Contact Page)
   ======================================== */
.office-card {
    border-left: 2px solid #f1f5f9;
    padding-left: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}
.office-card:hover {
    border-left-color: var(--gold);
    background: rgba(197, 160, 89, 0.03);
    transform: scale(1.03) translateX(8px);
}

/* ========================================
   Map Container (Contact Page)
   ======================================== */
.map-container {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.05);
}

/* Validation states */
.input-field.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
    background-color: #fff8f8 !important;
}
.input-field.field-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.06) !important;
}

.field-error-msg {
    display: none;
    font-size: 10px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
    margin-left: 4px;
}
.field-error-msg.visible {
    display: block;
}

/* ========================================
   Responsive / Mobile
   ======================================== */
@media (max-width: 768px) {
    .container-wide {
        padding: 0 1.25rem;
    }

    /* Prevent orbit animation from causing horizontal scroll */
    .orbit-container {
        transform: scale(0.8);
        margin-top: 2rem;
    }

    /* Less aggressive hover lift on mobile */
    .prestige-card:hover {
        transform: translateY(-5px);
    }

    /* Horizontally scrollable solution list */
    .custom-scrollbar {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 1rem;
    }

    .solution-nav-item {
        min-width: 280px;
    }
}
