/* ===================================
   NUTRI GENE CLINIC - MAIN STYLESHEET
   One Diet Doesn't Fit All
   Enhanced with Animations & Anti-Cutoff Protocol
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary Colors from Logo */
    --primary-blue: #2AABE2;
    --primary-blue-dark: #1E8BBF;
    --primary-blue-light: #5BC4ED;
    --primary-green: #A4A424;
    --primary-green-dark: #8B8E1B;
    --primary-green-light: #C4C44D;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --light-gray: #E8EDEF;
    --gray: #6C757D;
    --dark: #1A1A2E;
    --dark-soft: #2D2D44;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(42, 171, 226, 0.92), rgba(164, 164, 36, 0.88));
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-soft) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(42, 171, 226, 0.3), rgba(164, 164, 36, 0.3));

    /* Typography */
    --font-primary: 'Cairo', 'Segoe UI', sans-serif;
    --font-english: 'Poppins', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow-blue: 0 0 30px rgba(42, 171, 226, 0.4);
    --shadow-glow-green: 0 0 30px rgba(164, 164, 36, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Header Height */
    --header-height: 85px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* Prevent horizontal scroll causing cutoff */
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    direction: rtl;
    width: 100%;
    /* Changed from 100vw to prevent scrollbar width issues */
    position: relative;
    padding-top: var(--header-height);
    overflow-x: hidden;
    /* Essential to stop particles/animations from widening page */
}

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

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: widthPulse 2s ease-in-out infinite;
}

@keyframes widthPulse {

    0%,
    100% {
        width: 100px;
    }

    50% {
        width: 130px;
    }
}

.section-title p {
    color: var(--gray);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 25px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1EBE54;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ---------- Header & Navigation (Anti-Cutoff Protocol) ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Changed from 100vw to prevent horizontal scroll/cutoff */
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    padding: 12px 0;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-normal);
}

.header.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    position: relative;
    padding: 8px 0;
    font-size: 1rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-cta .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 100000;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition-normal);
}

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

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

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

/* ---------- NEW Hero Section - Premium Design ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

/* Animated DNA Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 14s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 0.5s;
    animation-duration: 17s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 3.5s;
    animation-duration: 12s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: 60px 0;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.8s ease;
}

.hero-badge i {
    color: var(--primary-green-light);
    font-size: 1.1rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text h1 .highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, #D4D44D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 20px;
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tagline .en {
    font-family: var(--font-english);
    color: var(--primary-green-light);
}

.hero-description {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.9;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-logo-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
}

.hero-logo-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-green-light);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-green-light);
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-logo-image {
    position: relative;
    z-index: 2;
    width: 200px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

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

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

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .container {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 8px;
    font-weight: 500;
}

/* ---------- About Section ---------- */
.about {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 171, 226, 0.08) 0%, transparent 70%);
    animation: moveBlob 15s ease-in-out infinite;
}

@keyframes moveBlob {

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

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
    transition: var(--transition-slow);
}

.about-image:hover::before {
    transform: translate(10px, 10px);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    z-index: -1;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.about-content h3 {
    font-size: 2.3rem;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.4;
}

.about-content h3 span {
    color: var(--primary-blue);
    position: relative;
}

.about-content h3 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 10px;
    background: rgba(42, 171, 226, 0.2);
    z-index: -1;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

/* ---------- Services Section - 8 Cards (4x2) ---------- */
.services {
    background: var(--white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-glow);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: var(--transition-slow);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-card:hover::after {
    width: 300px;
    height: 300px;
}

.service-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, rgba(42, 171, 226, 0.1), rgba(164, 164, 36, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-blue);
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-glow-blue);
}

.service-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* QMR Highlight Card */
.service-card.highlight {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    grid-column: span 2;
}

.service-card.highlight::before {
    background: rgba(255, 255, 255, 0.3);
}

.service-card.highlight .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-card.highlight:hover .service-icon {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.service-card.highlight h4,
.service-card.highlight p {
    color: var(--white);
}

.service-card.highlight p {
    opacity: 0.95;
}

.service-card.highlight .new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.05);
    }
}

/* ---------- QMR Feature Section ---------- */
.qmr-section {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.qmr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

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

.qmr-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.qmr-content h3 span {
    color: var(--primary-green-light);
    text-shadow: 0 0 30px rgba(164, 164, 36, 0.5);
}

.qmr-content .tagline {
    font-size: 1.2rem;
    color: var(--primary-blue-light);
    margin-bottom: 25px;
    font-weight: 500;
    font-family: var(--font-english);
}

.qmr-content p {
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.qmr-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-10px);
}

.benefit-item i {
    color: var(--primary-green-light);
    font-size: 1.3rem;
}

.qmr-image {
    position: relative;
}

.qmr-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.qmr-image:hover img {
    transform: scale(1.03);
}

.qmr-image::before {
    content: 'QMR';
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

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

/* ---------- Contact Section ---------- */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 35px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item .icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.contact-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-blue);
}

.contact-item .details h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-item .details p,
.contact-item .details a {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item .details a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray);
    transition: var(--transition-bounce);
}

.social-links a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-glow-blue);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 450px;
    transition: var(--transition-slow);
}

.contact-map:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-logo img {
    height: 55px;
    filter: brightness(0) invert(1);
    transition: var(--transition-normal);
}

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

.footer-text {
    text-align: center;
    flex: 1;
}

.footer-text p {
    opacity: 0.75;
    font-size: 0.95rem;
}

.footer-text .tagline {
    color: var(--primary-green-light);
    font-style: italic;
    margin-top: 5px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    opacity: 0.75;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-blue-light);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--white);
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary-blue-light);
}

/* ---------- Floating Buttons (Anti-Cutoff Protocol) ---------- */
/* WhatsApp - RIGHT Side */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    transition: var(--transition-bounce);
    z-index: 99998;
    animation: pulseWhatsapp 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsapp {

    0%,
    100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 5px 40px rgba(37, 211, 102, 0.7);
        transform: scale(1.05);
    }
}

/* Scroll Top - LEFT Side */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-bounce);
    z-index: 99998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.scroll-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

/* ---------- Animations for Elements ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for grid items */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.services-grid .service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.services-grid .service-card:nth-child(6) {
    transition-delay: 0.6s;
}

.services-grid .service-card:nth-child(7) {
    transition-delay: 0.7s;
}

.services-grid .service-card:nth-child(8) {
    transition-delay: 0.8s;
}

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

    .service-card.highlight {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-description {
        max-width: 100%;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-logo-container {
        width: 280px;
        height: 280px;
    }

    .hero-logo-image {
        width: 160px;
    }

    .hero-stats .container {
        gap: 50px;
    }

    .about-grid,
    .qmr-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        /* Anti-Cutoff Protocol: Adjusted header height for mobile */
        --header-height: 95px;
    }

    .section {
        padding: 70px 0;
    }

    /* Anti-Cutoff Protocol: Header comfortable padding */
    .header {
        padding: 12px 0;
    }

    /* Anti-Cutoff Protocol: Logo minimum 80px height for brand identity */
    .logo img {
        height: 80px;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 25px;
        gap: 25px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

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

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 0;
        border-bottom: 1px solid var(--light-gray);
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stats .container {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .service-card.highlight {
        grid-column: span 1;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
        padding: 14px 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Anti-Cutoff Protocol: Floating Buttons - Large (70px) with animation */
    .whatsapp-float {
        bottom: 25px;
        right: 20px;
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .scroll-top {
        bottom: 25px;
        left: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .qmr-image::before {
        top: -10px;
        right: -10px;
        padding: 10px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        /* Anti-Cutoff Protocol: Even on smallest screens, maintain proper header */
        --header-height: 90px;
    }

    /* Anti-Cutoff Protocol: Logo MUST be at least 80px for brand identity */
    .logo img {
        height: 80px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-logo-container {
        width: 220px;
        height: 220px;
    }

    .hero-logo-image {
        width: 130px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .service-card {
        padding: 28px 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-item .icon {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    /* Anti-Cutoff Protocol: Maintain large buttons on small screens */
    .whatsapp-float {
        bottom: 20px;
        right: 15px;
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .scroll-top {
        bottom: 20px;
        left: 15px;
        width: 55px;
        height: 55px;
    }
}