/* Core Variables */
:root {
    --primary: #0a192f;       /* Premium slate Navy */
    --secondary: #bfa15f;     /* Sophisticated Gold */
    --accent: #9e1b2b;        /* Crimson Accent */
    --light: #f8f9fc;         /* Light Neutral */
    --text-main: #334155;     /* Readability Slate */
    --text-muted: #64748b;    /* Subtitles Caption */
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main);
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Outfit', sans-serif; 
    color: var(--primary);
}

/* Gradient Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, #030812 100%);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px 0 rgba(10, 25, 47, 0.04);
}

.glass-card-dark {
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3);
}

/* Dotted grid pattern helper */
.bg-dot-pattern {
    background-image: radial-gradient(rgba(191, 161, 95, 0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

/* Hover lift transition */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(10, 25, 47, 0.08);
    border-color: var(--secondary);
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(15px);
}
#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Infinite Scroll Marquee */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    position: relative;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    animation: marquee 40s linear infinite;
}

/* Flagship Program Tabs Active states */
.flagship-tab-active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-left-color: var(--secondary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.flagship-tab-active .flagship-tab-num {
    background-color: var(--accent) !important;
    color: #ffffff !important;
}
.flagship-tab-active .flagship-tab-title {
    color: #ffffff !important;
}

/* General Buttons */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(191, 161, 95, 0.25);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Single-level Navigation Dropdowns (Desktop Hover) */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0px 8px 30px rgba(10, 25, 47, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(10, 25, 47, 0.04);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Hero Background Overlays */
.hero-bg-index {
    background-image: linear-gradient(rgba(248, 249, 252, 0.88), rgba(248, 249, 252, 0.95)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
}
.hero-bg-about {
    background-image: linear-gradient(rgba(10, 25, 47, 0.93), rgba(10, 25, 47, 0.96)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}
.hero-bg-services {
    background-image: linear-gradient(rgba(10, 25, 47, 0.93), rgba(10, 25, 47, 0.96)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}
.hero-bg-contact {
    background-image: linear-gradient(rgba(248, 249, 252, 0.90), rgba(248, 249, 252, 0.95)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Custom Autoplay Hero Carousel */
.carousel-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 28vh;
    padding-left: 10%;
    padding-right: 5%;
    z-index: 3;
    transition: background 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .carousel-overlay {
        padding-top: 18vh;
        padding-left: 5%;
        padding-right: 5%;
    }
}

.overlay-charcoal {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, 0.88) 25%, rgba(30, 41, 59, 0.88) 75%, rgba(30, 41, 59, 0) 100%);
}

.overlay-navy {
    background: linear-gradient(180deg, rgba(7, 26, 71, 0) 0%, rgba(7, 26, 71, 0.88) 25%, rgba(7, 26, 71, 0.88) 75%, rgba(7, 26, 71, 0) 100%);
}

.overlay-midnight {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.88) 25%, rgba(15, 23, 42, 0.88) 75%, rgba(15, 23, 42, 0) 100%);
}

.text-embossed {
    color: #ffffff !important;
    text-shadow: 
        0px 2px 4px rgba(0, 0, 0, 0.4),
        2px 2px 0px rgba(191, 161, 95, 0.85), 
        4px 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.tagline-embossed {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.9) !important;
}

.carousel-content {
    max-width: 800px;
    padding: 24px 0;
    text-align: left;
    color: #ffffff;
}

/* Carousel Control Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.carousel-arrow-prev { left: 30px; }
.carousel-arrow-next { right: 30px; }

/* Carousel Dots Indicator */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--secondary);
    transform: scale(1.25);
}

/* About Grid tweaks */
.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.05) 0%, rgba(10, 25, 47, 0.2) 100%);
    border-radius: 12px;
}

/* Premium FAQ Accordion Active Styles */
.faq-item {
    transition: all 0.3s ease;
}
.faq-item.active {
    border-color: var(--secondary) !important;
    box-shadow: 0 10px 25px -5px rgba(10, 25, 47, 0.06);
}
.faq-item.active .faq-question {
    background-color: #ffffff !important;
    color: var(--secondary) !important;
}

/* Orbital Diagram Interactive Animations */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.orbit-spin-slow {
    animation: spin-slow 120s linear infinite;
    transform-origin: center;
}

.node-icon-circle {
    position: relative;
}
.node-icon-circle::before,
.node-icon-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px currentColor;
    opacity: 0;
    pointer-events: none;
}
.node-icon-circle::before {
    animation: beacon-ripple 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
.node-icon-circle::after {
    animation: beacon-ripple 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    animation-delay: 1.2s;
}

@keyframes beacon-ripple {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes hub-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(204, 160, 82, 0.2); }
    50% { box-shadow: 0 0 35px rgba(204, 160, 82, 0.55); }
}
.hub-pulse {
    animation: hub-glow 4s infinite ease-in-out;
}

.orbit-node {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.orbit-node:hover {
    transform: translate(-50%, -50%) scale(1.22) !important;
    z-index: 40 !important;
}
.orbit-node:hover .node-icon-circle {
    box-shadow: 0 0 25px rgba(204, 160, 82, 0.7) !important;
}
