/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: #1a1a2e;
    background: #fafaf8;
    overflow-x: hidden;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f0;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8943a;
}

/* ----- Hero Video ----- */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 15, 26, 0.88) 0%,
            rgba(20, 28, 50, 0.78) 40%,
            rgba(30, 40, 74, 0.85) 100%);
    z-index: 1;
}
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fcd34d' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* ----- Floating Orbs ----- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(252, 211, 77, 0.08);
    top: -100px;
    right: -100px;
    animation: float 12s ease-in-out infinite;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.06);
    bottom: -80px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* ----- Header ----- */
.header-transparent {
    background: rgba(10, 15, 26, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.header-scrolled .nav-link {
    color: #1a1a2e;
}
.header-scrolled .nav-link:hover {
    color: #b8943a;
}
.header-scrolled .logo-text-primary {
    fill: #1a1a2e;
}
.header-scrolled .logo-text-secondary {
    fill: #4a4a5a;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover {
    color: #fcd34d;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active {
    color: #fcd34d;
}
.nav-link.active::after {
    width: 100%;
}

/* ----- Mobile Drawer & Backdrop ----- */
#mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
#mobile-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    width: 85vw;
    max-width: 400px;
    height: 100%;
    background: #050a14;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
#hamburger-btn.active #ham-bar-1 {
    transform: translateY(6px) rotate(45deg);
}
#hamburger-btn.active #ham-bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
#hamburger-btn.active #ham-bar-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 100%;
}

/* ----- Service Cards ----- */
.service-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    border-color: rgba(201, 168, 76, 0.2);
}
.service-card .service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-image img {
    transform: scale(1.05);
}
.service-card .service-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.4) 0%, transparent 60%);
}
.service-card .service-body {
    padding: 1.75rem 1.75rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* ----- Testimonial Marquee ----- */
.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marqueeScroll 50s linear infinite;
}
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-item {
    flex: 0 0 auto;
    width: 340px;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}
.marquee-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(252, 211, 77, 0.2);
    transform: scale(1.02);
}

/* ----- Stats Counter ----- */
.stat-number {
    font-family: 'Playfair Display', serif;
}

/* ----- Skip link ----- */
.skip-link {
    position: absolute;
    top: -1000px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a8a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* ----- Form inputs ----- */
.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #fcd34d;
    box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.1);
    background: rgba(255, 255, 255, 0.08);
}
.form-select option {
    color: #1a1a2e;
    background: #fff;
}

/* ----- Section dividers ----- */
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
    border-radius: 4px;
    margin: 0.5rem auto 1.5rem;
}

/* ----- Calendar & Resource cards ----- */
.calendar-card,
.resource-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s ease;
}
.calendar-card:hover,
.resource-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(252, 211, 77, 0.2);
}

/* ----- Feature cards ----- */
.feature-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
}
.feature-card-premium:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-6px);
    border-color: rgba(252, 211, 77, 0.2);
}

/* ----- Container ----- */
.container-premium {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 640px) {
    .container-premium {
        padding: 0 2.5rem;
    }
}
@media (min-width: 1024px) {
    .container-premium {
        padding: 0 4rem;
    }
}

/* ----- AOS tweaks ----- */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ----- Round Section Edges (EXCLUDING HERO) ----- */
section:not(#home),
footer {
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 0.75rem;
}
@media (min-width: 768px) {
    section:not(#home),
    footer {
        margin: 1.5rem;
    }
}

/* ----- Hero section — full-width, square edges ----- */
#home {
    border-radius: 0 !important;
    margin: 0 !important;
}

/* ----- Mobile responsive overrides ----- */
@media (max-width: 640px) {
    .marquee-item {
        width: 260px;
        padding: 1rem 1.25rem;
    }
    .service-card .service-image {
        height: 160px;
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
}