/* ============================
   CHIPLEVEL SOLUTION - STYLE.CSS
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --white: #ffffff;
    --light: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-mid: #444;
    --text-light: #777;
    --border: #e5e7eb;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
}

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

.bg-white {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand-logo {
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.brand-primary {
    color: var(--primary);
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
}

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

.nav-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.nav-call-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.hero-bg-anim {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    background: url('https://images.unsplash.com/photo-1588872657578-7efd1f1555ed?w=1400&fit=crop') center/cover no-repeat;
    opacity: 0.15;
    animation: zoomBg 20s infinite alternate linear;
}

@keyframes zoomBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(15, 52, 96, 0.5) 0%, transparent 50%);
    z-index: 0;
    animation: pulseOverlay 8s infinite alternate ease-in-out;
}

@keyframes pulseOverlay {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-tagline {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    animation: floatingTag 3s ease-in-out infinite;
}

.hero-tagline:nth-child(2) {
    animation-delay: 1.5s;
}

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

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

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

.hero-content h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;

    background: linear-gradient(90deg, #fff, #ecfdf5, #a7f3d0, #fff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 8s infinite linear;
}

@keyframes textShine {
    0% {
        background-position: 100% 50%;
    }

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

.hero-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    padding: 16px 36px;
    border-radius: 50px;
    animation: heroPulse 1.4s infinite;
    transition: background 0.2s;
}

.btn-primary-call:hover {
    background: var(--primary-dark);
}

@keyframes heroPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(16, 185, 129, 0);
        transform: scale(1.04);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: 50px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.service-info {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.service-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.service-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.service-call-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}

/* ===== BRANDS BAR ===== */
.brands-section {
    background: var(--white);
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brands-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brands-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brands-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.brands-grid span {
    font-size: 18px;
    font-weight: 900;
    color: #cbd5e1;
    transition: color 0.3s;
    user-select: none;
}

.brands-grid span:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .brands-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

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

.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.why-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.achievement-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-3px);
}

.achievement-num {
    display: block;
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-mid);
    font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.contact-icon-wrap.primary {
    background: var(--primary);
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-card a,
.contact-card p {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--primary);
}

/* ===== DISCLAIMER ===== */
.disclaimer-section {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

.disclaimer-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.disclaimer-section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
    max-width: 800px;
}

.disclaimer-section strong {
    color: var(--text-mid);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    color: white;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s;
    text-transform: uppercase;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li,
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-info-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.contact-info-list span {
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== FLOATING BUTTONS ===== */
.fab-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-call,
.fab-whatsapp {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.fab-call {
    background: var(--primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    animation: fabPop 0.5s ease 1s both, fabBounce 1.6s ease 1.5s infinite;
    position: relative;
}

.fab-whatsapp {
    background: #25d366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    position: relative;
}

.fab-call:hover,
.fab-whatsapp:hover {
    transform: scale(1.1);
}

.fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}

.fab-icon svg {
    width: 32px;
    height: 32px;
}

.fab-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ripple 1.6s infinite;
}

.fab-ripple.delay {
    animation-delay: 0.6s;
}

@keyframes fabBounce {

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

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

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

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

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

/* Section heading animated red underline */
.section-header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.7s ease;
}

.section-header h2.line-visible::after {
    width: 60px;
}

/* Shimmer on service call buttons */
.service-call-btn {
    position: relative;
    overflow: hidden;
}

.service-call-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -80%;
    }

    100% {
        left: 160%;
    }
}

/* Stagger fade-in delays for cards */
.service-card:nth-child(1) {
    transition-delay: 0s;
}

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

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

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

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

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

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

/* Achievement number pulse on reveal */
@keyframes countPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
    }

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

.achievement-num.pop {
    animation: countPop 0.6s ease forwards;
}

/* Why-us icon bounce */
.why-card:hover .why-icon {
    animation: bounce 0.5s ease;
}

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

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

    70% {
        transform: translateY(-5px);
    }

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

/* Navbar animated border bottom on scroll */
.navbar.scrolled {
    border-bottom: 2px solid var(--primary);
}

/* Contact card icon spin on hover */
.contact-card:hover .contact-icon-wrap {
    animation: spin 0.5s ease;
}

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

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

/* FAB entrance pop */
@keyframes fabPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.15);
    }

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

/* Removed redundant animation declaration */

/* ===== 100% ADVANCED ANIMATION OVERHAUL ===== */

/* Inherit No Cursor */
body {
    cursor: none;
}

a,
button,
input,
textarea {
    cursor: none !important;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    z-index: 10001;
    box-shadow: 0 0 10px var(--primary);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-line {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--primary);
    animation: loaderSweep 1s infinite ease-in-out alternate;
}

@keyframes loaderSweep {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Particles Hero Container */
.particles-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Infinite Marquee */
.marquee-container {
    background: #111;
    color: white;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scrollMarquee 20s linear infinite;
    gap: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.marquee-content .dot {
    color: var(--primary);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


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

@media (max-width: 768px) {

    .nav-links,
    .nav-call-btn {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .nav-links.open+.nav-call-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-call {
        font-size: 16px;
        padding: 14px 28px;
    }

    .section {
        padding: 50px 0;
    }

    .fab-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .fab-call,
    .fab-whatsapp {
        width: 52px;
        height: 52px;
    }

    .fab-icon {
        font-size: 20px;
    }

    .fab-icon svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 26px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

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

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