:root {
    --bg-color: #030303;
    --card-bg: #0a0a0a;
    --primary: #6d28d9;
    --primary-bright: #8b5cf6;
    --primary-glow: rgba(109, 40, 217, 0.3);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-glow: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Typography Utility */
.text-gradient {
    background: linear-gradient(to bottom right, #fff 30%, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(3, 3, 3, 0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-container img {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    background: linear-gradient(to bottom right, #fff 40%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.3s ease;
}

.brand-name:hover {
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('assets/hero_bg.jpg') no-repeat center center;
    background-size: cover;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid var(--primary-glow);
    color: var(--primary-bright);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 2rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 650px;
}

/* Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

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

.btn-sm {
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1.5rem 4rem;
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

.section-tag {
    color: var(--primary-bright);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
}

/* Tech Stack Badges */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.badge {
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100px;
    height: 100px;
}

.badge img {
    max-width: 56px;
    max-height: 56px;
    width: auto;
    height: auto;
    filter: grayscale(0.2);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.badge:hover {
    background: #ffffff;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(109, 40, 217, 0.2);
}

.badge:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.process-step {
    position: relative;
}

.process-number {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--glass-border);
    position: absolute;
    top: -4rem;
    left: -2rem;
    z-index: -1;
}

.process-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.process-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(109, 40, 217, 0.5);
    transform: translateY(-12px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: var(--primary-bright);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

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

.card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Footer / CTA */
.cta-box {
    background: radial-gradient(circle at top right, rgba(109, 40, 217, 0.15), transparent), var(--card-bg);
    border: 1px solid var(--primary-glow);
    border-radius: 40px;
    padding: 10rem 4rem;
    text-align: center;
    margin-top: 5rem;
}

.cta-box h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.25rem;
}

.card-contact {
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg), #1a1a1a);
    border-color: var(--primary);
}

footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contact {
    text-align: right;
}

.contact-columns {
    display: flex;
    gap: 6rem;
    justify-content: flex-end;
    text-align: right;
}

.contact-col {
    display: flex;
    flex-direction: column;
}

.footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-contact a, .footer-contact p {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-bright);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero { min-height: auto; height: auto; padding: 8rem 0 4rem; }
    .nav-links { display: none; }
    .footer-content { flex-direction: column; gap: 3rem; }
    .footer-contact { text-align: left; order: 1; }
    .footer-info { order: 2; opacity: 0.8; }
    .contact-columns { flex-direction: column; gap: 2rem; text-align: left; justify-content: flex-start; }
    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    section { padding: 2.5rem 0; }
    .cta-box { padding: 4rem 1.5rem; margin-top: 2rem; }
    footer { padding: 3rem 0; }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-switcher a {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.lang-switcher a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

.lang-switcher a:not(.active):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile language switcher */
.lang-switcher-mobile {
    display: none;
    margin-left: auto;
}

@media (max-width: 768px) {
    .lang-switcher-mobile {
        display: flex !important;
    }
}
