/* static/css/style.css */
/* Premium Digital Tourism Custom Styling System - Modern Light Theme */

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

:root {
    --bg-color: #f8fafc; /* Slate 50 */
    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.06);
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --primary: #4f46e5; /* Indigo */
    --primary-glow: rgba(79, 70, 229, 0.12);
    --secondary: #7c3aed; /* Violet */
    --secondary-glow: rgba(124, 58, 237, 0.12);
    --accent: #0d9488; /* Teal */
    --success: #10b981;
    --error: #ef4444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
    --glass-blur: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Preloader overlay style */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preloader-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.preloader-logo {
    max-width: 60px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    animation: preloader-pulse 2s ease-in-out infinite;
}

.preloader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(79, 70, 229, 0.08);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: preloader-spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-percent {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-top: 10px;
}

@keyframes preloader-spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Header / Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    height: 70px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo svg,
.logo-img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.2px;
    color: var(--text-primary);
    text-align: left;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

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

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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25), 0 0 12px var(--secondary-glow);
    color: #ffffff;
}

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

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
    color: var(--primary);
}

/* Homepage Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background-color: #ffffff;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #ffffff url('/futuristic_heritage_digitization_home%20%281%29.png') center center / cover no-repeat;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.98;
}

/* Blends white-bg video natively to the light layout without muting/washing it out */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 80%, var(--bg-color) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80vh;
    display: flex;
    align-items: center;
}

.hero-step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
        background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    padding: 22px 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.02),
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero-step-1 {
    right: 24px;
}

.hero-step-2 {
    left: 24px;
    visibility: hidden;
    opacity: 0;
}

.hero-step-3 {
    right: 24px;
    visibility: hidden;
    opacity: 0;
}

.hero h1 {
    font-size: clamp(19px, 2.4vw, 30px);
    font-weight: 800;
    color: #000000;
    -webkit-text-fill-color: initial;
    background: none;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Storytelling scroll sections */
.story-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 48px;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.5px;
}

/* Interactive Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.06), 0 0 20px rgba(79, 70, 229, 0.02);
}

.service-card:hover,
.service-text-card:hover {
    transform: none;
    border-color: var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.card-link svg {
    transition: var(--transition);
}

.card:hover .card-link svg {
    transform: translateX(4px);
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    gap: 32px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.team-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.08);
    transform: translateY(-8px);
}

.team-avatar {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    background: transparent;
    transition: transform 0.5s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.03);
}

.team-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.team-role {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.team-resume-page {
    padding-top: 132px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 1) 42%),
        var(--bg-primary);
}

.team-resume-container {
    max-width: 1040px;
}

.team-resume-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.team-resume-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-resume-back:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.team-resume-hero {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--card-border);
}

.team-resume-photo {
    width: 188px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: #f1f5f9;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.team-resume-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.team-resume-heading h1 {
    max-width: 720px;
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.team-resume-role {
    max-width: 740px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.55;
}

.team-resume-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.team-resume-side {
    position: sticky;
    top: 100px;
}

.team-resume-card,
.team-resume-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.team-resume-card {
    padding: 22px;
}

.team-resume-card h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.team-resume-contacts {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-resume-contacts li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.team-resume-contact-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.team-resume-contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-resume-contact-text {
    min-width: 0;
}

.team-resume-contact-text small {
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-resume-contact-text a,
.team-resume-contact-text strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.team-resume-contact-text a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-resume-content {
    padding: 34px 38px;
}

.team-resume-lead {
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.72;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.team-resume-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.team-resume-text h2 {
    margin: 30px 0 10px;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.25;
}

.team-resume-text h2:first-child {
    margin-top: 0;
}

.team-resume-text p {
    margin: 0 0 14px;
}

.team-resume-muted {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Asymmetric Grid (Masonry tile effect) */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.06);
}

.project-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
}

.project-card-link svg {
    transition: var(--transition);
}

.project-card:hover .project-card-link svg {
    transform: translateX(4px);
}

/* Asymmetric styling on desktop */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
        gap: 32px;
    }
    
    .project-card-0 {
        grid-column: 1;
        grid-row: 1 / 3; /* Tall card */
    }
    .project-card-0 .project-card-image {
        height: 320px;
    }
    
    .project-card-1 {
        grid-column: 2;
        grid-row: 1; /* Normal card */
    }
    .project-card-1 .project-card-image {
        height: 120px;
    }
    .project-card-1 .project-card-info {
        padding: 16px 24px;
    }
    .project-card-1 .project-card-desc {
        display: none; /* Hide desc on short card for fit */
    }
    .project-card-1 .project-card-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    .project-card-1 .project-card-tag {
        margin-bottom: 4px;
    }
    
    .project-card-2 {
        grid-column: 2;
        grid-row: 2; /* Normal card */
    }
    .project-card-2 .project-card-image {
        height: 120px;
    }
    .project-card-2 .project-card-info {
        padding: 16px 24px;
    }
    .project-card-2 .project-card-desc {
        display: none; /* Hide desc on short card for fit */
    }
    .project-card-2 .project-card-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    .project-card-2 .project-card-tag {
        margin-bottom: 4px;
    }
    
    .project-card-3 {
        grid-column: 3;
        grid-row: 1 / 3; /* Tall card */
    }
    .project-card-3 .project-card-image {
        height: 320px;
    }
}

/* Partners Marquee */
.partners-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 40px 0;
    background: rgba(15, 23, 42, 0.015);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    gap: 60px;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.marquee-item img {
    max-height: 100%;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.2) contrast(0.8);
    opacity: 0.5;
    transition: var(--transition);
}

.marquee-item img:hover {
    filter: none;
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 400px;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contacts p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tabs System (Project Details) */
.tabs-container {
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 30px;
    gap: 8px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* 3D Model Container */
.model-viewer-wrapper {
    width: 100%;
    height: 600px;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.model-controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Gallery Lightbox */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.15);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Interactive Digital Archive */
.archive-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Contact form & login forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid var(--success);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid var(--error);
    color: #991b1b;
}

/* Responsive Overrides */
.mobile-menu-toggle {
    display: none;
}
.mobile-nav-buttons {
    display: none;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation & Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    #site-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 32px 32px 32px;
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }
    
    #site-navigation.active {
        left: 0;
    }
    
    #site-navigation a {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        width: 100%;
        text-align: left;
    }
    
    #site-navigation a::after {
        display: none;
    }
    
    .mobile-nav-buttons {
        display: block;
        margin-top: 24px;
        width: 100%;
    }
    
    .nav-buttons {
        display: none !important;
    }
    
    /* Header Adjustments for Mobile */
    header {
        height: 70px;
        padding: 0;
    }
    
    header.scrolled {
        height: 60px;
    }
    
    header .container {
        padding: 0 16px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 11px;
        line-height: 1.15;
    }
    
    /* Grid Adaptations */
    .grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .model-viewer-wrapper {
        height: 350px;
    }
    
    /* Footer Adjustments for Mobile */
    footer {
        padding: 48px 0 24px 0;
    }
    
    footer .container {
        padding: 0 16px;
        display: block; /* reset flex layout so items stack vertically */
    }
    
    .footer-logo {
        margin-bottom: 16px;
    }
    
    .footer-logo .logo-img {
        height: 32px;
    }
    
    .footer-logo .logo-text {
        font-size: 11px;
        line-height: 1.15;
    }

    /* Hero Section Mobile Overrides */
    .hero {
        height: 100vh;
        min-height: auto;
        padding-top: 70px;
    }
    
    .hero-content {
        height: 100%;
        padding: 0 16px;
        position: relative;
        display: block; /* remove flexbox centering */
    }
    
    .hero-step {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
        bottom: 40px !important;
        transform: none !important;
        padding: 20px !important;
        border-radius: 20px !important;
        box-sizing: border-box;
    }
    
    .hero h1 {
        font-size: clamp(20px, 5.5vw, 24px) !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }
    
    .hero p {
        font-size: 13px !important;
        margin-bottom: 14px !important;
        line-height: 1.5 !important;
    }
    
    .hero .btn {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    /* Mobile Horizontal Slider Layout (for lists that should scroll) */
    .slider-mobile {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px !important;
        padding: 10px 0 24px 0 !important;
        scroll-padding-left: 0 !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .slider-mobile::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari and Opera */
    }
    
    .slider-mobile > div {
        flex: 0 0 85% !important;
        scroll-snap-align: start !important;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    .team-grid.slider-mobile {
        justify-content: flex-start !important;
    }

    .team-resume-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .team-resume-page {
        padding-top: 104px !important;
    }

    .team-resume-hero {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
        padding-bottom: 20px !important;
    }

    .team-resume-photo {
        width: 92px !important;
        border-radius: 14px !important;
    }

    .team-resume-heading h1 {
        font-size: 28px !important;
        line-height: 1.12 !important;
        margin: 8px 0 8px !important;
    }

    .team-resume-role {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .team-resume-side {
        position: static !important;
    }

    .team-resume-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .team-resume-content {
        padding: 22px !important;
        border-radius: 16px !important;
    }

    .team-resume-lead {
        font-size: 16px !important;
    }

    .team-resume-text {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .team-resume-text h2 {
        font-size: 18px !important;
    }

    .partners-marquee {
        padding: 28px 0 !important;
    }

    .marquee-content {
        gap: 42px !important;
        animation-duration: 36s !important;
    }

    .marquee-item {
        min-width: 112px !important;
        height: 58px !important;
    }

    .marquee-item img {
        max-width: 112px !important;
        max-height: 42px !important;
        filter: none !important;
        opacity: 0.85 !important;
    }

    /* Projects Grid Mobile Stacking Override (from crooked desktop grid to simple vertical list) */
    .projects-grid:not(.slider-mobile) {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 24px !important;
    }

    .projects-grid.slider-mobile {
        display: flex !important;
        grid-template-columns: none !important;
        grid-auto-rows: auto !important;
        justify-content: flex-start !important;
    }
    
    .project-card-0, .project-card-1, .project-card-2, .project-card-3 {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .project-card-0 .project-card-image,
    .project-card-3 .project-card-image {
        height: 240px !important;
    }
    
    .project-card-1 .project-card-image,
    .project-card-2 .project-card-image {
        height: 200px !important;
        display: block !important;
    }
    
    .project-card-1 .project-card-info,
    .project-card-2 .project-card-info {
        padding: 30px !important;
    }
    
    .project-card-1 .project-card-desc,
    .project-card-2 .project-card-desc {
        display: block !important;
    }

    /* About Intro Mobile Stacking (converts 2 columns to 1 stacked column) */
    #about-intro .container {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}
