:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #0ea5e9;
    --accent: #00ff88;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

span {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--primary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo span {
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent),
                url('assets/images/hero-bg.png') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), var(--bg));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Services */
.services {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Method */
.method {
    padding: 8rem 0;
    background: linear-gradient(rgba(15, 23, 42, 1), rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 1));
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -3rem;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.method-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    align-items: center;
}

.method-icon {
    font-size: 3rem;
    background: rgba(59, 130, 246, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* Niche Section */
.niche {
    padding: 8rem 0;
}

.niche-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(0, 255, 136, 0.05));
    border: 2px dashed var(--primary);
    padding: 4rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.niche-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.niche h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.niche p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* CTA Final */
.cta-final {
    padding: 8rem 0;
    background: radial-gradient(circle at bottom, rgba(59, 130, 246, 0.15), transparent);
}

.cta-final h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    margin-top: 3rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in { animation: fadeInUp 0.8s ease forwards; }
.fade-in-delay { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Responsive & Mobile First Adjustments */
@media (max-width: 768px) {
    .hero {
        padding-top: 7rem;
        text-align: center;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%; /* Large touch target */
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .hero-btns {
        padding: 0 1rem;
    }

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

    .service-card {
        padding: 2rem;
    }

    .method-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .method-icon {
        margin-bottom: 1rem;
    }

    .niche-box {
        padding: 2.5rem 1.5rem;
    }

    .niche h2 {
        font-size: 1.8rem;
    }

    .cta-final h2 {
        font-size: 2rem;
    }

    /* Disable heavy animations on mobile for speed */
    .fade-in, .fade-in-delay, .fade-in-delay-2 {
        animation: none;
        opacity: 1;
    }
}

/* Speed Optimization: Pre-renders and reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
