/* =========================================
   CSS VARIABLES & THEMING
   ========================================= */
:root {
    --primary-color: #0056b3;
    /* Professional Blue */
    --primary-hover: #004494;
    --text-main: #1a1a1a;
    /* Black */
    --text-light: #4a4a4a;
    /* Dark Gray */
    --bg-main: #ffffff;
    /* White */
    --bg-light: #f8f9fa;
    /* Light Gray */
    --border-color: #e9ecef;
    --white: #ffffff;
    --black: #000000;
    --whatsapp: #25D366;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 86, 179, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

/* =========================================
   GLOBAL STYLES & RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 80px 0;
}

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

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 40px;
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #25D366;
    color: #fff;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45);
    background: #22c35e;
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* Footer Call Button */
.btn-footer-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-footer-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.btn-footer-call i {
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* =========================================
   LOADING ANIMATION
   ========================================= */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
}

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

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-icon {
    display: none;
}

.nav-menu {
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* =========================================
   LANGUAGE TOGGLE
   ========================================= */
.lang-toggle-btn {
    background: rgba(14, 116, 144, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(14, 116, 144, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 20px;
}

.lang-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: #EEF5FF;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Background Abstract Shapes */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.hero::before {
    width: 400px;
    height: 400px;
    background: rgba(0, 86, 179, 0.05);
    top: -100px;
    right: -100px;
}

.hero::after {
    width: 300px;
    height: 300px;
    background: rgba(0, 0, 0, 0.03);
    bottom: -50px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-contact {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-contact i {
    color: var(--whatsapp);
    font-size: 1.3rem;
}

.rounded-img {
    border-radius: var(--radius-lg);
}

.hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
    border-radius: var(--radius-lg);
}

.hero-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-img {
    flex: 0 0 100%;
    scroll-snap-align: center;
    object-fit: cover;
}

/* ── Floating blobs (CSS) ── */
.blob-wrap {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: blobFloat linear infinite;
    will-change: transform;
}

.blob:nth-child(1) {
    width: 520px;
    height: 520px;
    background: #5B8DEF;
    top: -120px;
    left: -80px;
    animation-duration: 22s;
    animation-delay: 0s;
}

.blob:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #A78BFA;
    top: 30%;
    right: -100px;
    animation-duration: 28s;
    animation-delay: -8s;
}

.blob:nth-child(3) {
    width: 460px;
    height: 460px;
    background: #34D399;
    bottom: -80px;
    left: 20%;
    animation-duration: 25s;
    animation-delay: -4s;
}

.blob:nth-child(4) {
    width: 300px;
    height: 300px;
    background: #F472B6;
    top: 55%;
    left: 10%;
    animation-duration: 32s;
    animation-delay: -12s;
}

.blob:nth-child(5) {
    width: 350px;
    height: 350px;
    background: #FBBF24;
    top: 15%;
    left: 45%;
    animation-duration: 19s;
    animation-delay: -6s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(40px, 20px) scale(1.08);
    }

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

/* ── Grid shimmer overlay ── */
.grid-shimmer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(21, 101, 192, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 101, 192, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    width: 20px;
    border-radius: 5px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-main);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

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

.service-card:hover::before {
    height: 5px;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* =========================================
   WHY CHOOSE US SECTION
   ========================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.why-card {
    background-color: var(--bg-main);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-card h4 {
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

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

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-actions {
    margin-top: 30px;
}

.contact-form {
    background-color: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.5;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #111;
    color: var(--white);
    padding: 30px 0 0; /* Reduced top/bottom padding */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Reduced bottom margin */
    flex-wrap: wrap;
    gap: 15px; /* Reduced gap */
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 2px; /* Tightened space */
    line-height: 1.2;
}

.footer-brand p {
    color: #999;
    margin-bottom: 0;
    line-height: 1.4; /* Tighter lines */
}

.footer-social {
    display: flex;
    gap: 15px;
}

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

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

.footer-bottom {
    text-align: center;
    padding: 10px 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* =========================================
   FLOATING ELEMENTS
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--text-main);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   MOBILE BOTTOM NAVIGATION (Independent Element)
   ========================================= */
.mobile-bottom-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    padding-bottom: 0;
}

.mob-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 3px;
    color: #aaa;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.mob-nav-link i {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.mob-nav-link.active {
    color: var(--primary-color);
}

.mob-nav-link.active i {
    transform: translateY(-2px);
}

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

/* Scale pop in */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    70% {
        transform: scale(1.03) translateY(-3px);
    }

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

/* Gentle float for logo/image */
@keyframes floatY {

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

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

/* Shimmer sweep on buttons */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* WhatsApp pulse ring */
@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Icon bounce on mobile nav tap */
@keyframes navBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-7px);
    }

    60% {
        transform: translateY(2px);
    }

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

/* Stagger fade-in variants */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* =========================================
   HERO ANIMATIONS (Mobile-first)
   ========================================= */
.hero-content h1 {
    animation: slideInLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content .subtitle {
    animation: slideInLeft 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-buttons {
    animation: slideInLeft 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-image img {
    animation: floatY 6s ease-in-out infinite;
}

/* =========================================
   BUTTON SHIMMER EFFECT
   ========================================= */
.btn-primary,
.btn-whatsapp {
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after,
.btn-whatsapp:hover::after {
    left: 140%;
}

/* =========================================
   SERVICE CARD STAGGER
   ========================================= */
.service-card.visible {
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.service-card:nth-child(1).visible {
    animation-delay: 0s;
}

.service-card:nth-child(2).visible {
    animation-delay: 0.07s;
}

.service-card:nth-child(3).visible {
    animation-delay: 0.14s;
}

.service-card:nth-child(4).visible {
    animation-delay: 0.21s;
}

.service-card:nth-child(5).visible {
    animation-delay: 0.28s;
}

.service-card:nth-child(6).visible {
    animation-delay: 0.35s;
}

.service-card:nth-child(7).visible {
    animation-delay: 0.42s;
}

.service-card:nth-child(8).visible {
    animation-delay: 0.49s;
}

/* =========================================
   WHY-CARD SLIDE ALTERNATE
   ========================================= */
.why-card:nth-child(odd).visible {
    animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.why-card:nth-child(even).visible {
    animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.why-card:nth-child(1).visible {
    animation-delay: 0s;
}

.why-card:nth-child(2).visible {
    animation-delay: 0.1s;
}

.why-card:nth-child(3).visible {
    animation-delay: 0.2s;
}

.why-card:nth-child(4).visible {
    animation-delay: 0.3s;
}

/* =========================================
   FLOATING WHATSAPP PULSE
   ========================================= */
.floating-whatsapp {
    animation: pulseRing 2.5s ease-out infinite;
}

.floating-whatsapp:hover {
    animation: none;
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* =========================================
   MOBILE BOTTOM NAV ACTIVE BOUNCE
   ========================================= */
.mob-nav-link.bounce i {
    animation: navBounce 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* =========================================
   SECTION TITLE UNDERLINE GROW
   ========================================= */
.title-underline {
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible~.title-underline,
.title-underline.visible {
    width: 60px;
}

/* =========================================
   ANIMATIONS (SCROLL FADE IN)
   ========================================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.delay-3 {
    transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-contact {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
    }

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

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    /* Enough space so bottom nav never overlaps page content */
    body {
        padding-bottom: 75px;
    }

    /* Show the mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Hide the desktop nav inside the header */
    .nav-menu {
        display: none;
    }

    /* Center the logo in header on mobile */
    .nav-container {
        justify-content: center;
    }

    .logo-text {
        display: none;
    }

    .logo img {
        height: 42px;
    }

    /* Float buttons above the bottom nav */
    .floating-whatsapp {
        bottom: 80px;
        left: 15px;
    }

    .back-to-top {
        bottom: 80px;
        right: 15px;
    }

    /* Footer extra space */
    .footer {
        padding-bottom: 10px; /* Reduced to avoid large gap above bottom nav */
    }

    /* Show the standalone mobile bottom nav */
    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Hero font adjustments */
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer Centering */
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    .footer-links, .footer-services {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-bottom {
        text-align: center;
        padding: 15px 0;
    }

    .footer-contact-row {
        justify-content: center;
    }

    section {
        padding: 50px 0;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-social {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

    /* Remove extra space that might look like a gap */
    .footer {
        padding-top: 30px;
        padding-bottom: 0;
    }

    body {
        padding-bottom: 65px; /* Match height of mobile nav exactly */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}