/* ==============================
   POTOS CMS - Frontend Styles
   Pixel-perfect match to topos.nl
   ============================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height, 90px); }

:root {
    --primary: #1a1a1a;
    --primary-light: #2a2a2a;
    --accent: #c8a97e;
    --white: #ffffff;
    --light-gray: #f7f7f7;
    --text: #333333;
    --text-light: #777777;
    --heading-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1320px;
    --header-height: 90px;
    --transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 50px;
}

/* ==============================
   HEADER — matches topos.nl
   ============================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-header.scrolled .nav-list > .nav-item > a { color: var(--primary); }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block !important; }
.site-header.scrolled .logo-text { color: var(--primary); }
.site-header.scrolled .header-icon { color: var(--primary); border-color: rgba(0,0,0,0.2); }
.site-header.scrolled .btn-cta { color: var(--primary); border-color: var(--primary); background: transparent; }
.site-header.scrolled .btn-cta:hover { background: var(--primary); color: var(--white); }

/* Dark header for pages without hero background */
.header-dark .site-header {
    background: var(--white);
    box-shadow: 0 1px 30px rgba(0,0,0,0.08);
}
.header-dark .site-header .nav-list > .nav-item > a { color: var(--primary); }
.header-dark .site-header .logo-light { display: none; }
.header-dark .site-header .logo-dark { display: block !important; }
.header-dark .site-header .logo-text { color: var(--primary); }
.header-dark .site-header .header-icon { color: var(--primary); border-color: rgba(0,0,0,0.2); }
.header-dark .site-header .header-icon:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.header-dark .site-header .btn-cta { color: var(--primary); border-color: var(--primary); }
.header-dark .site-header .btn-cta:hover { background: var(--primary); color: var(--white); }
.header-dark .site-header .mobile-toggle span { background: var(--primary); }

/* Homepage: full-screen, no scroll - only hero visible */
.is-homepage { overflow: hidden; height: 100vh; }
.is-homepage .site-main { height: calc(100vh - 0px); overflow: hidden; }
.is-homepage .site-footer { display: none; }

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.site-logo img { height: 44px; width: auto; }
.logo-dark { display: none !important; }
.logo-text {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav { display: flex; align-items: center; flex: 1; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-item { position: relative; }

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.nav-item > a:hover { opacity: 0.75; }

.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

/* Dropdown */
.nav-item .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 230px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu li a {
    display: block;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--primary);
    padding-left: 28px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.site-header.scrolled .header-icon:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.header-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 17px;
    transition: var(--transition);
}

.header-icon:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.site-header.scrolled .mobile-toggle span { background: var(--primary); }

/* Social Sidebar — like topos.nl LinkedIn icon */
.social-sidebar {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 100;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.social-sidebar a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ==============================
   TABS HERO — main topos.nl homepage
   ============================== */
.section-tabs-hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.tabs-hero-slider {
    position: absolute;
    inset: 0;
}

.tabs-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}

.tabs-hero-slide.active { opacity: 1; }

.tabs-hero-slide .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.35) 100%);
}

.tabs-hero-nav {
    position: absolute;
    bottom: 12vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    z-index: 5;
    padding: 0 50px;
}

.tab-item {
    padding: 28px 50px;
    color: rgba(255,255,255,0.85);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.tab-item.active { color: #ffffff; }

.tab-item::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--white);
    transition: width 0.4s cubic-bezier(.4,0,.2,1), left 0.4s cubic-bezier(.4,0,.2,1);
}

.tab-item.active::after {
    width: 50%;
    left: 25%;
}

.tab-item:hover {
    color: #ffffff;
}

.tab-item:hover::after {
    width: 50%;
    left: 25%;
}

/* Tabs Hero Style 2: Top Tabs */
.tabs-hero-style-2 .tabs-hero-nav {
    top: 100px;
    bottom: auto;
}

.tabs-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 4;
}

.tabs-hero-content h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
}

/* ==============================
   HERO SECTIONS
   ============================== */
.section-hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 40px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    font-size: 15px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Style 1: Dark Overlay Center */
.hero-style-1 .hero-overlay { background: rgba(0,0,0,0.4); }
.hero-style-1 .hero-content { text-align: center; }

/* Hero Style 2: Light Bottom Left */
.hero-style-2 .hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.hero-style-2 .hero-content { text-align: left; align-self: flex-end; padding-bottom: 80px; }
.hero-style-2 { justify-content: flex-start; padding-left: 5%; }

/* Hero Style 3: Minimal */
.hero-style-3 .hero-overlay { background: rgba(0,0,0,0.15); }
.hero-style-3 { height: 70vh; min-height: 400px; }

/* ==============================
   TEXT SECTION — elegant intro style
   ============================== */
.section-text {
    padding: 100px 0;
}

.text-section-inner { padding: 0 50px; }

.text-style-1 .text-section-inner { text-align: center; max-width: 850px; margin: 0 auto; }
.text-style-2 .text-section-inner { text-align: left; max-width: 900px; }
.text-style-3 { padding: 100px 0; background-size: cover; background-position: center; }
.text-style-3 .text-section-inner { text-align: center; max-width: 800px; margin: 0 auto; }

.section-title {
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: inherit;
    letter-spacing: -0.8px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
}

.text-style-1 .section-subtitle { margin-left: auto; margin-right: auto; }

.section-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
}

.section-content p { margin-bottom: 16px; }
.section-content h3 { font-size: 24px; margin: 24px 0 12px; color: var(--text); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ==============================
   CONTENT BLOCK
   ============================== */
.section-content-block {
    padding: 110px 0;
}

.content-block-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Style 1: Image Left (default) */
.content-style-1 .content-block-image { order: 1; }
.content-style-1 .content-block-text { order: 2; }

/* Style 2: Image Right */
.content-style-2 .content-block-image { order: 2; }
.content-style-2 .content-block-text { order: 1; }

/* Style 3: Full Width */
.content-style-3 .content-block-inner {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}
.content-style-3 .content-block-image { max-height: 500px; overflow: hidden; border-radius: 12px; }

.content-block-image {
    min-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.content-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

.content-block-image:hover img { transform: scale(1.03); }

.content-block-text .section-title {
    font-size: clamp(26px, 2.8vw, 40px);
    margin-bottom: 16px;
}

.content-block-text .section-subtitle {
    font-size: 17px;
    margin-bottom: 24px;
}

/* ==============================
   CARDS GRID
   ============================== */
.section-cards-grid {
    padding: 100px 0;
}

.cards-grid {
    display: grid;
    gap: 30px;
}

.cards-style-1 .cards-grid { grid-template-columns: repeat(3, 1fr); }
.cards-style-2 .cards-grid { grid-template-columns: repeat(4, 1fr); }
.cards-style-3 .cards-grid { grid-template-columns: repeat(3, 1fr); }

.card-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.1);
}

.card-image {
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-item:hover .card-image img { transform: scale(1.06); }

.card-body {
    padding: 28px;
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.card-title a { color: var(--primary); }
.card-title a:hover { color: var(--text-light); }

.card-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Masonry style */
.cards-style-3 .card-item:nth-child(3n+1) .card-image { height: 300px; }
.cards-style-3 .card-item:nth-child(3n+2) .card-image { height: 200px; }
.cards-style-3 .card-item:nth-child(3n+3) .card-image { height: 260px; }

/* ==============================
   PROJECTS GRID — topos.nl style
   ============================== */
.section-projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projects-style-2 .projects-grid { grid-template-columns: 1fr; }

.project-item {
    border-radius: 10px;
    overflow: hidden;
}

.project-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    padding: 12px 30px;
    border: 1.5px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.project-link:hover {
    background: var(--white);
    color: var(--primary);
}

.project-info {
    padding: 20px 4px;
}

.project-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.2px; }
.project-info h3 a { color: var(--primary); }
.project-info h3 a:hover { color: var(--text-light); }
.project-info p { font-size: 14px; color: var(--text-light); }

/* Projects Style 2: List View */
.projects-style-2 .project-item {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.projects-style-2 .project-image { height: 280px; border-radius: 10px; }
.projects-style-2 .project-info h3 { font-size: 24px; }

/* ==============================
   CTA BANNER
   ============================== */
.section-cta {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-cta > .hero-overlay {
    background: rgba(26,26,26,0.7);
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    margin-bottom: 18px;
    color: inherit;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.85;
    line-height: 1.7;
}

/* CTA Style 1: Full Width Dark */
.cta-style-1 { background-color: var(--primary); }
.cta-style-1 .cta-inner { color: var(--white); }

/* CTA Style 2: Boxed */
.cta-style-2 { padding: 60px 40px; }
.cta-style-2 .cta-inner {
    background: var(--primary);
    color: var(--white);
    padding: 70px;
    border-radius: 16px;
    max-width: 900px;
}

.btn-cta-action {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    font-size: 15px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-cta-action:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==============================
   GALLERY
   ============================== */
.section-gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    gap: 16px;
}

.gallery-style-1 .gallery-grid { grid-template-columns: repeat(3, 1fr); }

.gallery-style-2 .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
}
.gallery-style-2 .gallery-item:nth-child(4n+1) { grid-row: span 2; }

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    font-size: 13px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ==============================
   TEAM GRID
   ============================== */
.section-team {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

/* Team Style 1: Cards */
.team-style-1 .team-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

.team-style-1 .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.1);
}

.team-style-1 .member-photo { height: 300px; overflow: hidden; }
.team-style-1 .member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-style-1 .team-member:hover .member-photo img { transform: scale(1.05); }
.team-style-1 .member-info { padding: 24px; }

/* Team Style 2: Circular */
.team-style-2 .member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}
.team-style-2 .member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.member-role { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.member-bio { font-size: 13px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.member-social { color: var(--primary); font-size: 18px; }
.member-social:hover { color: var(--text-light); }

/* ==============================
   CONTACT
   ============================== */
.section-contact {
    padding: 100px 0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-style-2 .contact-inner { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.05);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--body-font);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.contact-info-wrap { font-size: 15px; line-height: 1.8; }
.contact-info-wrap h3 { font-size: 22px; margin-bottom: 16px; }

.contact-map {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.contact-map iframe { width: 100%; height: 400px; border: none; }

/* ==============================
   TIMELINE
   ============================== */
.section-timeline {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }

.timeline-content {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.timeline-content p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.timeline-content img { margin-top: 12px; border-radius: 8px; }

/* ==============================
   NEWSLETTER SECTION
   ============================== */
.section-newsletter {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.newsletter-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-inner h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.newsletter-inner p {
    font-size: 16px;
    margin-bottom: 28px;
    color: var(--text-light);
}

.newsletter-inline-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-inline-form input {
    flex: 1;
    padding: 14px 22px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--body-font);
}

.newsletter-inline-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-inline-form button {
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--body-font);
}

.newsletter-inline-form button:hover {
    background: var(--primary-light);
}

/* ==============================
   FOOTER — matches topos.nl
   ============================== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    padding: 70px 0 0;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 70px;
    padding-bottom: 50px;
}

.footer-brand {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 8px;
}

.footer-text a {
    color: rgba(255,255,255,0.6);
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 22px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
}

/* ==============================
   NEWSLETTER POPUP — topos.nl style
   ============================== */
.newsletter-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.15);
    z-index: 900;
    max-width: 380px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.newsletter-popup.show { transform: translateY(0); }

.newsletter-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    transition: var(--transition);
}

.newsletter-close:hover { color: var(--text); }

.newsletter-popup h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    padding-right: 24px;
    line-height: 1.4;
}

.newsletter-popup .btn-newsletter {
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--body-font);
    text-align: center;
    display: inline-block;
    width: auto;
}

.newsletter-popup .btn-newsletter:hover { background: var(--primary-light); }

/* Hide email input in popup — topos.nl only shows "To enrol" button */
.newsletter-popup .newsletter-form input[type="email"] {
    display: none;
}

/* ==============================
   SPACER
   ============================== */
.section-spacer { }

/* ==============================
   404 PAGE
   ============================== */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
}

.error-404-inner {
    text-align: center;
    padding: 40px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.error-404 h2 {
    font-size: 28px;
    margin: 16px 0;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ==============================
   PROJECT DETAIL
   ============================== */
.project-detail-hero {
    margin-top: var(--header-height);
}

.project-hero-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-content {
    padding: 60px 0 80px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.project-detail-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.project-detail-intro {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.project-detail-body p { margin-bottom: 16px; }
.project-detail-body h2, .project-detail-body h3 { margin: 30px 0 14px; font-weight: 600; }
.project-detail-body ul, .project-detail-body ol { margin: 16px 0; padding-left: 24px; }
.project-detail-body li { margin-bottom: 6px; }

.project-meta-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.meta-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.meta-item:last-child { border-bottom: none; }
.meta-item:first-child { padding-top: 0; }

.meta-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
}

.project-gallery {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

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

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

/* ==============================
   VACANCY DETAIL
   ============================== */
.vacancy-detail-hero {
    margin-top: var(--header-height);
    padding: 60px 0 40px;
    background: var(--light-gray);
}

.vacancy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.vacancy-breadcrumb a:hover { color: var(--primary); }
.vacancy-breadcrumb span { color: #ccc; }

.vacancy-detail-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.vacancy-detail-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.vacancy-tag {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vacancy-detail-content {
    padding: 60px 0 80px;
}

.vacancy-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

.vacancy-intro {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.vacancy-section {
    margin-bottom: 40px;
}

.vacancy-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.vacancy-body {
    font-size: 16px;
    line-height: 1.8;
}

.vacancy-body ul { padding-left: 20px; margin: 12px 0; }
.vacancy-body li { margin-bottom: 6px; }

.vacancy-cta {
    margin-top: 50px;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 8px;
}

.vacancy-cta h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.vacancy-cta a { color: var(--accent); font-weight: 500; }
.vacancy-cta a:hover { text-decoration: underline; }

.vacancy-sidebar-card {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 8px;
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.vacancy-sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.vacancy-sidebar-item {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.vacancy-sidebar-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.vacancy-sidebar-item span {
    font-size: 12px;
    color: var(--text-light);
}

.vacancy-sidebar-item:hover strong { color: var(--accent); }

/* ==============================
   VACANCIES SECTION
   ============================== */
.section-vacancies {
    padding: 80px 0;
}

.vacancies-grid {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.vacancy-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.vacancy-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.vacancy-card-body { flex: 1; }

.vacancy-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.vacancy-card-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.vacancy-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.vacancy-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vacancy-card-meta i { font-size: 14px; color: var(--accent); }

.vacancy-card-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--primary);
    margin-left: 20px;
    transition: var(--transition);
    font-size: 16px;
}

.vacancy-card:hover .vacancy-card-arrow {
    background: var(--accent);
    color: var(--white);
}

.vacancies-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.vacancies-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

.vacancies-empty a { color: var(--accent); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .container-custom { padding: 0 30px; }
    .header-inner { padding: 0 30px; }
    .footer-inner { padding: 0 30px; }
    .text-section-inner { padding: 0 30px; }
    .tabs-hero-nav { padding: 0 20px; }
    
    .content-block-inner { grid-template-columns: 1fr; gap: 40px; }
    .content-style-1 .content-block-image, .content-style-2 .content-block-image { order: 1; }
    .content-style-1 .content-block-text, .content-style-2 .content-block-text { order: 2; }
    
    .cards-style-2 .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-detail-grid { grid-template-columns: 1fr; }
    .project-gallery { grid-template-columns: 1fr; }
    .vacancy-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    
    .tab-item { padding: 22px 35px; font-size: 18px; }
    
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 60px; padding-right: 0; text-align: left; }
    .timeline-dot { left: 22px !important; right: auto !important; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }

    body { overflow-x: hidden; }

    .mobile-toggle { display: flex; }

    /* Hamburger to X animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile menu overlay */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: -1;
    }
    .main-nav.open::before {
        opacity: 1;
        visibility: visible;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 90px 0 40px;
        transition: right 0.35s cubic-bezier(.4,0,.2,1);
        z-index: 5;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open { right: 0; }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    /* Force white text in mobile menu regardless of scroll state */
    .nav-item > a,
    .site-header.scrolled .nav-item > a {
        padding: 16px 28px;
        color: var(--white) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Dropdown arrow styling for mobile */
    .nav-item.has-dropdown > a {
        justify-content: space-between;
    }
    .nav-item.has-dropdown > a .dropdown-arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    .nav-item.has-dropdown.dropdown-open > a .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Dropdowns hidden by default on mobile, toggled by tap */
    .nav-item .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding: 0;
    }

    .nav-item.dropdown-open .dropdown-menu {
        max-height: 500px;
        padding: 4px 0;
    }

    .dropdown-menu li a,
    .site-header.scrolled .dropdown-menu li a {
        color: rgba(255,255,255,0.85) !important;
        padding: 14px 28px 14px 44px;
        min-height: 46px;
        display: flex;
        align-items: center;
        font-size: 14px;
    }
    .dropdown-menu li a:hover,
    .site-header.scrolled .dropdown-menu li a:hover {
        color: var(--white) !important;
        background: rgba(255,255,255,0.05);
    }

    .btn-cta { display: none; }
    .header-icon { display: none; }
    .mobile-toggle { width: 44px; height: 44px; }

    /* Lock body scroll when menu is open */
    body.menu-open { overflow: hidden; }

    .section-hero { height: 80vh; min-height: 500px; }
    .section-tabs-hero { height: 100vh; min-height: 600px; }

    /* Mobile tabs hero — vertical stacked layout like topos.nl */
    .tabs-hero-nav {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        bottom: 60px;
        left: 0;
        right: 0;
        padding: 0 24px;
        gap: 0;
    }
    .tab-item {
        padding: 12px 0;
        font-size: 26px;
        font-weight: 700;
        color: rgba(255,255,255,0.55);
        letter-spacing: -0.02em;
        white-space: normal;
        line-height: 1.2;
        min-height: auto;
        border-bottom: none;
    }
    .tab-item.active {
        color: #ffffff;
    }
    .tab-item::after {
        display: none;
    }

    .cards-style-1 .cards-grid,
    .cards-style-2 .cards-grid,
    .cards-style-3 .cards-grid { grid-template-columns: 1fr; }

    .team-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-info { padding: 20px 10px; }
    .project-info h3 { font-size: 20px; color: var(--primary) !important; }
    .project-info h3 a { color: var(--primary) !important; }
    .project-info p { color: var(--text-light) !important; }

    .projects-style-2 .project-item { grid-template-columns: 1fr; }

    .contact-inner { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-form input,
    .contact-form textarea,
    .contact-form select { min-height: 46px; font-size: 16px; }
    .btn-submit { min-height: 48px; padding: 16px 40px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-links a { min-height: 36px; display: inline-block; padding: 4px 0; }

    .newsletter-popup { right: 15px; left: 15px; bottom: 15px; max-width: none; }
    .newsletter-inline-form { flex-direction: column; }
    .newsletter-inline-form input,
    .newsletter-inline-form button { min-height: 46px; }

    .social-sidebar { display: none; }

    /* Fix container overflow */
    .container-custom { max-width: 100%; overflow-x: hidden; }

    /* Improve touch targets */
    .project-link,
    .card-item a,
    .member-card a { min-height: 44px; padding: 12px 24px; }

    /* Vacancies section mobile */
    .vacancy-card { padding: 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .vacancy-card-arrow { margin-left: 0; align-self: flex-end; }
    .vacancy-card-meta { gap: 10px; }
    .section-vacancies { padding: 60px 0; }
}

@media (max-width: 640px) {
    .container-custom { padding: 0 20px; }
    .header-inner { padding: 0 20px; }
    .footer-inner { padding: 0 20px; }
    .text-section-inner { padding: 0 20px; }
    .tabs-hero-nav { padding: 0 20px; }

    body { overflow-x: hidden; }

    .main-nav {
        width: 280px;
        right: -280px;
    }

    .section-hero { height: 75vh; min-height: 450px; }
    .section-tabs-hero { height: 100vh; min-height: 550px; }

    .hero-title { font-size: clamp(28px, 7vw, 48px); }
    .section-title { font-size: clamp(24px, 5vw, 40px); }

    .tab-item { padding: 10px 0; font-size: 22px; }

    .projects-grid,
    .team-grid,
    .cards-grid { gap: 16px; }

    /* Enhanced project section mobile styling */
    .project-item { margin-bottom: 20px; }
    .project-image { height: 280px; border-radius: 8px; }
    .project-info { padding: 16px 8px; }
    .project-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
        color: var(--primary) !important;
        line-height: 1.3;
    }
    .project-info h3 a {
        color: var(--primary) !important;
        display: block;
    }
    .project-info p {
        font-size: 14px;
        color: var(--text-light) !important;
        line-height: 1.6;
    }

    .section-projects,
    .section-team,
    .section-cards,
    .section-content-block,
    .section-contact { padding: 60px 0; }

    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .contact-form .form-group select { min-height: 48px; font-size: 16px; }

    .contact-form .btn-primary { min-height: 48px; padding: 14px 28px; }

    .timeline-item { padding-left: 50px; }
    .timeline::before { left: 24px; }
    .timeline-dot { left: 17px !important; }

    /* Gallery optimizations */
    .gallery-style-1 .gallery-grid,
    .gallery-style-2 .gallery-grid { grid-template-columns: 1fr; }
    .gallery-style-2 .gallery-grid { grid-auto-rows: 250px; }
    .gallery-style-2 .gallery-item:nth-child(4n+1) { grid-row: span 1; }

    /* Card optimizations */
    .card-item { padding: 20px; }
    .card-icon { width: 50px; height: 50px; font-size: 22px; }

    /* Content block optimizations */
    .content-block-inner { gap: 30px; }
    .content-block-text { padding: 0; }

    /* CTA banner optimizations */
    .cta-banner-inner { padding: 40px 20px; }

    /* Text overflow handling */
    .hero-title,
    .section-title,
    .card-title,
    .project-title,
    .member-name,
    .timeline-content h3 { word-wrap: break-word; overflow-wrap: break-word; }

    /* Ensure containers don't overflow */
    .container-custom,
    .header-inner,
    .footer-inner { max-width: 100%; overflow-x: hidden; }

    /* Improve button sizes for touch */
    .btn, .btn-primary, .btn-admin { min-height: 44px; padding: 12px 24px; }
}

@media (max-width: 480px) {
    .container-custom { padding: 0 16px; }
    .header-inner { padding: 0 16px; }
    .footer-inner { padding: 0 16px; }

    body { overflow-x: hidden; }

    .hero-title { font-size: clamp(24px, 8vw, 32px); }
    .section-title { font-size: clamp(22px, 6vw, 26px); }
    .tab-item { padding: 8px 0; font-size: 20px; }
    .tabs-hero-nav { bottom: 40px; padding: 0 16px; }

    /* Reduce spacing for very small screens */
    .section-projects,
    .section-team,
    .section-cards,
    .section-content-block,
    .section-contact,
    .section-hero,
    .section-gallery,
    .section-timeline { padding: 50px 0; }

    /* Typography adjustments */
    body { font-size: 15px; line-height: 1.6; }
    .card-title { font-size: 18px; }
    .project-title { font-size: 16px; }
    .member-name { font-size: 16px; }

    /* Project section enhancements */
    .project-info h3 { font-size: 17px; color: var(--primary) !important; }
    .project-info h3 a { color: var(--primary) !important; }
    .project-info p { font-size: 13px; color: var(--text-light) !important; }
    .project-image { height: 250px; }

    /* Button adjustments */
    .btn-submit { padding: 14px 32px; font-size: 14px; }
    .btn, .btn-primary { min-height: 44px; font-size: 14px; }

    /* Navigation improvements */
    .nav-item > a { font-size: 15px; color: var(--white) !important; }
    .dropdown-menu li a { font-size: 14px; color: rgba(255,255,255,0.85) !important; }

    /* Ensure text is always visible */
    .project-info,
    .card-item,
    .member-card { background: transparent; }

    /* Image optimizations */
    .project-image img,
    .card-image img { width: 100%; height: 100%; object-fit: cover; }

    .btn-cta-action { padding: 14px 32px; font-size: 14px; }

    /* Form adjustments */
    .contact-form .form-group { margin-bottom: 16px; }

    /* Grid gaps */
    .projects-grid,
    .team-grid,
    .cards-grid { gap: 14px; }

    /* Footer adjustments */
    .footer-grid { gap: 24px; }
    .footer-brand { font-size: 22px; }

    /* Timeline adjustments */
    .timeline-item { padding-left: 40px; font-size: 14px; }
    .timeline-content { padding: 20px; }
    .timeline-content h3 { font-size: 18px; }

    /* Gallery adjustments */
    .gallery-style-2 .gallery-grid { grid-auto-rows: 220px; }

    /* Mobile nav adjustments */
    .main-nav { width: 260px; right: -260px; }

    /* Project detail adjustments */
    .project-detail-title { font-size: 32px; }
    .project-detail-intro { font-size: 16px; }

    /* Overflow prevention */
    img { max-width: 100%; height: auto; }
    .tabs-hero-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Vacancies section */
    .vacancy-card { padding: 16px; }
    .vacancy-card-title { font-size: 16px; }
    .section-vacancies { padding: 50px 0; }
}

/* ==============================
   SCROLL ANIMATIONS
   ============================== */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}
