/* --- Base Styles --- */
:root {
    --bg-dark: #1a1f3a;
    --bg-mid: #2d3561;
    --bg-accent: #4a3f7a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --secondary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top left, var(--bg-mid), var(--bg-dark), var(--bg-accent));
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* --- Navigation --- */
nav:not(.main-menu) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 31, 58, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    transition: var(--transition);
}

nav.scrolled .logo img {
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn-primary-sm {
    background: var(--primary-gradient);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-gradient);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--glass-hover);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #7e22ce;
    bottom: -200px;
    left: -200px;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Stats --- */
.stats {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Services --- */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.category-section {
    display: none;
}

.category-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--glass-hover);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
}

.card-icon i {
    width: 28px;
    height: 28px;
}

.blue i {
    color: #3b82f6;
}

.cyan i {
    color: #06b6d4;
}

.indigo i {
    color: #6366f1;
}

.purple i {
    color: #a855f7;
}

.pink i {
    color: #ec4899;
}

.green i {
    color: #22c55e;
}

.emerald i {
    color: #10b981;
}

.teal i {
    color: #14b8a6;
}

.orange i {
    color: #f97316;
}

.red i {
    color: #ef4444;
}

.yellow i {
    color: #eab308;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-card ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-card ul li i {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.about h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
}

.v-icon {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v-icon i {
    color: #6366f1;
}

.value-item h4 {
    margin-bottom: 0.2rem;
}

.value-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.glass-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot:nth-child(1) {
    background: #ff5f56;
}

.dot:nth-child(2) {
    background: #ffbd2e;
}

.dot:nth-child(3) {
    background: #27c93f;
}

.glass-content {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
}

.keyword {
    color: #c678dd;
}

.function {
    color: #61afef;
}

.variable {
    color: #e06c75;
}

.string {
    color: #98c379;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
}

.cta-card {
    background: rgba(15, 18, 37, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 5rem 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-emphasis {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.btn-emphasis:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.4);
}

/* --- Footer --- */
footer {
    padding: 80px 0 30px;
    background: #0f1225;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-website {
    margin-top: 1.5rem;
}

.web-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.6rem 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.web-link i {
    width: 18px;
    height: 18px;
    color: #6366f1;
}

.web-link:hover {
    color: white;
    background: var(--glass-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-col li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* --- Mobile Menu --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    padding: 2rem;
    transition: 0.4s ease;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-links a {
    font-size: 1.2rem;
}

/* --- Reveal Logic --- */
[data-reveal] {
    opacity: 0;
    transition: 0.8s ease;
}

[data-reveal="bottom"] {
    transform: translateY(50px);
}

[data-reveal="left"] {
    transform: translateX(-50px);
}

[data-reveal="right"] {
    transform: translateX(50px);
}

[data-reveal="fade"] {
    transform: scale(0.95);
}

.revealed {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .cta-btns {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* --- Scroll to Top Button --- */
.scroll-top-wrapper {
    position: fixed;
    bottom: 50px;
    right: 40px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-wrapper.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: var(--bg-dark);
    border: none;
    border-radius: 50%;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.scroll-top-wrapper:hover .scroll-top-btn {
    background: var(--primary-gradient);
    color: white;
}

.progress-circle {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.progress-circle path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.progress-circle .progress-path {
    stroke: #6366f1;
    stroke-width: 4;
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-wrapper:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .scroll-top-wrapper {
        bottom: 30px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top-btn {
        width: 38px;
        height: 38px;
    }

    .progress-circle {
        width: 50px;
        height: 50px;
    }
}