/*
 * Blocksize One - Professional Website Styles
 * Refined Executive Design System
 */

/* ===== Local Font Definitions ===== */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../webfonts/sora/sora-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../webfonts/inter/inter-variable.woff2') format('woff2');
}

/* ===== CSS Variables ===== */
:root {
    /* Typography */
    --font-display: 'Sora', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Colors - Vibrant Indigo/Blue Accent */
    --accent-primary: #4361EE;
    --accent-light: #5A7BFF;
    --accent-dark: #3651D4;
    --accent-glow: rgba(67, 97, 238, 0.2);

    /* Backgrounds - Deep Navy */
    --bg-primary: #090E1A;
    --bg-secondary: #0D1525;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(25, 35, 60, 0.9);
    --bg-elevated: rgba(30, 41, 70, 0.6);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-subtle: rgba(255, 255, 255, 0.45);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);
    --border-medium: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(67, 97, 238, 0.35);

    /* Sizing */
    --max-width: 1200px;
    --content-width: 900px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

/* Override legacy template link colors */
a {
    color: var(--accent-primary);
    border-bottom: none;
}

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

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

body {
    font-family: var(--font-body);
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
    padding: 0 !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Gradient glow at top */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(67, 97, 238, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#bg {
    display: none !important;
}

/* ===== Page Structure ===== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.page-content {
    flex: 1;
    padding: 0 2em;
}

@media screen and (max-width: 736px) {
    .page-content {
        padding: 0 1.5em;
    }
}

/* ===== Navigation ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 14, 26, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2em;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border: none !important;
    transition: opacity var(--transition-fast);
}

.nav-logo::after {
    display: none !important;
}

.nav-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    border: none;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-body);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5em 0;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-smooth);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-primary) !important;
    color: white !important;
    padding: 0.7em 1.6em !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
    box-shadow: 0 2px 12px rgba(67, 97, 238, 0.3);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.45);
}

.nav-lang {
    display: flex;
    gap: 0.25em;
    margin-left: 2em;
    padding-left: 2em;
    border-left: 1px solid var(--border-subtle);
}

.nav-lang a {
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 500;
    padding: 0.4em 0.7em;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-lang a:hover {
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

.nav-lang a.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4em;
    cursor: pointer;
    padding: 0.5em;
    transition: color var(--transition-fast);
}

.nav-toggle:hover {
    color: var(--accent-primary);
    background-color: transparent !important;
}

.nav-toggle:active {
    background-color: transparent !important;
}

@media screen and (max-width: 900px) {
    .nav-container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        background: transparent;
        height: 44px;
        width: 44px;
        padding: 0;
        border-radius: 8px;
        transition: background-color var(--transition-fast);
    }

    .nav-container:has(.nav-links.active) .nav-toggle,
    .nav-container:has(.nav-links.active) .nav-toggle:hover,
    .nav-container:has(.nav-links.active) .nav-toggle:active {
        background: var(--accent-primary) !important;
        color: white;
    }

    .nav-lang {
        order: 2;
        margin-left: auto;
        margin-right: 0.5em;
        border-left: none;
        padding-left: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(9, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5em 2em 2em;
        gap: 0;
        border-bottom: 1px solid var(--border-subtle);
        order: 4;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1.2em 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1em;
        text-align: center;
        display: block;
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 2em 100px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 5em;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 0.6em;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    animation: heroFadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-text h1 strong {
    font-weight: 600;
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-bottom: 2em;
    line-height: 1.7;
    max-width: 540px;
    animation: heroFadeUp 0.8s ease-out 0.15s forwards;
    opacity: 0;
}

.hero-subtitle-mobile {
    display: none;
}

.hero-subtitle-desktop {
    display: block;
}

.hero-cta {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-photo {
    position: relative;
    animation: heroFadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    width: fit-content;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: rgba(67, 97, 238, 0.2);
    border-radius: 20px;
    z-index: -1;
}

.hero-photo img {
    display: block;
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border-subtle);
    transition: transform var(--transition-smooth);
}

.hero-photo:hover img {
    transform: scale(1.02);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 900px) {
    .hero {
        padding: 130px 1.5em 70px;
    }

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

    /* 1. Headline: improve readability */
    .hero-text h1 {
        font-size: 2.8em;
        line-height: 1.25;
        margin-bottom: 0.8em;
    }

    /* 2 & 3. Mobile subheader styling */
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle-desktop {
        display: none;
    }

    .hero-subtitle-mobile {
        display: block;
        font-size: 1.1em;
        line-height: 1.55;
        max-width: 34ch;
        margin-bottom: 1.5em;
    }

    /* 4. Spacing already handled via margins above */

    /* 5. CTA buttons polish */
    .hero-cta {
        justify-content: center;
        gap: 1.2em;
    }

    .hero-cta .btn {
        padding: 1.1em 2.2em;
    }

    /* 6. Image: reduce dominance */
    .hero-photo {
        order: 1;
        width: fit-content;
        margin: 0 auto;
    }

    .hero-photo::before {
        display: none;
    }

    .hero-photo img {
        max-width: 200px;
        max-height: 240px;
        object-fit: cover;
        margin: 0 auto;
        display: block;
    }
}

/* ===== Buttons ===== */
.btn {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1em 2em;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.01em;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.35);
}

.btn-primary:hover {
    background: var(--accent-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.5);
    color: white !important;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: rgba(25, 35, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.15em 2.4em;
    font-size: 1em;
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5em 2em;
    position: relative;
    overflow: hidden;
}

.trust-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.trust-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    padding: 0 1.5em;
    position: relative;
    line-height: 1.5;
}

.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--border-light);
}

.trust-item strong {
    display: block;
    font-size: 1.6em;
    font-family: var(--font-display);
    color: var(--accent-primary);
    margin-bottom: 0.2em;
}

@media screen and (max-width: 900px) {
    .trust-bar-inner {
        gap: 1.5em;
    }

    .trust-item {
        flex: 1 1 45%;
        padding: 0.5em;
        font-size: 0.85em;
    }

    .trust-item:not(:last-child)::after {
        display: none;
    }
}

/* ===== Sections ===== */
.section {
    padding: 5em 2em 6em;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-narrow {
    max-width: var(--content-width);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4em;
    text-align: center;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--text-muted);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5em;
    line-height: 1.7;
}

@media screen and (max-width: 736px) {
    .section {
        padding: 4em 1.5em;
    }

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

/* ===== Service Cards ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

@media screen and (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 2.5em;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border-accent);
}

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

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8em;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.service-card .for-text {
    font-size: 0.85em;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
    white-space: nowrap;
}

.service-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    transition: all var(--transition-fast);
    margin-top: auto;
    white-space: nowrap;
}

.service-card a:hover {
    color: var(--accent-light);
    gap: 0.8em;
}

/* ===== Service Card Lists ===== */
.for-list {
    list-style: none;
    padding: 0;
    margin: 0.5em 0 1.5em 0;
}

.for-list li {
    padding-left: 1.4em;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 0.4em;
}

.for-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ===== How I Work ===== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.how-item {
    text-align: center;
    padding: 2em;
}

.how-item h4 {
    font-family: var(--font-display);
    font-size: 1.3em;
    color: var(--accent-primary);
    margin-bottom: 0.8em;
    font-weight: 400;
}

.how-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 6em 2em;
    background: linear-gradient(180deg, transparent, var(--accent-glow) 50%, transparent);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.6em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4em;
    letter-spacing: -0.03em;
}

.cta-section p {
    font-size: 1.15em;
    color: var(--text-muted);
    margin-bottom: 2em;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Content Sections ===== */
.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 3em;
    margin-bottom: 2em;
    transition: border-color var(--transition-fast);
}

.content-section:hover {
    border-color: var(--border-light);
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1em;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-family: var(--font-body);
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 2em 0 0.8em;
    font-weight: 600;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1em;
}

.content-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1em 0;
    padding-left: 0;
    list-style: none;
}

.content-section ul li {
    margin-bottom: 0.6em;
    padding-left: 1.4em;
    position: relative;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.content-section strong {
    color: var(--text-primary);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2.5em;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--border-subtle));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5em;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5em;
    top: 0.3em;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-left: -5px;
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-item h4 {
    font-family: var(--font-display);
    font-size: 1.25em;
    color: var(--text-primary);
    margin-bottom: 0.3em;
    font-weight: 400;
}

.timeline-item .role {
    color: var(--accent-primary);
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 0.3em;
}

.timeline-item .date {
    color: var(--text-subtle);
    font-size: 0.9em;
    margin-bottom: 1em;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Page Headers ===== */
.page-header {
    padding: 140px 2em 2em;
    text-align: center;
    max-width: var(--content-width);
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.6em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5em;
    letter-spacing: -0.03em;
    animation: heroFadeUp 0.6s ease-out forwards;
    opacity: 0;
}

.page-header p {
    font-size: 1.15em;
    color: var(--text-muted);
    line-height: 1.7;
    animation: heroFadeUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

@media screen and (max-width: 736px) {
    .page-header {
        padding: 120px 1.5em 40px;
    }

    .page-header h1 {
        font-size: 2.2em;
    }
}

/* ===== Featured Work ===== */
.featured-work {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    padding: 3em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: center;
}

.featured-work-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.featured-work-content h3 {
    font-family: var(--font-display);
    font-size: 1.9em;
    color: var(--text-primary);
    margin-bottom: 0.4em;
    font-weight: 400;
}

.featured-work-content .subtitle {
    color: var(--accent-primary);
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 1.5em;
}

.featured-work-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5em;
}

@media screen and (max-width: 800px) {
    .featured-work {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .featured-work-image {
        order: -1;
    }

    .featured-work-image img {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===== Case Study Cards ===== */
.case-study-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    margin-bottom: 2em;
    transition: all var(--transition-smooth);
}

.case-study-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.case-study-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.case-study-image {
    background: rgba(0, 0, 0, 0.3);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
}

.case-study-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.case-study-content {
    padding: 2.5em;
}

.case-study-content h3 {
    font-family: var(--font-display);
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 0.3em;
    font-weight: 400;
}

.case-study-content .subtitle {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1.5em;
}

.case-study-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1em;
}

@media screen and (max-width: 800px) {
    .case-study-card.featured {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.4em;
    color: var(--text-primary);
    margin-bottom: 1em;
    font-weight: 400;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2em;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1em;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1.2em 1.5em;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
    transform: translateX(4px);
}

.contact-link .icon {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

@media screen and (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5em 2em;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
}

.footer-links {
    display: flex;
    gap: 2em;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 1em;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2em;
    transition: all var(--transition-fast);
    padding: 0.5em;
    border-radius: 8px;
}

.footer-social a:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.footer-copyright {
    color: var(--text-subtle);
    font-size: 0.85em;
    width: 100%;
    text-align: center;
    margin-top: 1.5em;
    padding-top: 2em;
    border-top: 1px solid var(--border-subtle);
}

@media screen and (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1em 2em;
    }
}

/* ===== Collapsible Sections ===== */
.collapsible-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color var(--transition-fast);
}

.collapsible-trigger:hover {
    color: var(--accent-primary);
}

.toggle-icon {
    transition: transform var(--transition-smooth);
    font-size: 0.7em;
    opacity: 0.6;
}

.collapsible-trigger.open .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    overflow: hidden;
    max-height: 5000px;
    transition: max-height 0.5s ease;
}

.collapsible-content.collapsed {
    max-height: 0;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.mb-3 { margin-bottom: 3em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Selection ===== */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* ===== Focus States ===== */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* ===== Mobile Responsive Fixes ===== */
@media screen and (max-width: 900px) {
    /* Content sections mobile padding */
    .content-section {
        padding: 2em 1.5em;
    }

    /* Featured work grid mobile */
    .featured-work {
        grid-template-columns: 1fr;
        padding: 2em;
    }
}

@media screen and (max-width: 736px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
    }

    .page-wrapper {
        overflow-x: hidden;
    }

    /* Content section text handling */
    .content-section {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .content-section h3 {
        font-size: 1.1em;
    }

    /* About page photo + text grid - force stack */
    .content-section > div[style*="grid-template-columns"],
    .content-section > div[style*="grid"] {
        display: block !important;
        text-align: center;
    }

    .content-section > div[style*="grid-template-columns"] > div,
    .content-section > div[style*="grid"] > div {
        margin-bottom: 1.5em;
        text-align: left;
    }

    .content-section > div[style*="grid-template-columns"] > div:first-child,
    .content-section > div[style*="grid"] > div:first-child {
        text-align: center;
    }

    .content-section > div[style*="grid-template-columns"] img,
    .content-section > div[style*="grid"] img {
        max-width: 180px;
        margin: 0 auto 1.5em;
        display: block;
    }

    /* Hero photo centering */
    .hero-photo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-photo img {
        margin: 0 auto;
    }

    /* Page header mobile */
    .page-header h1 {
        font-size: 1.8em;
    }

    .page-header p {
        font-size: 1em;
    }

    /* Section padding mobile */
    .section {
        padding: 3em 1em;
    }

    .section-narrow {
        padding-left: 1em;
        padding-right: 1em;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.9em 1.5em;
        font-size: 0.9em;
    }

    .btn-lg {
        padding: 1em 1.8em;
    }

    /* CTA sections mobile */
    .content-section[style*="text-align: center"] {
        padding: 2em 1.5em;
    }
}

@media screen and (max-width: 480px) {
    /* Very small screens */
    .nav-container {
        height: 60px;
    }

    .nav-logo img {
        height: 24px;
    }

    .nav-lang {
        right: 55px;
        top: 16px;
    }

    .nav-lang a {
        padding: 0.3em 0.6em;
        font-size: 0.8em;
    }

    .page-header {
        padding: 100px 1em 30px;
    }

    .page-header h1 {
        font-size: 1.5em;
    }

    .content-section {
        padding: 1.5em 1em;
        border-radius: 12px;
    }

    .content-section h2 {
        font-size: 1.3em;
    }

    /* Hero mobile fixes */
    .hero {
        padding: 100px 1em 50px;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-photo img {
        max-width: 200px;
    }
}

/* ===== About Page Intro ===== */
.about-intro {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5em;
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-details h2 {
    margin-top: 0;
}

.about-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media screen and (max-width: 736px) {
    .about-intro {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .about-photo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5em;
    }

    .about-photo img {
        max-width: 180px;
        margin: 0 auto;
    }

    .about-details h2 {
        margin-top: 0;
        text-align: center;
    }

    .about-details ul {
        list-style: none;
        padding: 0;
        text-align: left;
    }

    .about-details ul li {
        text-align: left;
    }

    .about-details > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6em;
    }

    .about-details > div .btn {
        width: 80%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ===== AI Mini Grid (Homepage) ===== */
.ai-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25em;
}

@media screen and (max-width: 900px) {
    .ai-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
    }
}

@media screen and (max-width: 480px) {
    .ai-mini-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }
}

/* ===== Founder Section ===== */
.founder-section {
    padding: 4em 2em;
}

.founder-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3em;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 2.5em;
}

.founder-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.founder-text h2 {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6em;
    letter-spacing: -0.02em;
}

.founder-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2em;
}

.founder-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    transition: all var(--transition-fast);
}

.founder-link:hover {
    color: var(--accent-light);
    gap: 0.8em;
}

@media screen and (max-width: 736px) {
    .founder-section {
        padding: 3em 1.5em;
    }

    .founder-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2em 1.5em;
    }

    .founder-photo {
        max-width: 160px;
        margin: 0 auto;
    }

    .founder-text h2 {
        font-size: 1.4em;
    }
}

/* ===== Services Summary ===== */
.services-summary {
    text-align: center;
    padding: 2em;
    background: linear-gradient(180deg, var(--bg-card), rgba(0, 191, 165, 0.05));
    border-radius: 16px;
}

.services-summary h2 {
    margin-bottom: 1em;
}

.services-summary p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-muted);
}

.services-summary strong {
    color: var(--text-primary);
}

/* ===== Print Styles ===== */
@media print {
    .site-nav,
    .nav-toggle,
    #bg {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    body::before,
    body::after {
        display: none !important;
    }
}
