/* ===== VARIABLES ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --gray: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* ===== HEADER (Transparent → Solid) ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0.75rem 0;
}

header.transparent {
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
}

header.solid {
    background: var(--white);
    box-shadow: var(--shadow);
    backdrop-filter: blur(0);
}

header.solid .logo img {
    content: url('../img/logo.png');
}

.logo img {
    height: 85px;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

header.transparent .nav-links a { color: white; }
header.solid .nav-links a { color: var(--dark); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

header.solid .hamburger span { background: var(--dark); }

/* ===== HERO SECTIONS (Fixed Overlap) ===== */
.hero-video,
.hero,
.page-hero {
    padding-top: 120px !important;
}

/* Specific hero (non-video) */
.hero:not(.hero-video) {
    min-height: 550px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.hero-video {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

#heroBgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.highlight {
    background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* ===== HERO STATS (Bubbles) - Force one line ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: nowrap;
    width: 100%;
}

.stat {
    text-align: center;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    border-radius: 40px;
    flex: 1;
    min-width: 0;
    white-space: normal;
}

.stat span {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.stat p {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* On very small screens (phones), allow wrapping */
@media (max-width: 640px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .stat {
        flex: auto;
        min-width: 140px;
    }
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    margin-top: 0;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #7c3aed;
    transform: translateY(-3px);
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
    padding: 5rem 0;
    background: var(--light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.problem-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.problem-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.problem-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.problem-bottom-line {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

/* ===== SOLUTION SECTION ===== */
.solution-section {
    padding: 5rem 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.solution-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.solution-result {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    color: var(--primary);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    color: white;
}

.benefits-section h2 {
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.benefit-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 5rem 0;
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: normal;
}

.testimonials-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #111827 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
}

.final-cta p {
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1.1rem;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.guarantee i {
    color: #10b981;
}

/* ===== FAST FIX SECTION (store.html) ===== */
.fast-fix {
    padding: 4rem 0;
    background: var(--light);
}

.fast-fix h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.fix-subhead {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: var(--gray);
}

.fix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.fix-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fix-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.fix-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.fix-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.fix-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.fix-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.fix-bundle {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.fix-bundle p {
    margin-bottom: 1rem;
}

/* ===== CARDS & SECTIONS (existing) ===== */
.features, .services, .portfolio-grid, .packages {
    padding: 5rem 0;
}

.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card, .service-card, .package-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate, .service-card.animate, .package-card.animate, .portfolio-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover, .service-card:hover, .package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card i, .service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* ===== PORTFOLIO ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: var(--light);
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #f3f4f6;
    min-height: 260px;
}

.portfolio-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 1.5rem;
    transition: bottom 0.4s ease;
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    bottom: 0;
}

.btn-view {
    display: inline-block;
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--primary-dark);
}

/* ===== PACKAGES (store) ===== */
.package-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.popular-tag {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.3rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px 20px 0 0;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    font-weight: normal;
}

.package-body ul {
    list-style: none;
    margin-top: 1rem;
}

.package-body li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fa-check { color: #10b981; }
.fa-times { color: #ef4444; }

.hosting-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: var(--gray);
}

.packages-subhead {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray);
}

/* ===== CONTACT FORM ===== */
.contact-section {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--light);
    padding: 2rem;
    border-radius: 20px;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

/* ===== CTA SECTION (original) ===== */
.cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    text-align: center;
    padding: 5rem 0;
    border-radius: 30px;
    margin: 2rem 24px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--gray);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links a, .footer-contact a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.2rem;
    }
    .hero-video,
    .hero,
    .page-hero {
        padding-top: 100px !important;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        box-shadow: var(--shadow);
        white-space: normal;
    }
    .nav-links.active { left: 0; }
    .nav-links a { color: var(--dark) !important; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .cta { margin: 2rem 16px; }
    .portfolio-items { grid-template-columns: 1fr; }
    .hero-video {
        padding-top: 80px !important;
        height: auto;
        min-height: 550px;
    }
    .hero:not(.hero-video) {
        padding-top: 80px !important;
    }
    .page-hero {
        padding-top: 100px !important;
    }
    .problem-grid, .solution-grid, .benefits-grid, .testimonials-grid, .fix-grid {
        grid-template-columns: 1fr;
    }
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto;
    }
}

/* Lazy load images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}
img[loading="lazy"].loaded {
    opacity: 1;
}