:root {
    --primary: #00a2ff;
    --primary-deep: #0056b3;
    --primary-glow: rgba(0, 162, 255, 0.4);
    --secondary: #32d74b;
    --secondary-glow: rgba(50, 215, 75, 0.4);
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent: #00d2ff;
    --silver: #e1e4e8;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--silver));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

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

section {
    padding: 100px 0;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 162, 255, 0.3);
}

/* Header & Nav */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

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

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: white;
    background: var(--primary);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 180px;
    /* Increased to ensure clearance for taller headers (EN/Mobile) */
    padding-bottom: 80px;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, var(--primary-deep) 0%, transparent 40%),
        url('assets/hero.webp') no-repeat center center/cover;
    opacity: 0.4;
    z-index: -1;
    filter: saturate(0.8) contrast(1.2);
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 8px 30px var(--secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--secondary-glow);
}

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

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

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 15px;
}

.service-card li {
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card li::before {
    content: '✓';
    color: var(--secondary);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--text-main);
}

.price-value span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.price-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 800;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Why Me Section */
.why-me-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.small-card {
    padding: 20px;
    text-align: center;
}

/* Floating WA */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* FAQ & Guarantee */
.faq-grid {
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 300px;
}

.faq-item.active .faq-question {
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guarantee-box {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(0, 123, 255, 0.1));
    border: 1px solid var(--secondary);
    border-radius: 30px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.guarantee-item i {
    font-size: 2rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 10px;
}

/* Contact Footer */
footer {
    padding: 80px 0 40px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .why-me-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    header {
        padding: 10px 15px;
        width: 95%;
    }

    .hero-content {
        padding-top: 40px;
        /* Extra push for mobile content */
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Override for header button to prevent overflow */
    header .btn {
        width: auto;
        padding: 8px 12px;
        font-size: 0.75rem;
        margin-left: 10px !important;
    }

    .logo {
        font-size: 1.1rem;
    }

    .lang-switch {
        margin-left: 10px;
        gap: 5px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    nav {
        display: none;
        /* Mobile menu needed */
    }

    .projects-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
    }

    .projects-grid .project-card div[style*="height: 250px"] {
        height: 200px !important;
        /* Slightly smaller images for mobile to save space */
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

/* Digital Shielding Widget */
.shielding-counter {
    background: rgba(0, 162, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    margin: 20px 0;
}

.shielding-counter .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Sandbox Showcase */
.sandbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.sandbox-card {
    position: relative;
    overflow: hidden;
    height: 420px;
    cursor: pointer;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.sandbox-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transform: scale(0.95);
    transition: var(--transition);
}

.sandbox-card:hover iframe {
    transform: scale(1.05);
}

.sandbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 12, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
    z-index: 2;
}

.sandbox-card:hover .sandbox-overlay {
    background: linear-gradient(to bottom, transparent 20%, rgba(10, 10, 12, 0.95));
}

.sandbox-tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
}

/* Victory Cards */
.victory-card {
    padding: 40px;
    text-align: center;
    border-top: 4px solid var(--primary) !important;
}

.victory-stat {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.victory-label {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

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

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Premium Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition);
}

/* Morphing to 'X' when active */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Nav Overlay Panel --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    padding: 120px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.mobile-lang-switch {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Show toggle and hide elements on mobile */
@media (max-width: 992px) {
    header {
        padding: 12px 20px;
    }
    
    header nav, 
    header .lang-switch, 
    header .btn {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
}