/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;

    --font-family: 'Tatic Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    --container-max: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--color-gray-600);
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-black);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
}

.logo text:first-of-type {
    font-family: 'League Spartan', sans-serif !important;
}

.logo text:last-of-type {
    font-family: 'Tatic Sans', sans-serif !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    padding: 10px 20px;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--color-gray-100);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background-color: var(--color-gray-200);
}

.lang-option {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.lang-option.active {
    color: var(--color-black);
}

.lang-divider {
    color: var(--color-gray-300);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 80px) 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3Cpath stroke='%232563eb' stroke-opacity='0.12' stroke-width='1' d='M30 0v30l26 15M0 30h30M30 60V30L4 15M60 30H30M0 0l30 30M60 0L30 30M0 60l30-30M60 60L30 30'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.3);
}

.hero-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-white);
}

.hero-floating-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
}

.ring {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-black);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.ring-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.ring-2 { top: 15%; right: 15%; animation-delay: 0.375s; }
.ring-3 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.75s; }
.ring-4 { bottom: 15%; right: 15%; animation-delay: 1.125s; }
.ring-5 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.ring-6 { bottom: 15%; left: 15%; animation-delay: 1.875s; }
.ring-7 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 2.25s; }
.ring-8 { top: 15%; left: 15%; animation-delay: 2.625s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-black);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-gray-800);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 120px 0;
    background-color: var(--color-white);
}

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

.service-card {
    padding: 40px 32px;
    background-color: var(--color-gray-50);
    border-radius: 16px;
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-normal);
}

.service-card:hover {
    background-color: var(--color-white);
    border-color: var(--color-gray-200);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--color-black);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-gray-50);
}

.about-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle at 60% 40%, var(--color-gray-200) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, var(--color-gray-200) 0%, transparent 40%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.tech-item {
    padding: 28px 24px;
    background-color: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-normal);
    text-align: left;
}

.tech-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.tech-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-black);
}

.tech-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-gray-600);
}

/* ========================================
   Methodology Section
   ======================================== */
.methodology {
    padding: 120px 0;
    background-color: var(--color-white);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.methodology-step {
    position: relative;
    padding-left: 80px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gray-200);
    line-height: 1;
    transition: color var(--transition-normal);
}

.methodology-step:hover .step-number {
    color: var(--color-black);
}

.methodology-step h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

.methodology-step p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--color-white) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--color-white) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.contact p {
    color: var(--color-gray-400);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.contact .btn-primary {
    background-color: #25D366;
}

.contact .btn-primary:hover {
    background-color: #1ebc57;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0;
    background-color: var(--color-black);
    border-top: 1px solid var(--color-gray-800);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer-year {
    font-weight: 500;
    color: var(--color-gray-400);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: calc(var(--header-height) + 60px) 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero p {
        font-size: 1.0625rem;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-circle {
        width: 140px;
        height: 140px;
    }

    .hero-circle-inner {
        width: 70px;
        height: 70px;
    }

    .hero-floating-rings {
        width: 240px;
        height: 240px;
    }

    .ring {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
    
    .services,
    .about,
    .methodology,
    .contact {
        padding: 80px 0;
    }

    .services-grid,
    .tech-grid,
    .methodology-grid {
        gap: 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-item {
        padding: 20px 18px;
    }

    .tech-icon {
        width: 32px;
        height: 32px;
    }

    .methodology-step {
        padding-left: 60px;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .methodology-step {
        padding-left: 0;
        text-align: center;
    }
    
    .step-number {
        position: relative;
        font-size: 3rem;
        margin-bottom: 16px;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .btn-primary {
    animation-delay: 0.3s;
}
