:root {
    /* Primary Colors */
    --primary-blue: #2196F3;
    --navy-dark: #1A237E;
    --light-blue-bg: #F0F7FF;
    --white: #FFFFFF;
    --whatsapp-green: #25D366;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;

    /* UI Tokens */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy-dark);
}

ul {
    list-style: none;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-content i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.loader-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
}

/* Hero Content Entrance */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Announcement Banner */
.announcement-banner {
    background: var(--navy-dark);
    color: white;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navbar */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
    /* Entrance animation state */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.active {
    opacity: 1;
    transform: translateY(0);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-blue);
}

.logo i {
    color: var(--primary-blue);
}

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

.nav-links a {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-dark);
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.whatsapp-btn {
    background: var(--whatsapp-green);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 5% 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--light-blue-bg) 0%, #ffffff 100%);
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.phone-display {
    margin-top: 24px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 90%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-medium);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.services,
.about,
.team,
.testimonials,
.contact,
footer {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.services {
    padding: 100px 5%;
    text-align: center;
}

.section-tag {
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: block;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    /* Fade delay logic */
    transition-delay: calc(0.1s * var(--order, 0));
}

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

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

/* About */
.about {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--light-blue-bg);
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.about-content {
    flex: 1;
}

/* Team */
.team {
    padding: 100px 5%;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: white;
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.team-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid var(--light-blue-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-card .whatsapp-btn {
    background: var(--light-blue-bg);
    color: var(--primary-blue) !important;
    border: 1px solid var(--primary-blue);
    margin-top: 20px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 10px 20px;
    width: 100%;
}

.service-card .whatsapp-btn:hover {
    background: var(--primary-blue);
    color: white !important;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.25);
}

/* Testimonials */
.testimonials {
    padding: 100px 5%;
    background: var(--navy-dark);
    color: white;
    text-align: center;
}

.testimonials h2 {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: var(--radius-lg);
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

/* Contact */
.contact {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

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

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

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.submit-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Footer */
footer {
    padding: 100px 5% 40px;
    background: #0a0f2c;
    color: white;
    border-top: none;
}

footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

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

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

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

/* Responsive Header / Hero */
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* --- Premium Mobile Menu Upgrade --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2000;
    transition: var(--transition);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--navy-dark);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-blue);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-blue);
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Updated Responsive Design */
@media (max-width: 968px) {
    nav {
        padding: 15px 5%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-links a {
        font-size: 2rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        color: var(--navy-dark);
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered text reveal */
    .nav-links.active li:nth-child(1) a {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) a {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) a {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) a {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) a {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) a {
        transition-delay: 0.6s;
    }

    .nav-cta {
        display: none;
        /* Hide top CTA on mobile */
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 5%;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        max-width: 100%;
        height: 300px;
        border-radius: var(--radius-lg);
        animation: none;
        /* Remove morph for mobile performance */
    }

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

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .about {
        flex-direction: column;
        gap: 40px;
    }

    .about-image img {
        height: 300px;
        object-fit: cover;
    }

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

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

    .info-item {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-grid div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

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

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

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