/* Design Tokens */
:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --secondary: #3b82f6;
    --secondary-glow: rgba(59, 130, 246, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

p, .font-body {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.btn-outline {
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    height: 60px;
    position: relative;
    width: 200px; /* give the empty logo container a physical width so it's clickable */
}

.logo a {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.nav-logo {
    height: 300px;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.lang-switcher {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--glass-border);
}

.lang-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* Hero */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 6rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    margin: 0;
}

/* Sections General */
section {
    padding: 8rem 0;
}

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

.section-badge {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

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

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Service Cards */
.card {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-10px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary);
}

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

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: var(--glass-bg);
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

/* Projects */
.project-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.view-project {
    color: var(--primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Process */
.process-item {
    position: relative;
}

.process-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.1;
    margin-bottom: -1.5rem;
}

.process-item h3 {
    margin-bottom: 1rem;
}

.process-list {
    list-style: none;
    margin-top: 1.5rem;
}

.process-list li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.process-list li::before {
    content: '→';
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    overflow: hidden;
}

.user-info h4 {
    font-size: 0.9rem;
}

.user-info p {
    font-size: 0.75rem;
}

/* CTA */
.cta {
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    text-align: center;
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cta-desktop {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

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

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 { font-size: 3.5rem; }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-logo {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .nav-cta-desktop {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        left: unset;
        transform: none;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
    }

    .lang-switcher {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        gap: 2rem;
    }

    .lang-btn {
        font-size: 1.25rem;
    }

    .nav-logo {
        height: 150px;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    section {
        padding: 6rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-inner { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        text-align: center;
    }

    .footer-col {
        max-width: 100% !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .nav-logo {
        height: 120px;
    }
    
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2rem;
    }
    
    .cta h2 {
        font-size: 2.25rem;
    }
}
