/* ==========================================================================
   B.P.L Associates - Premium Homepage Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght=0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #081A33;
    --primary-rgb: 8, 26, 51;
    --primary-light: #12284c;
    --secondary: #D4AF37;
    --secondary-rgb: 212, 175, 55;
    --secondary-dark: #b89020;
    --bg-light: #ffffff;
    --bg-soft-grey: #f4f6f9;
    --bg-dark: #040d1a;
    --text-main: #2d3748;
    --text-muted: #6b7280;
    --border-color: rgba(8, 26, 51, 0.08);

    /* Animations & Shadows */
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(8, 26, 51, 0.06);
    --shadow-lg: 0 20px 40px rgba(8, 26, 51, 0.12);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* --- Global Elements --- */
html,
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.text-gold {
    color: var(--secondary);
}

.bg-dark-navy {
    background-color: var(--bg-dark);
}

.bg-navy {
    background-color: var(--primary);
}

/* --- Section Headings --- */
.section-title-wrapper {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 30px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--secondary);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- Buttons --- */
.btn-gold {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--primary) !important;
    border: none;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-fast);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.btn-outline-gold {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background: transparent;
    color: var(--secondary) !important;
    border: 2px solid var(--secondary);
    transition: var(--transition-fast);
}

.btn-outline-gold:hover {
    background: var(--secondary);
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* --- Navigation Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 0.75rem 0;
}

.site-header.scrolled {
    background: rgba(8, 26, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-text span {
    color: var(--secondary);
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.brand-logo {
    height: 95px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.site-header.scrolled .brand-logo {
    height: 70px;
}

@media (max-width: 991px) {
    .brand-logo {
        height: 65px;
    }

    .site-header.scrolled .brand-logo {
        height: 50px;
    }
}

.site-header .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition-fast);
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-fast);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
    width: 70%;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-toggler {
    border: none !important;
    outline: none !important;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon-custom {
    display: block;
    position: relative;
    width: 24px;
    height: 16px;
}

.navbar-toggler-icon-custom span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.navbar-toggler-icon-custom span:nth-child(1) {
    top: 0px;
}

.navbar-toggler-icon-custom span:nth-child(2) {
    top: 7px;
}

.navbar-toggler-icon-custom span:nth-child(3) {
    top: 14px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}

/* Mobile responsive menu */
@media (max-width: 991.98px) {
    .site-header {
        background: rgba(8, 26, 51, 0.98);
        padding: 0.75rem 0;
    }

    .navbar-collapse {
        background: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        border-bottom: 2px solid var(--secondary);
        box-shadow: var(--shadow-lg);
    }

    .site-header .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .site-header .nav-link::after {
        display: none;
    }
}

/* --- Hero Slider --- */
.hero-slider-section {
    /* Use dvh (dynamic viewport height) so mobile browser chrome is excluded.
       Falls back to 100vh for older browsers. */
    height: 100svh;
    height: 100vh; /* fallback */
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    height: 100%;
}

.hero-slider-section .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 26, 51, 0.75) 0%, rgba(4, 13, 26, 0.92) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.0rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin-bottom: 2.5rem;
    opacity: 0;
}

.hero-btn-group {
    opacity: 0;
}

/* Carousel Active animations */
.carousel-item.active .hero-title {
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.carousel-item.active .hero-subtitle {
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.carousel-item.active .hero-btn-group {
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: var(--transition-fast);
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary);
    color: var(--primary);
}

@media (max-width: 767.98px) {
    /* Use auto height so content is never clipped on real mobile */
    .hero-slider-section {
        height: auto;
        min-height: 100svh;
        min-height: 100vh; /* fallback */
    }

    .hero-slider-section .carousel,
    .hero-slider-section .carousel-inner,
    .hero-slider-section .carousel-item {
        height: auto;
        min-height: 100svh;
        min-height: 100vh; /* fallback */
    }

    .hero-content-wrapper {
        /* Push content below fixed header and add bottom breathing room */
        padding-top: 100px;
        padding-bottom: 2.5rem;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 100%;
    }

    .hero-btn-group {
        justify-content: center !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* --- About Us Section --- */
.about-section {
    padding: 4.5rem 0;
    background-color: var(--bg-light);
}

.about-img-box {
    position: relative;
    padding-right: 25px;
    padding-bottom: 25px;
}

.about-img-box img {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 480px;
    /* Align vertically with text content column on desktop */
    display: block;
    position: relative;
    z-index: 2;
    object-fit: cover;
}

@media (max-width: 991px) {
    .about-img-box img {
        height: 380px;
        /* Balanced height for tablet viewports */
    }
}

@media (max-width: 575px) {
    .about-img-box img {
        height: 250px;
        /* Balanced height for mobile viewports */
    }
}

.about-img-box::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: calc(100% - 25px);
    height: calc(100% - 25px);
    border: 3px solid var(--secondary);
    border-radius: 8px;
    /* Match the rounded corners of the image */
    z-index: 1;
    transition: var(--transition-slow);
    pointer-events: none;
}

.about-img-box:hover::before {
    transform: translate(-5px, -5px);
}

/* --- Scroll Reveal Animations --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* --- Vision & Mission Section --- */
.vision-mission-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #020710 0%, #081a33 100%);
    position: relative;
    overflow: hidden;
}

.vision-mission-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Background glowing gradient elements */
.vm-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.orb-gold-one {
    top: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.orb-blue-two {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0072ff 0%, transparent 70%);
}

/* Stagger the columns on desktop */
@media (min-width: 992px) {
    .vision-mission-section .row>div:nth-child(2) {
        transform: translateY(40px);
    }
}

.vm-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(212, 175, 55, 0.18); /* Elegant gold-tinted boundary */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 4.5rem 3rem;
    position: relative;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        background 0.5s ease;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35),
                0 0 30px rgba(212, 175, 55, 0.02);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, #ffffff 50%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.vm-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55),
                0 0 45px rgba(212, 175, 55, 0.12);
}

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

/* Large outline text watermark with increased visibility */
.vm-card.vision-card::after {
    content: 'VISION';
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 6.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.04);
    pointer-events: none;
    letter-spacing: 2px;
    z-index: -1;
    transition: all 0.5s ease;
}

.vm-card.mission-card::after {
    content: 'MISSION';
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 6.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.04);
    pointer-events: none;
    letter-spacing: 2px;
    z-index: -1;
    transition: all 0.5s ease;
}

.vm-card:hover::after {
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.08);
    transform: scale(1.05);
}

.vm-badge {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.05);
    transition: all 0.3s ease;
}

.vm-card:hover .vm-badge {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.vm-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.vm-icon-wrapper i {
    font-size: 2.4rem;
    color: var(--secondary);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.vm-card:hover .vm-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary) 0%, #f3d06c 100%);
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.vm-card:hover .vm-icon-wrapper i {
    color: var(--primary);
    transform: rotate(15deg) scale(1.1);
}

.vm-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.vm-title::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--secondary);
    margin-top: 8px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.vm-card:hover .vm-title::after {
    width: 65px;
}

.vm-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 95%;
    position: relative;
    z-index: 1;
}

/* Tablet and Mobile Responsiveness Adjustments */
@media (max-width: 991px) {
    .vision-mission-section {
        padding: 5rem 0;
    }
    
    .vm-card {
        padding: 3.5rem 2.2rem;
    }
    
    .vm-title {
        font-size: 1.85rem;
    }
    
    .vm-text {
        font-size: 1.02rem;
        max-width: 100%;
    }
    
    .vm-card.vision-card::after,
    .vm-card.mission-card::after {
        font-size: 5rem;
        bottom: -10px;
        right: -5px;
    }
}

@media (max-width: 576px) {
    .vision-mission-section {
        padding: 4rem 0;
    }
    
    .vm-card {
        padding: 2.8rem 1.6rem;
        border-radius: 20px;
    }
    
    .vm-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 2rem;
    }
    
    .vm-icon-wrapper i {
        font-size: 2.1rem;
    }
    
    .vm-badge {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.85rem;
        padding: 0.22rem 0.75rem;
    }
}

.about-counter-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--secondary);
    transition: var(--transition-fast);
}

.about-counter-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-counter-card .counter-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.about-counter-card .counter-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Services Section --- */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-soft-grey);
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-slow);
}

.service-card:hover {
    color: #ffffff !important;
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-card .icon-box {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
    transition: var(--transition-slow);
}

.service-card:hover .icon-box {
    background: var(--secondary);
    color: var(--primary);
    transform: rotateY(180deg);
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.service-card:hover h4 {
    color: var(--secondary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    transition: var(--transition-fast);
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.why-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.why-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(8, 26, 51, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.why-card:hover .icon-wrapper {
    background: var(--primary);
    color: var(--secondary);
}

.why-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Statistics Section (Dark) --- */
.statistics-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
    border-top: 4px solid var(--secondary);
    border-bottom: 4px solid var(--secondary);
    color: #ffffff;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 8rem 0;
    background-color: var(--bg-soft-grey);
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-stars {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--secondary);
}

.testimonial-author-name {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.testimonial-author-company {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.testimonials-section .carousel-indicators {
    bottom: -50px;
}

.testimonials-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
}

.testimonials-section .carousel-indicators .active {
    background-color: var(--secondary);
    transform: scale(1.3);
}

/* --- Call To Action Section --- */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1-10h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0h-9v-9h9v9zm-10 0H7v-9h9v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9zm-9-10h9v-9H7v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9H7v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    border-top: 3px solid var(--secondary);
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-brand-logo:hover {
    transform: scale(1.03);
}

.footer-about-text {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.footer-contact-info i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-right: 12px;
    margin-top: 4px;
}

.footer-contact-info span {
    line-height: 1.5;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-bottom-text {
    margin-bottom: 0;
}

.footer-bottom-text a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-bottom-text a:hover {
    text-decoration: underline;
}

/* --- Social Activities Section --- */
.social-activities-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.social-activity-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    height: 100%;
}

.social-activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.social-activity-img-wrapper {
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.social-activity-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.social-activity-card:hover .social-activity-img {
    transform: scale(1.05);
}

.social-activity-content {
    padding: 2rem 1.5rem;
}

.social-activity-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.social-activity-content h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.social-activity-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Partners & Clients Logo Slider Section
   ========================================================================== */
.partner-section {
    width: 100%;
    padding: 5rem 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.partner-section .section-title-wrapper {
    margin-bottom: 3rem;
}

/* The Slider Wrapper */
.logo-slider {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Creates a nice fade-out effect on the left and right edges */
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* The Track holding the logos */
.logo-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

/* Pause animation on hover so users can look closer */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

/* Individual Logo Styling */
.logo-slide {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.logo-slide img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: var(--transition-slow);
}

/* Vibrant hover effect */
.logo-slide img:hover {
    transform: scale(1.08);
}

/* --- Infinite Scroll Animation --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves exactly half of the cloned/dynamic track width */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-section {
        padding: 3.5rem 0;
    }

    .logo-slide {
        width: 180px;
        height: 80px;
        padding: 0 20px;
    }

    .logo-slide img {
        max-height: 45px;
    }
}

/* ==========================================================================
   Back to Top Button (Premium Glassmorphic with Circular Progress)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(8, 26, 51, 0.85);
    /* Premium Navy with Alpha */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

/* Visibility states */
.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover effects */
.back-to-top:hover {
    background: rgba(8, 26, 51, 0.95);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 12px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px) scale(1.08);
}

/* Scroll progress SVG styling */
.progress-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    /* Starts progress from the top */
    pointer-events: none;
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.progress-circle-bar {
    fill: none;
    stroke: var(--secondary);
    /* Premium gold color */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 10ms linear;
}

/* Inside arrow-up icon styling */
.arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.15rem;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Micro-animation on hover */
@media (hover: hover) {
    .back-to-top:hover .arrow-icon {
        animation: arrowUpBounce 1.2s infinite ease-in-out;
        color: var(--secondary);
    }
}

@keyframes arrowUpBounce {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -65%);
    }
}

/* Highlight/Glow near the bottom of the page */
.back-to-top.near-bottom {
    background: rgba(8, 26, 51, 0.95);
    border-color: rgba(212, 175, 55, 0.5);
    animation: pulseGoldGlow 2s infinite alternate ease-in-out;
}

@keyframes pulseGoldGlow {
    0% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.35), 0 8px 30px rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.7), 0 12px 40px rgba(0, 0, 0, 0.4);
        transform: scale(1.08);
    }
}

.back-to-top.near-bottom:hover {
    animation: none;
    /* Disable auto-pulsing when user is hovering */
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 15px 45px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .arrow-icon {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Global Reusable Utility: Premium Pulsing Badge Indicator
   ========================================================================== */
.badge-lux-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #ffdf7a 100%);
    color: #081A33 !important;
    /* Dark Navy contrast */
    border-radius: 4px;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    animation: luxBadgePulse 2s infinite ease-in-out;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-shadow: none;
    line-height: 1;
}

@keyframes luxBadgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        transform: scale(1);
    }
}

/* ==========================================================================
   Alumni Success Highlights Section Styles
   ========================================================================== */
.alumni-home-section {
    padding: 8rem 0;
    background-color: var(--bg-soft-grey);
}

.alumni-home-card {
    background-color: #ffffff;
    transition: var(--transition-slow);
}

.alumni-home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--secondary) !important;
}

.alumni-circle-initials {
    transition: transform 0.4s ease;
}

.alumni-home-card:hover .alumni-circle-initials {
    transform: scale(1.08);
}

.alumni-home-photo-frame {
    transition: transform 0.4s ease;
}

.alumni-home-card:hover .alumni-home-photo-frame {
    transform: scale(1.08);
}

.testimonial-stars {
    color: var(--secondary);
}

/* ==========================================================
   CEO Portrait Section Styles (From Reference)
   ========================================================== */
.ceo-portrait-canvas {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    z-index: 5;
    perspective: 1000px;
    animation: scaleEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gold-geometric-border {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    pointer-events: none;
    animation: spinClockwise 50s linear infinite;
    z-index: 1;
}

.portrait-glass-mask {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(2, 6, 12, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.ceo-image-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: contrast(1.02) brightness(0.95);
}

.ceo-portrait-canvas:hover .ceo-image-asset {
    transform: scale(1.05);
}

.floating-badge-metric {
    position: absolute;
    bottom: 30px;
    left: -35px;
    background: rgba(8, 26, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 8px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 4;
    animation: floatBadge 4s infinite ease-in-out alternate;
}

.badge-label-head {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bg-light);
    letter-spacing: 0.5px;
}

.badge-label-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 2px;
}

.hero-title span {
    background: linear-gradient(90deg, #BF953F, #FCF6BA, #B38728);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Animations */
@keyframes scaleEntrance {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spinClockwise {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatBadge {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-12px);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .ceo-portrait-canvas {
        max-width: 300px;
        margin-top: 2rem;
    }

    .floating-badge-metric {
        left: 10px;
        bottom: -20px;
    }
}

@media (max-width: 767.98px) {
    /* On mobile, show a smaller portrait so text+image both fit in viewport */
    .ceo-portrait-canvas {
        max-width: 240px;
        margin-top: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Keep the badge inside the portrait bounds on narrow screens */
    .floating-badge-metric {
        left: 0;
        right: 0;
        bottom: -14px;
        width: calc(100% - 16px);
        margin: 0 auto;
        justify-content: center;
        padding: 8px 14px;
        gap: 10px;
    }

    .badge-label-head {
        font-size: 0.78rem;
    }

    .badge-label-sub {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    /* Extra-small phones — reduce portrait further */
    .ceo-portrait-canvas {
        max-width: 200px;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Floating WhatsApp Widget Styles
   ========================================================================== */
.whatsapp-float-widget {
    position: fixed;
    bottom: 30px; /* Positioned at the bottom corner by default */
    right: 30px;
    display: flex;
    align-items: center;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    padding: 2px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35),
                0 0 0 2px rgba(212, 175, 55, 0.3);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                background 0.4s ease;
    overflow: hidden;
    max-width: 55px; /* Collapsed state showing only the icon circle */
    white-space: nowrap;
}

/* Dynamically shift WhatsApp widget up when the Back to Top button appears */
.back-to-top.active + .whatsapp-float-widget {
    bottom: 100px;
}

.whatsapp-icon-wrap {
    width: 51px;
    height: 51px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.whatsapp-text-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 0 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover expansion effect on desktop */
@media (min-width: 992px) {
    .whatsapp-float-widget:hover {
        max-width: 250px; /* Expands to show text */
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5),
                    0 0 0 3px rgba(212, 175, 55, 0.85);
        background: #20ba59;
    }
    
    .whatsapp-float-widget:hover .whatsapp-text-label {
        opacity: 1;
        transform: translateX(0);
    }
    
    .whatsapp-float-widget:hover .whatsapp-icon-wrap {
        transform: rotate(360deg);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float-widget {
        bottom: 30px; /* Default bottom on mobile */
        right: 20px;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3),
                    0 0 0 2px rgba(212, 175, 55, 0.3);
    }
    
    .back-to-top.active + .whatsapp-float-widget {
        bottom: 95px; /* Shift up on mobile when Back to Top appears */
    }
    
    .whatsapp-icon-wrap {
        width: 47px;
        height: 47px;
        font-size: 1.6rem;
    }
    
    .whatsapp-float-widget {
        max-width: 51px;
    }
}