@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;

    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-accent: var(--accent-red);

    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.5);
    --accent-red-dark: #b91c1c;

    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
body>header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.language-switch)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:not(.language-switch):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
}

.language-switch {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.language-switch:hover {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero h1 span {
    display: block;
    color: var(--accent-red);
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: white;
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px -5px rgba(239, 68, 68, 0.5);
    filter: brightness(1.1);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon-wrapper {
    transform: translateX(4px);
}

/* Section Styles */
section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.01em;
    color: #fff;
}

.section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.75;
    font-weight: 300;
}

/* Services Grid */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--text-accent);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 5.5rem;
    /* Align titles (3 lines) */
    display: flex;
    align-items: flex-end;
    /* Optional: align text to bottom or top? Top is standard. */
    align-items: flex-start;
}

.service-card__header {
    margin-bottom: 0.5rem;
}

.service-card__tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 9rem;
    /* Align lists (6 lines) */
}

.service-card ul {
    list-style: none;
    color: var(--text-primary);
    flex: 1;
    font-size: 0.95rem;
}

.service-card ul li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card ul li:first-child {
    border-top: none;
}

.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--accent-red);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.service-card:hover ul li::before {
    transform: translateX(3px);
}

.service-card ul li strong {
    color: #fff;
    font-weight: 600;
}

/* How I Work */
.process {
    background: var(--bg-primary);
}

.process-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.process-lede {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}

.process-list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.process-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2.5rem;
    transition: color 0.3s ease;
}

.process-list li:hover {
    color: #fff;
}

.process-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1.5rem;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(239, 68, 68, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.process-list li:last-child {
    border-bottom: none;
}

/* Labs Projects */
.labs {
    background: var(--bg-secondary);
}

.labs-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.project-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.project-link--secondary {
    color: var(--text-muted);
}

.project-link--secondary:hover {
    color: var(--text-primary);
}

.showcase-promise {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.showcase-promise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.showcase-promise h3 {
    font-family: var(--font-heading);
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.showcase-promise p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-content h3 {
    font-family: var(--font-heading);
    color: var(--text-accent);
    margin: 3rem 0 1.5rem;
    font-size: 1.75rem;
}

.about-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.about-list li {
    padding: 1rem;
    padding-left: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.about-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.about-list li strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-links a:hover {
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .service-card h3,
    .service-card__tagline {
        min-height: auto;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .process-content {
        padding: 2rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}