/* 
   PREMIUM STYLE - REFAFA MOSTESA 
   Modern, Luxury, Responsive
*/

:root {
    /* Color Palette - Modern Luxury */
    --primary-gold: #D4AF37;
    /* Metallic Gold */
    --primary-gold-hover: #B5952F;
    --dark-navy: #0a192f;
    /* Deep Navy */
    --dark-navy-light: #112240;
    --text-main: #e6f1ff;
    /* Off-white for dark bg */
    --text-muted: #8892b0;
    --text-dark: #1a1a1a;
    /* For light sections */
    --light-bg: #f8f9fa;
    --white: #ffffff;

    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D06B 100%);
    --navy-gradient: linear-gradient(135deg, #0a192f 0%, #112240 100%);

    /* Spacing & Layout */
    --section-padding: 6rem 0;
    --border-radius: 12px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'League Spartan', 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-gold);
    transition: var(--transition-fast);
    text-decoration: none;
}

a:hover {
    color: var(--primary-gold-hover);
    text-decoration: none;
}

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

.bg-light {
    background-color: var(--light-bg) !important;
}

.site-section {
    padding: var(--section-padding);
    position: relative;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--dark-navy);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
    color: var(--dark-navy);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

/* =========================================
   PREMIUM NAVBAR
   ========================================= */
.premium-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.95);
}


.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 50px;
    transition: height 0.3s ease;
}

.premium-navbar.scrolled .nav-brand img {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

.premium-navbar.scrolled .nav-link {
    color: var(--dark-navy);
}

.premium-navbar.scrolled .nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.premium-navbar.scrolled .lang-btn {
    border-color: rgba(10, 25, 47, 0.2);
    color: var(--dark-navy);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #fff !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.premium-navbar.scrolled .bar {
    background: var(--dark-navy);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: #fff;
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.home-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--dark-navy);
    /* Fallback */
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-container video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    /* Darken video for text readability */
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6));
    z-index: 1;
}

.home-section .container {
    position: relative;
    z-index: 2;
}

.home-title-main {
    font-size: 6rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.home-title-sub {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.home-title-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Scroll Down Button */
.scroll-button {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 10;
    transition: var(--transition-fast);
    animation: bounce 2s infinite;
}

.scroll-button:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-us-section {
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold-gradient);
    margin-top: 10px;
}

.section-title-sub {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.img-overlap {
    position: relative;
    z-index: 1;
}

.img-overlap img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.img-overlap:hover img {
    transform: scale(1.02);
}

/* Counters */
.section-counter {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-navy);
    display: block;
}

.caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-calendar,
.icon-certificate,
.icon-building,
.icon-book {
    font-size: 2.5rem;
    color: var(--primary-gold);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    background: var(--light-bg);
}

.block__16443 {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.block__16443:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary-gold);
}

.custom-icon {
    display: inline-flex;
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.block__16443:hover .custom-icon {
    background: var(--gold-gradient);
    color: var(--dark-navy);
}

.block__16443 h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.block__16443 p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-carousel .carousel-item {
    height: 500px;
}

.portfolio-carousel .carousel-item img {
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--dark-navy);
    border-radius: 50%;
    padding: 10px;
    background-size: 50%;
}

/* Mobile Portfolio Grid */
#portfolio-grid-mobile .img-fluid {
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

#portfolio-grid-mobile a {
    display: block;
    text-align: center;
}

/* =========================================
   TRUSTED BY (Marquee)
   ========================================= */
#trusted-section {
    padding: 4rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-bg);
    overflow: hidden;
}

.trusted-marquee {
    overflow: hidden;
    position: relative;
    padding-top: 0.75rem;
    padding-bottom: 3rem;
}

.trusted-marquee .marquee-track {
    display: flex;
    animation: marquee-scroll var(--marquee-duration, 18s) linear infinite;
    will-change: transform;
}

.trusted-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.trusted-marquee .marquee-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.trusted-logo {
    max-height: 120px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 0.6;
    transition: var(--transition-fast);
    margin: 0 1.5rem;
}

.trusted-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--marquee-distance, 1000px)));
    }
}

/* =========================================
   CONSULTATION & CONTACT FORM
   ========================================= */
#consultation-section,
#contact-section {
    background: var(--light-bg);
}

form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group label {
    font-weight: 600;
    color: var(--dark-navy);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-control {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    padding: 0 20px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    height: auto;
    padding-top: 15px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: var(--primary-gold);
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition-fast);
    color: var(--white);
}

.footer-social .social-link:hover {
    background: var(--primary-gold);
    color: var(--dark-navy);
    transform: translateY(-3px);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 1199.98px) {
    .trusted-logo {
        max-height: 100px;
        max-width: 150px;
    }
}

@media (max-width: 991.98px) {
    .home-title-main {
        font-size: 4rem;
    }

    .home-title-sub {
        font-size: 1.8rem;
    }

    .section-hero {
        height: auto;
        padding: 150px 0 100px 0;
    }

    .site-navbar {
        background: var(--dark-navy);
        /* Solid bg on mobile */
        padding: 10px 0;
    }

    .site-navbar .site-logo a {
        color: var(--white);
    }

    .trusted-logo {
        max-height: 80px;
        max-width: 120px;
    }
}

@media (max-width: 767.98px) {
    .home-title-main {
        font-size: 3rem;
    }

    .home-title-sub {
        font-size: 1.5rem;
    }

    .section-counter .col-6 {
        margin-bottom: 30px;
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo (Left) */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 55px;
    transition: height 0.3s ease;
}

.premium-navbar.scrolled .nav-brand img {
    height: 48px;
}

/* Desktop Navigation (Center) */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--dark-navy);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Desktop Actions (Right) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.4rem;
}

.lang-btn {
    background: transparent;
    border: 1.5px solid rgba(10, 25, 47, 0.15);
    color: var(--dark-navy);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #fff;
}

/* Mobile Toggle (Hidden on Desktop) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
    color: #0a192f;
}

.bar {
    width: 26px;
    height: 3px;
    background: var(--dark-navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 2rem;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-lang-switcher {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-bg);
}

.mobile-nav-link {
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin: 1rem 0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .navbar-container {
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .premium-navbar {
        padding: 1rem 0;
    }

    .nav-brand img {
        height: 45px;
    }

    .premium-navbar.scrolled .nav-brand img {
        height: 40px;
    }

    .mobile-nav-link {
        font-size: 1.5rem;
    }
}