/* =========================================
   CORPORATE GAME MASTERS — MODERN THEME
   ========================================= */

/* --- Brand Variables --- */
:root {
    --cgm-navy:   #1B3A6B;
    --cgm-blue:   #2d5fa6;
    --cgm-mid:    #4a7fcb;
    --cgm-gold:   #c9963b;
    --cgm-gold-lt:#f0c070;
    --cgm-dark:   #0d1b2a;
    --cgm-light:  #f0f4f8;
    --grad-main:  linear-gradient(135deg, #1B3A6B 0%, #2d5fa6 100%);
    --grad-hero:  linear-gradient(135deg, rgba(13,27,42,0.88) 0%, rgba(27,58,107,0.78) 100%);
    --shadow-sm:  0 4px 18px rgba(27,58,107,0.10);
    --shadow-md:  0 8px 32px rgba(27,58,107,0.16);
    --shadow-lg:  0 18px 55px rgba(27,58,107,0.22);
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --radius:     14px;
}

/* ========================
   BASE
   ======================== */
body {
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
}

/* ========================
   NAVBAR
   ======================== */
.navbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 28px rgba(27,58,107,0.10);
    transition: all 0.35s var(--ease);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-brand img {
    max-height: 72px !important;
    width: auto;
    transition: all 0.35s var(--ease);
}

/* Disable old slide-up background on nav links */
.navbar-light .navbar-nav .nav-link::before {
    display: none !important;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #1a2a3a !important;
    letter-spacing: 0.3px;
    padding: 28px 16px !important;
    position: relative;
    transition: all 0.3s var(--ease);
}

/* Modern underline indicator */
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
    border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--cgm-navy) !important;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Buttons */
.btn.btn-primary {
    background: var(--grad-main) !important;
    border: none !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 5px 18px rgba(27,58,107,0.28) !important;
    transition: all 0.3s var(--ease) !important;
    color: white !important;
}

.btn.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(27,58,107,0.38) !important;
    color: white !important;
    background: linear-gradient(135deg, #2d5fa6 0%, #1B3A6B 100%) !important;
}

.btn.btn-light {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    box-shadow: none;
}

.btn.btn-light:hover {
    background: white !important;
    color: var(--cgm-navy) !important;
    box-shadow: 0 5px 15px rgba(255,255,255,0.3) !important;
}

/* ========================
   HERO CAROUSEL (Home)
   ======================== */
.carousel-header .carousel-inner .carousel-item {
    min-height: 100vh;
}

.carousel-header .carousel-inner .carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100vh;
    filter: brightness(0.55);
}

.carousel-header .carousel-inner .carousel-item .carousel-caption {
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 80px 8% 60px;
}

.hero-inner {
    max-width: 660px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,150,59,0.15);
    border: 1px solid rgba(201,150,59,0.5);
    color: var(--cgm-gold-lt);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
    opacity: 0;
    animation: slideUp 0.7s 0.2s var(--ease) forwards;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.25);
    opacity: 0;
    animation: slideUp 0.7s 0.4s var(--ease) forwards;
}

.hero-title .gold { color: var(--cgm-gold-lt); }

.hero-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.87);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 550px;
    opacity: 0;
    animation: slideUp 0.7s 0.6s var(--ease) forwards;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 0.7s 0.8s var(--ease) forwards;
}

.btn-hprimary {
    display: inline-block;
    background: var(--grad-main);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 22px rgba(27,58,107,0.4);
    transition: all 0.3s var(--ease);
}

.btn-hprimary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(27,58,107,0.5);
    color: #fff;
    background: linear-gradient(135deg, #2d5fa6, #1B3A6B);
}

.btn-houtline {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
    padding: 12px 36px;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.4px;
    backdrop-filter: blur(6px);
    transition: all 0.3s var(--ease);
}

.btn-houtline:hover {
    background: #ffffff;
    color: var(--cgm-navy);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Carousel controls */
.carousel-header .carousel-control-prev,
.carousel-header .carousel-control-next {
    width: 52px !important;
    height: 52px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    background: rgba(27,58,107,0.72) !important;
    border-radius: 50% !important;
    margin: 0 18px !important;
    backdrop-filter: blur(8px);
    opacity: 0.9;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s var(--ease);
}

.carousel-header .carousel-control-prev:hover,
.carousel-header .carousel-control-next:hover {
    opacity: 1;
    background: var(--cgm-navy) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

/* Override style.css absolute positioning on the icon spans */
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-size: 20px 20px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    display: block !important;
}

/* ========================
   FLOATING ACTION BUTTONS
   ======================== */
.float-buttons {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    position: relative;
    flex-shrink: 0;
}

.float-btn:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

/* Tooltip label on hover */
.float-btn::before {
    content: attr(data-label);
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13,27,42,0.88);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 7px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}

.float-btn:hover::before {
    opacity: 1;
}

/* WhatsApp */
.float-btn-wa {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

.float-btn-wa:hover {
    box-shadow: 0 10px 30px rgba(37,211,102,0.55);
}

/* Pulse ring on WhatsApp button */
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.65; }
    100% { transform: scale(1.65); opacity: 0; }
}

.float-btn-wa::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: wa-pulse 2.2s ease-out infinite;
    z-index: -1;
}

/* Call */
.float-btn-call {
    background: var(--grad-main);
    box-shadow: 0 6px 20px rgba(27,58,107,0.40);
}

.float-btn-call:hover {
    box-shadow: 0 10px 30px rgba(27,58,107,0.50);
}

@media (max-width: 576px) {
    .float-buttons { right: 14px; bottom: 80px; }
    .float-btn { width: 48px; height: 48px; font-size: 20px; }
    .float-btn::before { display: none; }
}

/* Indicators */
.carousel-indicators {
    margin-bottom: 28px;
}

.carousel-indicators li,
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255,255,255,0.5) !important;
    margin: 0 5px !important;
    transition: all 0.3s var(--ease) !important;
    opacity: 1 !important;
}

.carousel-indicators li.active,
.carousel-indicators button.active {
    width: 32px !important;
    border-radius: 5px !important;
    background: var(--cgm-gold-lt) !important;
}

/* ========================
   BREADCRUMB HERO (inner pages)
   ======================== */
.bg-breadcrumb {
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    padding: 160px 0 80px !important;
    display: flex;
    align-items: center;
    min-height: 440px;
}

.bg-breadcrumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,0.88) 0%, rgba(27,58,107,0.80) 100%);
}

.bg-breadcrumb .container {
    position: relative;
    z-index: 2;
}

.bg-breadcrumb h3 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 700;
    text-shadow: 0 3px 16px rgba(0,0,0,0.3);
    animation: slideUp 0.7s 0.2s var(--ease) forwards;
    opacity: 0;
}

.bg-breadcrumb .breadcrumb {
    animation: slideUp 0.7s 0.4s var(--ease) forwards;
    opacity: 0;
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--cgm-gold-lt) !important;
}

.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.45);
}

/* ========================
   SECTION TITLES
   ======================== */
.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cgm-gold) !important;
    background: rgba(201,150,59,0.08);
    border: 1px solid rgba(201,150,59,0.3);
    border-radius: 30px;
    padding: 6px 22px;
    display: inline-block;
}

.section-title::before,
.section-title::after {
    display: none !important;
}

/* ========================
   ABOUT SECTION
   ======================== */
.about .container {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    background: white;
}

.about-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--cgm-light) 0%, #dbe7f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 380px;
}

.about-img-wrap img {
    max-width: 80%;
    filter: drop-shadow(0 8px 24px rgba(27,58,107,0.2));
    transition: transform 0.4s var(--ease);
}

.about-img-wrap:hover img {
    transform: scale(1.04);
}

/* ========================
   STATS BAR
   ======================== */
.stats-bar {
    background: var(--grad-main);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Jost', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--cgm-gold-lt);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    letter-spacing: 0.5px;
    font-family: 'Jost', sans-serif;
}

/* ========================
   SERVICE CARDS (Home)
   ======================== */
.svc-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
    border-bottom: 3px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
    transform: scaleX(0);
    transition: transform 0.35s var(--ease);
}

.svc-card:hover {
    transform: translateY(-9px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--cgm-gold);
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-icon {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, rgba(27,58,107,0.07) 0%, rgba(45,95,166,0.11) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    transition: all 0.35s var(--ease);
}

.svc-card:hover .svc-icon {
    background: var(--grad-main);
    box-shadow: 0 8px 24px rgba(27,58,107,0.3);
}

.svc-card:hover .svc-icon i {
    color: white !important;
}

.svc-card h5 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--cgm-navy);
    font-size: 1rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.svc-card p {
    color: #6c757d;
    font-size: 14.5px;
    line-height: 1.72;
    margin-bottom: 0;
}

/* ========================
   SERVICE DETAIL (Services page)
   ======================== */
.svc-detail-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--cgm-navy);
    transition: all 0.35s var(--ease);
    height: 100%;
}

.svc-detail-card:hover {
    border-left-color: var(--cgm-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.svc-detail-card h5 {
    color: var(--cgm-navy);
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.svc-detail-card p {
    color: #5a6b7a;
    line-height: 1.75;
    font-size: 14.8px;
}

.svc-icon-lg {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--cgm-light) 0%, #dbe7f5 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
}

.svc-icon-lg:hover {
    box-shadow: var(--shadow-md);
    background: var(--grad-main);
}

.svc-icon-lg:hover i {
    color: white !important;
}

/* ========================
   MISSION / VISION (About)
   ======================== */
.mv-card {
    background: white;
    border-radius: var(--radius);
    padding: 42px 34px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
    border-top: 4px solid var(--cgm-navy);
    height: 100%;
}

.mv-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--cgm-gold);
}

.mv-card .mv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(27,58,107,0.07), rgba(45,95,166,0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.35s var(--ease);
}

.mv-card:hover .mv-icon {
    background: var(--grad-main);
    box-shadow: 0 8px 20px rgba(27,58,107,0.25);
}

.mv-card:hover .mv-icon i {
    color: white !important;
}

/* ========================
   WHY CHOOSE US (About)
   ======================== */
.why-item {
    background: white;
    border-radius: var(--radius);
    padding: 32px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
    height: 100%;
}

.why-item:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.why-item .why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(27,58,107,0.07), rgba(45,95,166,0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.35s var(--ease);
}

.why-item:hover .why-icon {
    background: var(--grad-main);
    box-shadow: 0 8px 22px rgba(27,58,107,0.25);
}

.why-item:hover .why-icon i { color: white !important; }

.why-item h5 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--cgm-navy);
    font-size: 1rem;
    margin-bottom: 10px;
}

.why-item p {
    font-size: 14.5px;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* ========================
   CTA BANNER
   ======================== */
.cta-section {
    background: var(--grad-main);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -6%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.cta-section h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* ========================
   CONTACT PAGE
   ======================== */
.contact-info-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-info-item {
    padding: 26px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f4f8;
    transition: all 0.3s var(--ease);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item:hover {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fb 100%);
}

.contact-info-item .ci-icon {
    width: 60px;
    height: 60px;
    background: var(--grad-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 18px rgba(27,58,107,0.25);
}

.contact-info-item h5 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--cgm-navy);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-info-item p, .contact-info-item a {
    font-size: 14.5px;
    color: #5a6b7a;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0;
    word-break: break-word;
}

.contact-info-item a:hover { color: var(--cgm-navy); }

.contact-form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px 36px;
}

.contact-form-card h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--cgm-navy);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #d8e3ef;
    background: #f7f9fc;
    transition: all 0.3s var(--ease);
    font-size: 14.5px;
}

.contact-form-card .form-control:focus {
    border-color: var(--cgm-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(27,58,107,0.08);
}

/* ========================
   SUCCESS POPUP
   ======================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

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

.popup-card {
    background: #fff;
    border-radius: 22px;
    padding: 52px 42px 44px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(13, 27, 42, 0.38);
    transform: scale(0.82) translateY(24px);
    transition: transform 0.42s var(--ease);
    position: relative;
    overflow: hidden;
}

/* Top accent stripe */
.popup-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cgm-gold) 0%, var(--cgm-blue) 50%, var(--cgm-gold) 100%);
}

.popup-overlay.active .popup-card {
    transform: scale(1) translateY(0);
}

/* Animated check icon */
.popup-icon-wrap {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: none;
}

.popup-overlay.active .popup-icon-wrap {
    animation: popIn 0.5s 0.2s var(--ease) both;
}

@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.popup-icon-wrap i {
    font-size: 2.8rem;
    color: #27ae60;
}

.popup-card h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--cgm-navy);
    margin-bottom: 10px;
}

.popup-card .popup-msg {
    color: #5a6b7a;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.popup-card .popup-msg strong {
    color: var(--cgm-navy);
}

/* Quick contact strip */
.popup-contacts {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.popup-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0f4f8;
    color: var(--cgm-navy);
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.popup-contact-link:hover {
    background: var(--grad-main);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.popup-close-btn {
    display: inline-block;
    background: var(--grad-main);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 44px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(27,58,107,0.30);
    transition: all 0.3s var(--ease);
    letter-spacing: 0.3px;
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27,58,107,0.40);
}

/* Confetti dots decoration */
.popup-card .popup-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

.popup-card .popup-dot:nth-child(1) {
    width: 110px; height: 110px;
    background: var(--cgm-gold);
    bottom: -40px; right: -30px;
}

.popup-card .popup-dot:nth-child(2) {
    width: 70px; height: 70px;
    background: var(--cgm-blue);
    top: 30px; left: -20px;
}

@media (max-width: 480px) {
    .popup-card { padding: 42px 24px 36px; }
    .popup-card h2 { font-size: 1.55rem; }
    .popup-contacts { flex-direction: column; align-items: center; }
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: linear-gradient(160deg, #0d1b2a 0%, #1a3060 100%) !important;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cgm-gold) 0%, var(--cgm-mid) 50%, var(--cgm-gold) 100%);
}

.footer h4 {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cgm-gold-lt) !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer .footer-item a {
    color: rgba(255,255,255,0.70) !important;
    font-size: 14.5px;
    margin-bottom: 10px;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
}

.footer .footer-item a:hover {
    color: var(--cgm-gold-lt) !important;
    letter-spacing: 0;
    padding-left: 4px;
}

.footer .btn-square {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.3s var(--ease);
    line-height: 1;
    font-size: 15px;
}

.footer .btn-square i {
    line-height: 1;
    display: block;
}

.footer .btn-square:hover {
    background: var(--cgm-gold);
    border-color: var(--cgm-gold);
    transform: translateY(-2px);
}

.copyright {
    background: rgba(0,0,0,0.25) !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
}

/* ========================
   BACK TO TOP
   ======================== */
.back-to-top {
    background: var(--grad-main) !important;
    border: none;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s var(--ease) !important;
}

.back-to-top:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0 !important;
        color: var(--cgm-dark) !important;
    }
    .navbar-light .navbar-nav .nav-link::after {
        left: 0; right: auto;
        bottom: 4px;
        width: 30px;
        transform: scaleX(1);
        opacity: 0;
    }
    .navbar-light .navbar-nav .nav-link.active::after { opacity: 1; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .stat-item:last-child { border-bottom: none; }
    .hero-btns { justify-content: center; }
    .hero-inner { text-align: center; max-width: 100%; }
    .carousel-header .carousel-inner .carousel-item .carousel-caption {
        padding: 60px 5% 40px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.9rem; }
    .hero-text  { font-size: 0.95rem; }
    .btn-hprimary, .btn-houtline { padding: 12px 26px; font-size: 14px; }
    .stat-number { font-size: 2.2rem; }
    .bg-breadcrumb { padding: 120px 0 60px !important; min-height: 320px; }
}
