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

:root {
    --bg-light: #050505;
    --bg-dark: #050505;
    --surface-light: rgba(245, 245, 245, 0.08);
    --surface-dark: rgba(20, 22, 27, 0.85);
    --text-dark: #f9f9fb;
    --text-light: #f9f9fb;
    --text-muted: rgba(249, 249, 251, 0.6);
    --accent: #ffd23f;
    --accent-alt: #4f46ff;
}

html, body {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Fustat', 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4 {
    font-family: 'Fustat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    font-family: 'Inter', sans-serif;
}

.menu-button {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    width: 26px;
    height: 26px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: transform 0.3s ease;
    position: absolute;
    border-radius: 1.5px;
    left: 0;
}

.line-1,
.line-3 {
    top: 50%;
    transform: translateY(-50%);
}

.line-2 {
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.line-3 {
    opacity: 0;
}

body:has(.nav-links.active) .line-2 {
    transform: translateY(-50%) rotate(0deg);
}

.nav-links.active ~ .menu-button .line-2 {
    transform: translateY(-50%) rotate(0deg);
}

.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(5, 5, 7, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    height: 0;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    z-index: 999;
    transition: height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
    padding: 0 20px;
}

.nav-links.active {
    height: 100vh;
    opacity: 1;
    pointer-events: all;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    opacity: 0;
    transform: translateY(16px);
    transition: color 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
}

.nav-links.active a {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a:nth-child(1) { transition-delay: 0.2s; }
.nav-links a:nth-child(2) { transition-delay: 0.25s; }
.nav-links a:nth-child(3) { transition-delay: 0.3s; }
.nav-links a:nth-child(4) { transition-delay: 0.35s; }
.nav-links a:nth-child(5) { transition-delay: 0.4s; }
.nav-links a:nth-child(6) { transition-delay: 0.45s; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

#hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('images/hero-bg-4x.jpg') center/cover no-repeat;
    background-position: center center;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    will-change: background-position;
    -webkit-transform: translateZ(0);
}

.hero-wordmark {
    width: clamp(280px, 80vw, 720px);
    height: auto;
    display: block;
    /* margin-bottom: 24px; */
    filter: brightness(0) invert(1);
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.hero-logo {
    perspective: 1000px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-3d {
    display: block;
    width: min(320px, 78vw);
    min-width: 200px;
    max-width: 480px;
    aspect-ratio: 1234 / 533;
    position: relative;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-logo-3d canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-logo.is-3d-active .hero-logo-3d {
    opacity: 1;
}

@media only screen and (min-width: 769px) {
    .hero-logo-3d {
        width: clamp(300px, calc(300px + (300 * (100vw - 769px) / 1151)), 520px);
        max-width: 520px;
    }
}

/* Showcase page styles */

.showcase-body {
    background: var(--bg-dark, #050505);
    color: var(--text-light, #f5f5f5);
}

.showcase-body .nav-links a.nav-active {
    color: var(--accent, #f5ff7b);
}

.showcase-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: clamp(96px, 24vh, 180px) clamp(24px, 8vw, 160px) clamp(80px, 16vh, 140px);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 45%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent);
}

.showcase-hero__inner {
    max-width: 720px;
    display: grid;
    gap: 24px;
}

.showcase-hero__inner h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
}

.showcase-hero__inner p {
    color: rgba(245, 245, 245, 0.8);
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
}

.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(245, 245, 245, 0.2);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.showcase-cta:hover {
    border-color: rgba(245, 245, 245, 0.6);
    transform: translateY(-2px);
}

.showcase-grid {
    background: rgba(9, 9, 9, 0.92);
    display: grid;
    gap: clamp(32px, 6vw, 64px);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.showcase-card {
    background: rgba(15, 15, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
}

.showcase-card figure {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: clamp(20px, 3vw, 28px);
}

.showcase-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.showcase-card h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.showcase-card p {
    color: rgba(245, 245, 245, 0.75);
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    line-height: 1.6;
}

.showcase-footer {
    padding: 48px clamp(24px, 8vw, 160px) 72px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-footer p {
    margin: 0;
    color: rgba(245, 245, 245, 0.64);
}

.showcase-footer__link {
    color: var(--text-light, #f5f5f5);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.showcase-footer__link:hover {
    opacity: 0.7;
}

@media (max-width: 640px) {
    .showcase-hero {
        min-height: auto;
        padding-top: clamp(140px, 30vh, 220px);
    }

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

#hero h1 {
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 0;
}

#hero p {
    font-size: clamp(1.1rem, 3vw, 1.7rem);
}

.scroll-down {
    font-size: 2em;
    color: white;
    text-decoration: none;
    /* margin-top: 32px; */
    animation: slide 2.3s infinite ease-in-out;
    display: inline-block;
}

@keyframes slide {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.section-padding {
    padding: clamp(80px, 18vh, 140px) clamp(24px, 8vw, 140px);
    position: relative;
    background-color: rgba(8, 8, 10, 0.92);
    color: var(--text-light);
}

.section-dark {
    background: rgba(5, 5, 7, 0.92);
    color: var(--text-light);
}

.section-dark p {
    color: rgba(249, 249, 251, 0.72);
}

.section-header {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-dark .section-header p {
    color: rgba(249, 249, 251, 0.68);
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.studio {
    background: radial-gradient(circle at top right, rgba(79, 70, 255, 0.25), transparent 55%),
                rgba(10, 10, 16, 0.96);
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.studio-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 520px;
}

.studio-meta {
    display: grid;
    gap: 20px;
}

.meta-block {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(249, 249, 251, 0.08);
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.meta-value {
    font-size: 1rem;
    color: var(--text-light);
}

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

.capability-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.section-dark .capability-card {
    background: rgba(34, 36, 44, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

.capability-card i {
    font-size: 1.6rem;
    color: var(--accent);
}

.capability-card h3 {
    font-size: 1.3rem;
}

.capability-card p {
    font-size: 0.95rem;
    color: rgba(249, 249, 251, 0.75);
}

.capability-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 210, 63, 0.5);
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: process;
}

.process-steps li {
    padding: 32px 28px;
    background: rgba(18, 18, 24, 0.92);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(249, 249, 251, 0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-alt);
}

.process-steps li h3 {
    font-size: 1.35rem;
    color: var(--text-light);
}

.process-steps li p {
    color: rgba(249, 249, 251, 0.68);
    font-size: 0.95rem;
}

.work {
    background: linear-gradient(120deg, rgba(15, 16, 18, 1) 0%, rgba(24, 26, 34, 1) 60%, rgba(43, 45, 58, 1) 100%);
}

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

.work-card {
    padding: 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(10px);
}

.work-tag {
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.work-card h3 {
    font-size: 1.5rem;
}

.work-card p {
    color: rgba(249, 249, 251, 0.72);
}

.work-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: rgba(249, 249, 251, 0.6);
}

.clients {
    background: radial-gradient(circle at left top, rgba(255, 210, 63, 0.18), transparent 60%),
                rgba(9, 9, 12, 0.96);
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
}

.client-list span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(249, 249, 251, 0.1);
}

.shop-cta {
    text-align: center;
}

.shop-button {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent-alt), #6f5bff);
    color: white;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(79, 70, 255, 0.3);
}

.contact {
    background: rgba(8, 8, 10, 0.95);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-meta a {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-meta p {
    color: rgba(249, 249, 251, 0.62);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid rgba(249, 249, 251, 0.18);
    padding-bottom: 4px;
}

.social-links a:hover {
    color: var(--accent-alt);
    border-color: var(--accent-alt);
}

.contact-form form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    padding: 16px;
    border: 1px solid rgba(249, 249, 251, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-alt);
    outline: none;
    background: rgba(79, 70, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(79, 70, 255, 0.18);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button {
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent-alt), #3829ff);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(56, 41, 255, 0.25);
}

#form-message {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(249, 249, 251, 0.66);
}

footer {
    padding: 28px clamp(24px, 8vw, 140px);
    background: var(--bg-dark);
    color: rgba(249, 249, 251, 0.7);
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.will-animate {
    opacity: 0;
    transform: translateY(24px);
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .studio-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding: 0 12px;
    }

    .section-padding {
        padding: 72px 24px;
    }

    .capabilities-grid,
    .process-steps,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .shop-button {
        width: 100%;
    }

    .client-list {
        gap: 14px 20px;
    }
}

@media (max-width: 520px) {
    .menu-button {
        top: 16px;
        right: 16px;
    }

    #hero h1 {
        font-size: 2.6rem;
    }

    #hero p {
        font-size: 1.1rem;
    }
}

/* AI Assistant Section */
.ai-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
}

.ai-section .section-header {
    margin: 0 auto 48px;
    align-items: center;
    text-align: center;
}

.ai-section .section-header h2 {
    font-family: 'Fustat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.ai-section .section-header p {
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* Global language switcher */
.lang-switcher-global {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 1000;
}

.lang-btn {
    background: rgba(10,10,12,0.82);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.lang-btn.active {
    background: #25D366;
    border-color: #25D366;
    color: #000;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.ai-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px;
    text-align: left;
    transition: all 0.3s ease;
}

.ai-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
    border-color: #25D366;
}

.ai-tag {
    display: inline-block;
    background: #25D366;
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-card h3 {
    font-family: 'Fustat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.ai-card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}

.ai-cta {
    margin-top: 40px;
}

.ai-cta .cta-button {
    display: inline-block;
    background: #25D366;
    color: #000;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ai-cta .cta-button:hover {
    background: #1da851;
    transform: scale(1.02);
}
