/* ==========================================
   INSTALECT — Premium Dark Electric Theme
   ========================================== */

/* ---- CSS Custom Properties ---- */
:root {
    --clr-bg-primary: #0a1628;
    --clr-bg-secondary: #0f1f3a;
    --clr-bg-card: rgba(15, 31, 58, 0.7);
    --clr-bg-card-hover: rgba(20, 40, 75, 0.85);
    --clr-accent: #00b4d8;
    --clr-accent-light: #48cae4;
    --clr-accent-dark: #0096c7;
    --clr-gold: #ffc107;
    --clr-gold-dark: #e6a800;
    --clr-text: #e8edf5;
    --clr-text-muted: #8b9ec2;
    --clr-text-heading: #ffffff;
    --clr-border: rgba(0, 180, 216, 0.15);
    --clr-glass: rgba(10, 22, 40, 0.65);
    --clr-whatsapp: #25D366;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 180, 216, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--clr-text);
    background-color: var(--clr-bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--clr-accent-light);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--clr-text-heading);
    line-height: 1.2;
    font-weight: 700;
}

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

.accent {
    color: var(--clr-accent);
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.45);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--clr-text);
    border: 2px solid var(--clr-border);
    backdrop-filter: blur(4px);
}

.btn--outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    transform: translateY(-2px);
}

.btn--gold {
    background: linear-gradient(135deg, var(--clr-gold), #e6a800);
    color: #0a1628;
    font-weight: 700;
    border: none;
}

.btn--gold:hover {
    background: linear-gradient(135deg, #e6a800, var(--clr-gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.35);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn--block {
    width: 100%;
    justify-content: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    border: 1px solid var(--clr-border);
    background: var(--clr-glass);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Animations ---- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.15s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.45s;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition);
    padding: 16px 0;
}

.header.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header__logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.5));
}

.header__logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition);
}

.header__logo:hover .header__logo-img {
    opacity: 0.85;
}

.footer__logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.header__nav-list {
    display: flex;
    gap: 32px;
}

.header__nav-link {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--clr-text-heading);
}

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

.header__cta {
    display: none;
}

@media (min-width: 1024px) {
    .header__cta {
        display: inline-flex;
    }
}

.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

@media (min-width: 1024px) {
    .header__hamburger {
        display: none;
    }
}

/* Mobile Nav */
@media (max-width: 1023px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--clr-bg-secondary);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--clr-border);
    }

    .header__nav.open {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .header__nav-link {
        font-size: 1.1rem;
    }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 22, 40, 0.92) 0%,
            rgba(10, 22, 40, 0.75) 40%,
            rgba(10, 22, 40, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 120px 20px 80px;
    max-width: 750px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-accent);
    border: 1px solid var(--clr-border);
    background: var(--clr-glass);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clr-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    background: var(--clr-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border);
    max-width: fit-content;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--clr-accent);
}

.hero__stat-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--clr-border);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll a span {
    display: block;
    width: 24px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--clr-text-muted);
    position: relative;
}

.hero__scroll a span::after {
    content: '';
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--clr-accent);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
    padding: 100px 0;
    background: var(--clr-bg-primary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    background: var(--clr-bg-card-hover);
    border-color: var(--clr-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--clr-accent);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card__desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-card__list li {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    background: rgba(0, 180, 216, 0.08);
    color: var(--clr-accent-light);
    border: 1px solid rgba(0, 180, 216, 0.15);
}

/* ==========================================
   PROJECTS
   ========================================== */
.projects {
    padding: 100px 0;
    background: var(--clr-bg-secondary);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-accent);
}

.project-card__image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card__category {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-accent);
    background: var(--clr-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-border);
}

.project-card__content {
    padding: 24px;
}

.project-card__content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.project-card__content p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Gallery Carousel */
.project-card__gallery {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.gallery__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery__slide.active {
    opacity: 1;
}

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

.project-card:hover .gallery__slide.active img {
    transform: scale(1.03);
    transition: transform 4s ease;
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 22, 40, 0.7);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card:hover .gallery__btn {
    opacity: 1;
}

.gallery__btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: translateY(-50%) scale(1.1);
}

.gallery__btn--prev {
    left: 10px;
}

.gallery__btn--next {
    right: 10px;
}

.gallery__dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery__dot.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.gallery__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Gallery image counter badge */
.project-card__gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .project-card__gallery {
        height: 280px;
    }

    .gallery__btn {
        opacity: 0.85;
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .gallery__dots {
        bottom: 44px;
    }

    .gallery__dot {
        width: 10px;
        height: 10px;
    }

    .project-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .project-card__gallery {
        height: 240px;
    }

    .gallery__btn {
        opacity: 0.9;
        width: 34px;
        height: 34px;
    }

    .gallery__dots {
        bottom: 40px;
        gap: 8px;
    }

    .project-card__content {
        padding: 18px 16px;
    }

    .project-card__content h3 {
        font-size: 1.05rem;
    }

    .project-card__content p {
        font-size: 0.85rem;
    }

    .project-card__category {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* ==========================================
   WHY US
   ========================================== */
.why-us {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.why-us__bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.why-us__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.why-us__card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--clr-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border);
    transition: all var(--transition);
    text-align: center;
}

.why-us__card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-glow);
}

.why-us__card-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.why-us__card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.why-us__card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   STATS
   ========================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--clr-bg-secondary), var(--clr-bg-primary));
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
}

.stat-item__suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--clr-gold);
}

.stat-item__label {
    display: block;
    margin-top: 8px;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ==========================================
   CLIENTS
   ========================================== */
.clients {
    padding: 100px 0;
    background: var(--clr-bg-primary);
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.client-card {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    text-align: center;
    transition: all var(--transition);
}

.client-card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.client-card__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-card__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-text-heading);
}

.client-card__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.client-card__logo--light {
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: auto;
    max-width: 140px;
    height: auto;
    max-height: 90px;
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
    padding: 100px 0;
    background: var(--clr-bg-secondary);
}

.faq__list {
    max-width: 750px;
    margin: 0 auto;
}

.faq__item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--clr-bg-card);
    overflow: hidden;
    transition: all var(--transition);
}

.faq__item[open] {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-glow);
}

.faq__question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-text-heading);
    list-style: none;
    transition: color var(--transition);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover {
    color: var(--clr-accent);
}

.faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--clr-accent);
}

.faq__item[open] .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 24px 20px;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   CTA
   ========================================== */
.cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta__bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

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

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.cta__subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
}

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

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: 100px 0;
    background: var(--clr-bg-primary);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    transition: all var(--transition);
}

.contact__info-card:hover {
    border-color: var(--clr-accent);
}

.contact__info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact__info-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--clr-accent);
}

.contact__info-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact__map {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.contact__map iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 60px 0 0;
    background: var(--clr-bg-secondary);
    border-top: 1px solid var(--clr-border);
}

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

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

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

.footer__brand p {
    margin-top: 16px;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    transition: all var(--transition);
}

.footer__social-link:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--clr-accent);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a,
.footer ul li {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer ul li a:hover {
    color: var(--clr-accent-light);
}

.footer__bottom {
    border-top: 1px solid var(--clr-border);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clr-whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    animation: whatsappBounce 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #fff;
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float__tooltip {
    position: absolute;
    right: 72px;
    background: var(--clr-bg-secondary);
    color: var(--clr-text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
    pointer-events: none;
    border: 1px solid var(--clr-border);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappBounce {

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

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

    30% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(-4px);
    }

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects {
        padding: 60px 0;
    }

    .why-us__grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .hero__stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero__content {
        padding: 100px 20px 60px;
    }

    .hero__actions {
        flex-wrap: wrap;
    }

    .section__title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

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

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}