/* ===================================
   Global Styles & CSS Variables
   =================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --brand-blue: #0B4A97;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Vertical rhythm — one scale used by every section */
    --section-space: 96px;
    --nav-height: 96px;
    --gap-grid: 28px;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 992px) {
    :root {
        --section-space: 72px;
        --nav-height: 84px;
        --gap-grid: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-space: 60px;
        --nav-height: 72px;
        --gap-grid: 20px;
    }
}

/* ===================================
   Company Logo
   =================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.logo-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.06);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.logo-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--brand-blue);
    letter-spacing: 1.5px;
}

.logo-subname {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1.2px;
}

@media (max-width: 992px) {
    .logo-img {
        width: 54px;
        height: 54px;
    }

    .logo-name {
        font-size: 22px;
    }

    .logo-subname {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }

    .logo-img {
        width: 46px;
        height: 46px;
    }

    .logo-name {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .logo-subname {
        font-size: 8.5px;
        letter-spacing: 0.8px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    height: var(--nav-height);
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.logo span {
    color: var(--text-dark);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("https://i.ibb.co/JjrF4Gt2/hero-section-jpg-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Fills the full viewport; padding-top reserves space for the fixed navbar
       so the visible hero content occupies exactly 100vh minus the header */
    height: 100vh;
    min-height: 480px;
    padding: var(--nav-height) 0 0;

    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.6rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

p.hero-title {
    font-size: clamp(1.5rem, 3.4vw, 2.15rem);
    margin-bottom: 1.25rem;
}

.sub-title {
    max-width: 720px;
    margin: 0 auto 2rem;
    font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    animation: bounce 2.4s var(--ease-out) infinite;
}

.scroll-indicator a:hover {
    color: var(--bg-white);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hero entrance — opacity + transform only, so nothing reflows mid-animation */
.fade-in,
.fade-in-delay-1,
.fade-in-delay-2,
.fade-in-delay-3 {
    animation: fadeIn 0.7s var(--ease-out) both;
}

.fade-in-delay-1 {
    animation-delay: 0.12s;
}

.fade-in-delay-2 {
    animation-delay: 0.24s;
}

.fade-in-delay-3 {
    animation-delay: 0.36s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ===================================
   Section Styles
   =================================== */
section {
    padding: var(--section-space) 0;
    scroll-margin-top: var(--nav-height);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

.section-title,
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.title-underline {
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.section-subtitle,
.section-header>p {
    font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
    line-height: 1.7;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-photo-frame {
    width: 100%;
    /* The gallery shots are all portrait, so the frame is too — capped in
       width so it stays in proportion with the text column beside it */
    max-width: 440px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Slides are stacked in place and parked off-frame to the LEFT, so every
   transition travels left → right: the incoming slide moves -100% → 0 while
   the outgoing one continues 0 → +100%. Keep SLIDE_MS in main.js in sync
   with this duration. */
.about-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease-out);
}

.about-carousel img.is-active {
    transform: translateX(0);
}

.about-carousel img.is-leaving {
    transform: translateX(100%);
}

/* Used for the instant re-park back to the left, which must never animate */
.about-carousel img.no-transition {
    transition: none;
}

.about-badge {
    position: absolute;
    left: 24px;
    bottom: -22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-badge i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    font-size: 1.1rem;
}

.about-badge span {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-light);
    white-space: nowrap;
}

.about-badge strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.0625rem;
    color: var(--brand-blue);
}

.about-text h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-grid);
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-item i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.stat-item h4 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-grid);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 1.875rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 1.1875rem;
    line-height: 1.35;
    /* Two-line reserve keeps icon-to-body spacing equal across cards */
    min-height: 3.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Pins every "Learn More" to the same baseline regardless of copy length */
.service-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-link i {
    transition: transform var(--transition-base);
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ===================================
   Portfolio / Gallery
   =================================== */
.portfolio {
    background: #f8fbff;
}

.portfolio-grid {
    display: grid;
    gap: var(--gap-grid);
}

/* Fixed column counts so the last row is never a pair of stretched cards */
.portfolio-grid--partners {
    grid-template-columns: repeat(4, 1fr);
}

.portfolio-grid--gallery {
    grid-template-columns: repeat(3, 1fr);
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    background: var(--bg-white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.portfolio-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 74, 151, 0.94), rgba(11, 74, 151, 0.78));
    color: #fff;
    text-align: center;
    padding: 16px 14px;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-out);
}

.portfolio-overlay h3 {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin: 0;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(11, 74, 151, 0.18);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-visible .portfolio-overlay {
    transform: translateY(0);
}

/* 8 partners: 4 -> 2 -> 1. A 3-column step would leave a stretched pair
   on the last row, which is what made the grid look lopsided. */
@media (max-width: 860px) {

    .portfolio-grid--partners,
    .portfolio-grid--gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--bg-white);
}

.testimonials-slider {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    /* Horizontal clip only — vertical padding keeps card shadows from being cut */
    overflow-x: clip;
    padding: 12px 0;
}

.testimonial-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.55s var(--ease-out);
    will-change: transform;
}

.testimonial-card {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.author-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--brand-blue);
    box-shadow: 0 8px 20px rgba(11, 74, 151, 0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-content {
    position: relative;
    margin-bottom: 0;
}

.quote-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    opacity: 0.25;
    margin-bottom: 0.75rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    /* Equal height across slides so the track doesn't resize between cards */
    min-height: 5.4em;
}

.testimonial-author {
    margin-top: 1.25rem;
}

.testimonial-author h4 {
    color: var(--brand-blue);
    font-size: 1.1875rem;
    margin: 0;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.625rem;
    font-size: 0.9375rem;
}

.testimonial-rating i {
    color: var(--accent-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* ===========================
      TEAM SECTION
=========================== */

.team {
    background: #f7fbff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-grid);
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(11, 74, 151, 0.16);
}

.team-image {
    display: flex;
    justify-content: center;
    margin: 0 0 1.25rem;
}

/* Square box + object-fit — never distorts into an ellipse on narrow screens */
.team-image img {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--brand-blue);
    box-shadow: 0 8px 20px rgba(11, 74, 151, 0.2);
    transition: transform var(--transition-base);
}

.team-card:hover .team-image img {
    transform: scale(1.04);
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
}

.team-info h3 {
    color: var(--brand-blue);
    margin-bottom: 0.375rem;
    font-size: 1.1875rem;
    line-height: 1.3;
}

.team-info span {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    /* Exactly two lines (2 x 1.5em) so one- and two-line roles keep the
       social rows on the same baseline across all four cards */
    min-height: 3em;
    display: flex;
    align-items: center;
}

.team-social {
    margin-top: 1.125rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    text-decoration: none;
    transition: background var(--transition-base), transform var(--transition-base);
}

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

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* WHY CHOOSE US */

.why-us {
    background: linear-gradient(135deg, #f5f9ff, #ffffff);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-grid);
}

.why-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* scaleX instead of animating `left` — no layout work per frame */
.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
}

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

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(11, 74, 151, 0.16);
}

.why-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    transition: transform var(--transition-base);
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

.why-card h3 {
    color: var(--brand-blue);
    margin-bottom: 0.625rem;
    font-size: 1.0625rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* 8 cards: 4 -> 2 -> 1, so every row stays full */
@media (max-width: 860px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    /* Was layered over a missing images/contact-bg.jpg and pinned with
       background-attachment:fixed, which stutters badly while scrolling */
    background: linear-gradient(135deg, #0f5cb8 0%, var(--brand-blue) 55%, #093a78 100%);
    background-size: cover;
    background-position: center;
}

.contact .section-title,
.contact .section-subtitle {
    color: #fff;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.contact-info h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    margin-bottom: 0.75rem;
    color: #fff;
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 1.75rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 30px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

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

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base), transform var(--transition-base);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.contact-form-wrapper h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    /* No scale/box-shadow bloom on focus — it made fields twitch */
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--error-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    display: block;
}

.error-message {
    display: block;
    color: #ffd7d7;
    font-size: 0.8125rem;
    line-height: 1.3;
    margin-top: 0.375rem;
    /* Reserved so showing an error doesn't shove the form down */
    min-height: 1.1rem;
}

.send-btn {
    width: 100%;
    padding: 15px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.send-btn:hover {
    transform: translateY(-2px);
    background: #1ebe5d;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.3);
}

.send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: var(--success-color);
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: var(--error-color);
    display: block;
}

/* ===================================
   Floating action buttons
   Stacked in one right-hand rail so they never sit on top of each other
   =================================== */
.whatsapp-float {
    position: fixed;
    width: 54px;
    height: 54px;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    z-index: 998;
    transition: background var(--transition-base), transform var(--transition-base);
}

.whatsapp-float:hover {
    background: #1EBE5D;
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 23px;
        bottom: 18px;
        right: 18px;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3.5rem 0 1.75rem;
}

/* Explicit tracks: a wide "about" column plus three link columns.
   auto-fit + minmax used to reflow into ragged rows at odd widths. */
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    font-size: 1.1875rem;
    line-height: 1.35;
    margin-bottom: 0.875rem;
}

.footer-section h4 {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.625rem;
}

.footer-section ul li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-base), transform var(--transition-base);
}

/* translateX rather than padding-left, so hovering doesn't reflow the list */
.footer-section ul li a:hover {
    color: var(--bg-white);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-base), transform var(--transition-base);
}

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

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Statistics Section ===== */

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-grid);
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004AAD, #0B4A97, #1E88E5);
    color: #fff;
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 74, 173, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Sheen sweep driven by transform instead of top/left offsets */
.stat-box::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
    transform: translateX(-60%);
    transition: transform 0.7s var(--ease-out);
    pointer-events: none;
}

.stat-box:hover::before {
    transform: translateX(60%);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 74, 173, 0.38);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-text {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        margin-bottom: 2.25rem;
        padding-bottom: 2.25rem;
    }
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
}

.newsletter-form input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.newsletter-form button {
    padding: 11px 18px;
    border: none;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-bottom i {
    color: var(--error-color);
}

@media (max-width: 640px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ===================================
   Back to Top Button
   =================================== */
/* Sits above the WhatsApp bubble in the same rail — the two used to overlap */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 998;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base),
        visibility var(--transition-base), background var(--transition-base);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 76px;
        right: 18px;
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {

    /* Drawer starts below the navbar and fills exactly the rest of the screen */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s var(--ease-out);
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* Stacked layout: a full-height portrait frame would push the copy far
       down the page, so cap it and let the badge clear the heading below */
    .about-photo-frame {
        max-width: 380px;
    }

    .about-image {
        margin-bottom: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .services-grid,
    .about-stats,
    .portfolio-grid--partners,
    .portfolio-grid--gallery,
    .why-grid,
    .team-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
    }
}

/* ===================================
   Animation Classes
   =================================== */
.animate-on-scroll {
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

/* Only the pre-reveal state carries a transform. If `.animated` set
   `transform: translateY(0)` it would outrank every card's :hover lift,
   and the script strips both classes once the reveal has finished. */
.animate-on-scroll:not(.animated) {
    opacity: 0;
    transform: translateY(20px);
}

/* Cards inside a grid reveal in sequence rather than all at once */
.animate-on-scroll[data-reveal-index="1"] {
    transition-delay: 0.06s;
}

.animate-on-scroll[data-reveal-index="2"] {
    transition-delay: 0.12s;
}

.animate-on-scroll[data-reveal-index="3"] {
    transition-delay: 0.18s;
}

/* ===================================
   Loading States
   =================================== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

/* Visible to screen readers only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* =========================================
   BIRKAUSALYA WEBSITE LOADER
========================================= */

#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 50%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .5s ease, visibility .5s ease;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: loaderContent .8s ease-out;
}

.loader-logo {
    width: 130px;
    height: 130px;
    margin: 0 auto 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: loaderLogo 2.4s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-content h2 {
    margin: 5px 0;
    color: #0B4A97;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 3px;
}

.loader-content p {
    margin: 0 0 25px;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.loader-spinner {
    width: 45px;
    height: 45px;
    margin: 10px auto 20px;
    border: 4px solid #dcecff;
    border-top: 4px solid #0B4A97;
    border-right: 4px solid #1976D2;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

.loader-progress {
    width: 220px;
    height: 5px;
    margin: 20px auto 12px;
    background: #dcecff;
    border-radius: 20px;
    overflow: hidden;
}

/* Runs to 100% just before the loader is dismissed — it used to be a 2.5s
   animation on a screen that disappeared after 1.2s, so it never filled */
.loader-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0B4A97, #1976D2);
    border-radius: 20px;
    transform-origin: left center;
    animation: loaderProgress 1.1s var(--ease-out) forwards;
}

.loader-content small {
    color: #777;
    font-size: 13px;
}


/* Logo floating animation */

@keyframes loaderLogo {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.04);
    }

}


/* Spinner */

@keyframes loaderSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* Progress bar */

@keyframes loaderProgress {

    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }

}


/* Content entrance */

@keyframes loaderContent {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.95);
    }

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

}


/* Mobile */

@media(max-width:600px) {

    .loader-logo {
        width: 105px;
        height: 105px;
    }

    .loader-content h2 {
        font-size: 24px;
    }

    .loader-content p {
        font-size: 11px;
    }

    .loader-progress {
        width: 180px;
    }

}

/* =========================================
   SECTION BACKGROUND RHYTHM
   Alternating grounds so consecutive sections read as separate blocks
========================================= */

#gallery {
    background: var(--bg-white);
}


/* =========================================
   CONTACT INFORMATION CARDS
========================================= */

.contact-details .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 14px;
    transition: background var(--transition-base), transform var(--transition-base);
}

.contact-details .contact-item:last-child {
    margin-bottom: 0;
}

.contact-details .contact-item:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(6px);
}

.contact-details .contact-item i {
    font-size: 18px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.contact-details .contact-item h4 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contact-details .contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

.contact-details .contact-item a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-details .contact-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}


/* =========================================
   ABOUT SECTION LOTTIE
========================================= */

/* Lives between the header and the content grid, so the header keeps a
   normal text-block margin instead of wrapping a 360px animation */
.about .section-header {
    margin-bottom: 1.5rem;
}

.about-animation {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-animation dotlottie-wc {
    width: 300px;
    height: 300px;
    max-width: 100%;
}


/* =========================================
   CARD TEXT HOVER
========================================= */

.service-card h3,
.why-card h3,
.team-info h3,
.portfolio-overlay h3,
.testimonial-author h4 {
    transition: color var(--transition-base);
}

.service-card:hover h3,
.why-card:hover h3,
.team-card:hover h3 {
    color: var(--brand-blue);
}


/* =====================================================
   RESPONSIVE
   One ladder of breakpoints: 992 / 768 / 600 / 480
===================================================== */

/* ---------- TABLET ---------- */

@media (max-width: 992px) {

    .container {
        padding: 0 24px;
    }

    .nav-menu {
        gap: 1.25rem;
    }

    .nav-menu .nav-link {
        font-size: 0.9375rem;
    }

    .hero {
        min-height: 480px;
        height: 100vh;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 18px;
    }

    .hero {
        min-height: 480px;
        height: 100vh;
        padding: var(--nav-height) 0 32px;
        /* Narrow crop loses the center of the photo; shift the focal point
           right so the students stay in frame instead of Mt. Fuji */
        background-position: 65% center;
    }

    .hero-content {
        text-align: center;
    }

    .sub-title {
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .scroll-indicator {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 1.25rem 0.5rem;
    }

    .stat-item i {
        font-size: 1.25rem;
    }

    .stat-item p {
        font-size: 0.8125rem;
    }

    /* Card headings drop their reserved height — one column, nothing to align */
    .service-card h3,
    .why-card h3,
    .team-info span {
        min-height: 0;
        display: block;
    }

    .testimonial-content p {
        min-height: 0;
    }

    /* Overlay caption stays visible: there is no hover on touch devices */
    .portfolio-overlay {
        position: static;
        transform: none;
        background: var(--brand-blue);
    }

    .portfolio-item:hover {
        transform: none;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .btn {
        min-height: 48px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    footer .footer-section {
        text-align: center;
    }

    .footer-social,
    .newsletter-form {
        justify-content: center;
    }
}


/* ---------- SMALL PHONES ---------- */

@media (max-width: 600px) {

    .about-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-item {
        flex-direction: row;
        gap: 0.875rem;
        justify-content: center;
        padding: 1rem;
    }

    .stat-item i {
        margin-bottom: 0;
    }

    .stat-item h4 {
        margin-bottom: 0;
    }

    .about-animation dotlottie-wc {
        width: 240px;
        height: 240px;
    }
}


@media (max-width: 480px) {

    .container {
        padding: 0 16px;
    }

    .testimonial-card {
        padding: 1.5rem 1.125rem;
    }

    .author-avatar {
        width: 76px;
        height: 76px;
    }

    .contact-details .contact-item {
        padding: 12px;
        gap: 12px;
    }
}


/* =========================================
   REDUCED MOTION
   Honour the OS setting: no reveals, no drift, no infinite loops
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}