/* ========================================
   LAASO - Soluções Inteligentes
   Inspired by Agrosmart Design
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-dark: #002A54;
    --primary-blue: #0066CC;
    --accent-blue: #00A0E3;
    --accent-light: #4ECDC4;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E0E6ED;
    --text-dark: #1A2B4A;
    --text-gray: #6B7C93;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, #003D7A 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 42, 84, 0.9) 0%, rgba(0, 66, 128, 0.8) 100%);

    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 160, 227, 0.3);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ===== Animated Intro ===== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro-overlay.exit {
    transform: translateY(-100%);
    opacity: 0;
}

.intro-overlay.hidden {
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.intro-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
}

/* Animated Circle Drawing */
.circle-draw {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle-outline {
    stroke-dasharray: 628;
    /* 2 * PI * r (100) ≈ 628 */
    stroke-dashoffset: 628;
    animation: drawCircle 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
    filter: drop-shadow(0 0 10px rgba(0, 160, 227, 0.5));
}

@keyframes drawCircle {
    0% {
        stroke-dashoffset: 628;
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.intro-logo {
    width: 120px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    animation: introLogoReveal 1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
    position: relative;
    z-index: 2;
}

/* LAASO Text over logo */
.laaso-text {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: transparent;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    animation: lasoTextReveal 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.5s forwards;
    z-index: 3;
    text-shadow: 0 0 30px rgba(0, 160, 227, 0.3);
}

@keyframes lasoTextReveal {
    0% {
        opacity: 0;
        letter-spacing: 20px;
    }

    100% {
        opacity: 1;
        letter-spacing: 8px;
    }
}

@keyframes introLogoReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-divider {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
    animation: dividerExpand 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.8s forwards;
}

@keyframes dividerExpand {
    to {
        width: 200px;
    }
}

.intro-tagline {
    overflow: hidden;
}

.intro-tagline span {
    display: inline-block;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(100%);
    animation: taglineReveal 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.2s forwards;
}

@keyframes taglineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Split Text Animation for Hero Title */
.animated-title {
    overflow: hidden;
}

.title-line {
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
}

.title-line.animate {
    animation: titleLineReveal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.title-line.animate:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes titleLineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.split-text {
    display: inline-block;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.split-text.animate .char {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy preloader support */
.preloader {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ===== Section Badge ===== */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-outline-light {
    background: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline-light:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(0, 42, 84, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link i {
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.nav-item.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 15px 0;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-normal);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--accent-blue);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-normal);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../images/hero-bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge i {
    color: var(--accent-blue);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 500;
    opacity: 0.9;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition-normal);
}

.hero-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.hero-link i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0.7;
    font-size: 0.85rem;
}

.hero-scroll a:hover {
    opacity: 1;
}

.hero-scroll i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

.about-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-light);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-stats {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.stat-bubble {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-bubble.secondary {
    background: var(--gradient-accent);
    color: var(--white);
}

.stat-bubble .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-bubble.secondary .stat-value {
    color: var(--white);
}

.stat-bubble .stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.stat-bubble.secondary .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Products Section ===== */
.products {
    background: var(--light-gray);
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.product-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 15px 30px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.product-tab:hover,
.product-tab.active {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}

.product-tab.active {
    background: var(--primary-dark);
    color: var(--white);
}

.tab-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: var(--white);
}

.product-tab.active .tab-icon {
    background: var(--white);
    color: var(--primary-dark);
}

.tab-text {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
}

.products-content {
    position: relative;
}

.product-card {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
}

.product-card.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-primary {
    background: var(--accent-blue);
    color: var(--white);
}

.tag-outline {
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.product-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.product-features i {
    color: var(--accent-light);
}

.product-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-stores {
    display: flex;
    gap: 0.75rem;
}

.store-badge {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.store-badge:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Product Images */
.product-image {
    display: flex;
    justify-content: center;
}

.product-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.product-mockup.dashboard {
    border-radius: 15px;
}

/* ESG Visual */
.esg-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
}

.esg-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.esg-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: var(--medium-gray);
    stroke-width: 10;
}

.score-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 37;
    animation: scoreAnim 2s ease forwards;
}

@keyframes scoreAnim {
    from {
        stroke-dashoffset: 283;
    }

    to {
        stroke-dashoffset: 37;
    }
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-content .score-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.score-content .score-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.esg-indicators {
    width: 100%;
}

.esg-indicators .indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.esg-indicators .indicator i {
    font-size: 1.5rem;
}

.esg-indicators .indicator span {
    flex: 1;
    font-weight: 600;
}

.indicator-bar {
    flex: 2;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
}

.indicator.env i {
    color: #2a9d8f;
}

.indicator.soc i {
    color: var(--primary-blue);
}

.indicator.gov i {
    color: var(--primary-dark);
}

/* ===== Solutions Section ===== */
.solutions {
    background: var(--gradient-primary);
    padding: var(--section-padding);
    color: var(--white);
}

.solutions .section-header {
    color: var(--white);
}

.solutions .section-title {
    color: var(--white);
}

.solutions .section-title .highlight {
    color: var(--accent-blue);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.solution-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.solution-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 20px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.solution-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.solution-card p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.solution-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.solution-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
    padding-left: 1.2rem;
    position: relative;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.solution-link:hover {
    color: var(--accent-light);
}

.solution-link i {
    transition: var(--transition-fast);
}

.solution-link:hover i {
    transform: translateX(5px);
}

/* ===== Impact Section ===== */
.impact {
    background: var(--white);
    padding: var(--section-padding);
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-header {
    margin-bottom: 2rem;
}

.impact-header h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.impact-header p {
    color: var(--text-gray);
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--light-gray);
    border-radius: 20px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.stat-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-text {
    display: block;
    color: var(--text-gray);
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.impact-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--light-gray);
    padding: var(--section-padding);
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 350px;
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.avatar-placeholder.female {
    background: linear-gradient(135deg, #E91E63 0%, #FF5722 100%);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.testimonial-author .location {
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-top: 0.25rem;
}

.testimonial-author .location i {
    margin-right: 0.25rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-impact {
    display: flex;
    gap: 0.75rem;
}

.impact-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 16px;
    background: rgba(0, 160, 227, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-dark);
}

.slider-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active,
.dot:hover {
    background: var(--accent-blue);
    transform: scale(1.2);
}

/* ===== Partners Section ===== */
.partners {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.partners-header {
    text-align: center;
    margin-bottom: 2rem;
}

.partners-header span {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    opacity: 0.6;
    transition: var(--transition-normal);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--primary-dark);
}

.partner-logo i {
    font-size: 2.5rem;
}

.partner-logo span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 160, 227, 0.15) 0%, transparent 50%);
    animation: pulse 10s infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    opacity: 0.8;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: #001a35;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.75;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-blue);
    padding-left: 8px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-contact i {
    color: var(--accent-blue);
}

.footer-locations {
    margin-top: 1.5rem;
}

.location {
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-blue);
}

.location strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.location span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .product-image {
        order: -1;
    }

    .impact-content {
        grid-template-columns: 1fr;
    }

    .impact-map {
        order: -1;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 2rem;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-tab {
        padding: 12px 20px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .location {
        padding-left: 0;
        border-left: none;
        border-top: 3px solid var(--accent-blue);
        padding-top: 1rem;
    }

    .cta-trust {
        flex-direction: column;
        gap: 1rem;
    }

    .partners-logos {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .product-card {
        padding: 1.5rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .about-stats {
        flex-direction: column;
        bottom: -60px;
    }

    .stat-bubble {
        padding: 1rem 1.5rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
    }
}