/* --------- Global Variables & Resets --------- */
:root {
    --bg-dark: #0a0a0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #8b5cf6;
    --secondary: #3b82f6;
    --accent: #22d3ee;
    --neon-glow: rgba(139, 92, 246, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --------- Typography & Utilities --------- */
.gradient-text {
    background: linear-gradient(to right, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --------- Navbar --------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary, .btn-primary-large, .btn-secondary-large, .btn-whatsapp {
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 0.6rem 1.5rem;
    color: white !important;
    box-shadow: 0 4px 15px var(--neon-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.8);
}

/* --------- Hero Section --------- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}

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

.badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary-large {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px var(--neon-glow);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ambient Glows */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.4;
    animation: drift 10s infinite alternate linear;
}

.glow-1 { top: 10%; left: -100px; }
.glow-2 { bottom: 10%; right: -100px; background: var(--secondary); animation-delay: -5s;}

@keyframes drift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* --------- Services Section --------- */
.services, .portfolio, .cta {
    padding: 6rem 5%;
    position: relative;
    z-index: 5;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.card .icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

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

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------- Portfolio Section --------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,10,14, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: bottom 0.4s ease;
}

.portfolio-item:hover .overlay {
    bottom: 0;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}
.overlay p {
    color: var(--accent);
    font-weight: 600;
}

/* --------- CTA Section --------- */
.cta-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    padding: 5rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    margin-right: 10px;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: scale(1.05);
}

/* --------- Footer --------- */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-muted);
}
.small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--primary);
}

/* --------- Responsive --------- */
/* --------- Scroll Progress Bar --------- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    width: 0%;
    z-index: 1001;
}

/* --------- Why Us Section --------- */
.why-us { padding: 6rem 5%; }

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    padding: 3rem;
    border-radius: 30px;
    background: var(--bg-card);
}

.comparison-card h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-card ul { list-style: none; }
.comparison-card li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.client-side { opacity: 0.7; }
.client-side i { color: #f43f5e; }
.our-side { 
    background: rgba(139, 92, 246, 0.05); 
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}
.our-side i { color: #10b981; }

.neon-border { position: relative; }
.neon-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(var(--primary), var(--secondary));
    z-index: -1;
    border-radius: 30px;
}

/* --------- Process Section --------- */
.process { background: rgba(255, 255, 255, 0.01); }

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

.step {
    padding: 2rem;
    position: relative;
    text-align: center;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
}

.step h3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--accent); }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* --------- Stats Section --------- */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 6rem 5%;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    flex-wrap: wrap;
    gap: 3rem;
}

.stat-item { text-align: center; }
.stat-item h3 { font-size: 3.5rem; font-weight: 800; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item p { font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

/* --------- FAQ Section --------- */
.faq { padding: 6rem 5%; max-width: 900px; margin: 0 auto; }

.faq-container { display: flex; flex-direction: column; gap: 1rem; }

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

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

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

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

.faq-item.active .faq-answer { padding: 0 2rem 1.5rem 2rem; max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

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

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

/* --------- Responsive Fixes --------- */
@media (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    /* Navbar Hamburger */
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: white;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; }

    /* Grids to Single Column */
    .comparison-grid, .process-steps, .cards, .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 2.8rem; }
    .stats { flex-direction: column; align-items: center; }
    
    .comparison-card { padding: 1.5rem; }
    .card { padding: 1.5rem; }
    .step { padding: 1rem; }

    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-title h2 { font-size: 2rem; }
    .stat-item h3 { font-size: 2.5rem; }
}
