/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Parko Brand Colors - from logo */
    --primary-color: #8B1962;        /* Burgundy/Vișiniu - main brand color */
    --primary-dark: #6B1349;         /* Darker burgundy */
    --primary-light: #A02573;        /* Lighter burgundy */
    --secondary-color: #FF9900;      /* Orange - MOBILITY text */
    --accent-color: #FFB84D;         /* Light orange - accents */
    --success-color: #10b981;        /* Keep green for success states */
    --warning-color: #FF9900;        /* Use brand orange */
    --danger-color: #ef4444;         /* Keep red for errors */
    
    /* Text Colors */
    --text-primary: #1e293b;         /* Dark gray for body text */
    --text-secondary: #475569;       /* Medium gray */
    --text-light: #64748b;           /* Light gray */
    --text-white: #ffffff;           /* White */
    
    /* Background Colors */
    --bg-primary: #ffffff;           /* White background */
    --bg-secondary: #faf8f9;         /* Very light pink-gray */
    --bg-dark: #2d1020;              /* Dark burgundy for footer */
    --bg-gradient: linear-gradient(135deg, #8B1962 0%, #FF9900 100%); /* Burgundy to Orange */
    --bg-gradient-light: linear-gradient(135deg, rgba(139, 25, 98, 0.05) 0%, rgba(255, 153, 0, 0.05) 100%);
    
    /* Border & Shadows */
    --border-color: #f0e9ed;         /* Light pink-gray border */
    --shadow-sm: 0 1px 2px 0 rgba(139, 25, 98, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(139, 25, 98, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(139, 25, 98, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(139, 25, 98, 0.15);
    --shadow-orange: 0 4px 15px rgba(255, 153, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-gradient-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(139, 25, 98, 0.1);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--bg-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(139, 25, 98, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
}

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

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    transition: var(--transition-base);
}

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.lang-option {
    background: none;
    border: none;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.lang-option:hover {
    color: var(--primary-color);
    background: var(--bg-gradient-light);
}

.lang-option.active {
    color: var(--text-white);
    background: var(--bg-gradient);
}

.lang-separator {
    color: var(--border-color);
    font-weight: 300;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* ===================================
   Hero Video Background (Optimized)
   =================================== */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    background: #0f172a; /* Fallback dark background */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.4;
    pointer-events: none; /* Prevent iframe interaction */
    will-change: opacity; /* GPU optimization */
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(139, 25, 98, 0.85) 0%, 
        rgba(255, 153, 0, 0.75) 50%,
        rgba(255, 184, 77, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Optimize video on slow connections */
@media (prefers-reduced-data: reduce) {
    .hero-video {
        display: none;
    }
    .hero-video-container {
        background-image: url('../images/hero-smart-city.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero-video {
        opacity: 0.3;
    }
    
    .hero-video-overlay {
        background: linear-gradient(135deg, 
            rgba(139, 25, 98, 0.9) 0%, 
            rgba(255, 153, 0, 0.85) 50%,
            rgba(255, 184, 77, 0.9) 100%);
    }
}

/* Very small screens - hide video, use poster */
@media (max-width: 480px) {
    .hero-video {
        display: none;
    }
    .hero-video-container {
        background-image: url('../images/hero-smart-city.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* ===================================
   Smart City Animation (Backup Layer)
   =================================== */
.smart-city-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

/* City Buildings */
.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 10%;
}

.building {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: buildingGlow 4s ease-in-out infinite;
}

.building-1 {
    width: 80px;
    height: 200px;
    animation-delay: 0s;
}

.building-2 {
    width: 100px;
    height: 280px;
    animation-delay: 0.5s;
}

.building-3 {
    width: 70px;
    height: 240px;
    animation-delay: 1s;
}

.building-4 {
    width: 90px;
    height: 260px;
    animation-delay: 1.5s;
}

.building-5 {
    width: 85px;
    height: 220px;
    animation-delay: 2s;
}

@keyframes buildingGlow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(139, 25, 98, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 40px rgba(255, 153, 0, 0.6);
    }
}

/* Traffic Lane - Moving Cars */
.traffic-lane {
    position: absolute;
    bottom: 25%;
    left: 0;
    width: 100%;
    height: 60px;
}

.car {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    animation: driveCar 15s linear infinite;
}

.car i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.car-1 {
    left: -100px;
    top: 0;
    animation-delay: 0s;
    color: #8B1962;
}

.car-2 {
    left: -100px;
    top: 20px;
    animation-delay: 5s;
    color: #FF9900;
}

.car-3 {
    left: -100px;
    top: 40px;
    animation-delay: 10s;
    font-size: 2.5rem;
    color: #2563eb;
}

@keyframes driveCar {
    0% {
        left: -100px;
        transform: translateX(0);
    }
    100% {
        left: 100%;
        transform: translateX(100px);
    }
}

/* Parking Sensors */
.parking-spots {
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 70%;
    display: flex;
    justify-content: space-between;
}

.parking-sensor {
    position: relative;
    font-size: 2rem;
    color: var(--success-color);
    animation: sensorBlink 2s ease-in-out infinite;
}

.sensor-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

.sensor-1 {
    animation-delay: 0s;
}

.sensor-2 {
    animation-delay: 0.7s;
}

.sensor-3 {
    animation-delay: 1.4s;
}

@keyframes sensorBlink {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px var(--success-color));
    }
}

@keyframes pulseRing {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* ANPR Cameras */
.anpr-cameras {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    display: flex;
    justify-content: space-between;
}

.camera {
    position: relative;
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: cameraRotate 4s ease-in-out infinite;
}

.camera-1 {
    animation-delay: 0s;
}

.camera-2 {
    animation-delay: 2s;
}

.scan-line {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes cameraRotate {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

@keyframes scanMove {
    0%, 100% {
        opacity: 0;
        height: 0;
    }
    50% {
        opacity: 1;
        height: 100px;
    }
}

/* Data Network Connections */
.data-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: dataFlow 3s linear infinite;
}

.line-1 {
    top: 25%;
    left: 10%;
    width: 30%;
    animation-delay: 0s;
}

.line-2 {
    top: 45%;
    right: 15%;
    width: 25%;
    animation-delay: 1s;
}

.line-3 {
    top: 65%;
    left: 20%;
    width: 35%;
    animation-delay: 2s;
}

.connection-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--secondary-color);
}

.dot-1 {
    top: 25%;
    left: 10%;
}

.dot-2 {
    top: 45%;
    right: 15%;
}

.dot-3 {
    top: 65%;
    left: 20%;
}

@keyframes dataFlow {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Responsive - Simplify on mobile */
@media (max-width: 768px) {
    .smart-city-animation {
        opacity: 0.1;
    }
    
    .building {
        width: 40px !important;
        height: 100px !important;
    }
    
    .car {
        font-size: 1.2rem;
    }
    
    .parking-sensor {
        font-size: 1rem;
    }
    
    .camera {
        font-size: 1rem;
    }
    
    .connection-line,
    .data-network {
        display: none; /* Simplify on mobile */
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(250, 248, 249, 0.95) 0%, 
        rgba(250, 248, 249, 0.9) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(139, 25, 98, 0.05) 0%, 
        rgba(255, 153, 0, 0.05) 50%,
        rgba(255, 184, 77, 0.05) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 25, 98, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 153, 0, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

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

.about-card.main-card {
    margin-bottom: 32px;
    text-align: center;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: 16px;
    font-size: 1.75rem;
    margin: 0 auto 24px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ===================================
   Solutions Section
   =================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.solution-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.solution-card.featured {
    background: var(--bg-gradient-light);
    border-color: var(--primary-color);
}

.solution-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: 16px;
    font-size: 2rem;
    margin-bottom: 24px;
}

.solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.solution-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.solution-features li:last-child {
    border-bottom: none;
}

.solution-features i {
    color: var(--success-color);
    font-size: 1rem;
}

.solution-tag {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--bg-gradient);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Project Section
   =================================== */
.project-section {
    background: var(--bg-secondary);
}

.project-featured {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 400px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.project-content {
    padding: 48px;
}

.project-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.project-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-meta i {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.project-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-gradient-light);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(139, 25, 98, 0.15);
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===================================
   Partnership Section
   =================================== */
.partnership-content {
    max-width: 900px;
    margin: 0 auto;
}

.partner-card {
    background: var(--bg-primary);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 48px;
}

.partner-card.major-partner {
    background: var(--bg-gradient-light);
    border: 2px solid var(--primary-color);
}

.partner-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 3rem;
    margin: 0 auto 24px;
}

.partner-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.partner-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 1.125rem;
}

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

.benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-primary);
}

.municipalities-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.municipalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.municipality-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

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

.municipality-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.municipality-card span {
    font-weight: 600;
    color: var(--text-primary);
}

.municipality-card p {
    margin: 0;
    color: var(--text-secondary);
}

/* ===================================
   Technology Section
   =================================== */
.tech-section {
    background: var(--bg-dark);
    color: var(--text-white);
}

.tech-section .section-tag {
    background: rgba(255, 153, 0, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.tech-section .section-title {
    color: var(--text-white);
}

.tech-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.tech-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-base);
}

.tech-card:hover {
    background: rgba(139, 25, 98, 0.15);
    border-color: var(--secondary-color);
    transform: translateY(-4px);
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.tech-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-link:hover {
    gap: 12px;
}

.contact-form-wrapper {
    background: var(--bg-primary);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}

.footer-logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5));
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    line-height: 1.8;
}

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

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

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-column a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 4px;
    font-size: 0.875rem;
    min-width: 16px;
}

.footer-contact .indent {
    display: block;
    padding-left: 26px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 0;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   WhatsApp Business Button
   =================================== */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    animation: slideInLeft 0.6s ease-out 1s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

.whatsapp-button i {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-4px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-text {
    font-weight: 600;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .project-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .project-content {
        padding: 32px 24px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    /* WhatsApp button on tablet */
    .whatsapp-button {
        left: 20px;
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .scroll-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    /* WhatsApp button on mobile - compact version */
    .whatsapp-button {
        left: 15px;
        bottom: 90px; /* Above scroll-top button */
        padding: 14px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }

    .whatsapp-text {
        display: none; /* Hide text on mobile, show only icon */
    }

    .whatsapp-button i {
        font-size: 1.75rem;
        margin: 0;
    }

    .scroll-top {
        right: 15px;
        bottom: 15px;
    }
}

/* ===================================
   WOW FACTOR IMPROVEMENTS
   =================================== */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Wow Buttons with Magnetic Effect */
.btn-wow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-wow .btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.btn-wow .btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-wow .btn-text {
    font-weight: 600;
    font-size: 1rem;
}

.btn-wow .btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.btn-wow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-wow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 25, 98, 0.3);
}

.btn-wow:hover::before {
    opacity: 1;
}

.btn-wow:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
}

.btn-wow:active {
    transform: translateY(-1px) scale(0.98);
}

/* ROI Calculator Section */
.roi-calculator-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #faf8f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.roi-calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.roi-calculator-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 25, 98, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.roi-calculator-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-inputs {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.input-group {
    margin-bottom: 32px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.input-group label i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.input-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--accent-color) 100%);
    outline: none;
    -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.input-group input[type="number"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-value {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calculator-result {
    display: flex;
    align-items: center;
}

.result-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 48px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 60px rgba(139, 25, 98, 0.3);
    width: 100%;
}

.result-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 16px;
    text-align: center;
}

.result-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.big-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.currency {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.8;
}

.result-breakdown {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.breakdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-item i {
    color: #10b981;
    font-size: 1.25rem;
    margin-top: 2px;
}

.breakdown-item span {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.breakdown-item strong {
    font-weight: 700;
    font-size: 1.125rem;
}

.result-card .btn {
    width: 100%;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    justify-content: center;
}

.result-card .btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.solution-card,
.tech-card,
.partner-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.solution-card::before,
.tech-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 22px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s;
    z-index: -1;
}

.solution-card:hover,
.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 25, 98, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.solution-card:hover::before,
.tech-card:hover::before {
    opacity: 0.6;
}

/* Animated Counter Effect */
.stat-number,
.big-number {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Section Title Improvements */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

/* Hero Improvements */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-subtitle strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive ROI Calculator */
@media (max-width: 968px) {
    .roi-calculator-widget {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .calculator-inputs,
    .result-card {
        padding: 32px;
    }
    
    .big-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .roi-calculator-section {
        padding: 80px 0;
    }
    
    .calculator-inputs,
    .result-card {
        padding: 24px;
    }
    
    .big-number {
        font-size: 2.5rem;
    }
    
    .btn-wow .btn-content {
        display: none;
    }
    
    .btn-wow .btn-text {
        display: inline;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}