/*
================================================================
   UPSHIFT HEALTH - GLOBAL STYLESHEET
================================================================
   TABLE OF CONTENTS:
   1. Custom Properties & Reset
   2. Keyframe Animations
   3. Shared Patterns (Tilt Cards, Corner Accents, Blobs)
   4. Navigation (Desktop + Mobile)
   5. Buttons
   6. Hero & Page Headers
   7. Content Sections
   8. Dark Section & Mission
   9. Team Section (Homepage)
   10. Project Section (Homepage)
   11. Footer
   12. Team Page (Detailed Profiles, Track Record)
   13. Expertise Page
   14. Contact Page
   15. 404 Page
   16. Accessibility & Utilities
   17. Responsive Design
================================================================
*/

/* ================================================================
   1. CUSTOM PROPERTIES & RESET
================================================================ */

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --primary-color: #57B579;
    --secondary-color: #F04B1C;
    --accent-color: #F4B400;
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ================================================================
   2. KEYFRAME ANIMATIONS
================================================================ */

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 50px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes blobFloat {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) rotate(0deg); }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(20px, -20px) rotate(5deg); }
    66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: translate(-20px, 20px) rotate(-5deg); }
}

/* ================================================================
   3. SHARED PATTERNS
================================================================ */

/*
   Dual-Tilt Card — Two colored pseudo-elements rotated behind the card.
   Customize with --tilt-radius (default 16px) and --tilt-angle (default 4deg).
   Used by: .team-card, .project-image
*/

:is(.team-card, .project-image)::before,
:is(.team-card, .project-image)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--tilt-radius, 16px);
    transition: all 0.4s ease;
}

:is(.team-card, .project-image)::before {
    background: var(--primary-color);
    z-index: 5;
    transform: rotate(var(--tilt-angle, 4deg));
    opacity: 0.6;
}

:is(.team-card, .project-image)::after {
    background: var(--secondary-color);
    z-index: 1;
    transform: rotate(calc(var(--tilt-angle, 4deg) * -1));
    opacity: 0.4;
}

:is(.team-card, .project-image):hover::before {
    transform: rotate(6deg) translate(10px, 10px);
    opacity: 0.8;
}

:is(.team-card, .project-image):hover::after {
    transform: rotate(-6deg) translate(-10px, 10px);
    opacity: 0.6;
}

/*
   Corner Accent — Decorative border corners (top-left + bottom-right).
   Customize with --corner-size (default 40px), --corner-width (default 4px),
   and --corner-radius (default 20px).
   Used by: .highlight-box, .track-record-footer
*/

:is(.highlight-box, .track-record-footer)::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: var(--corner-size, 40px);
    height: var(--corner-size, 40px);
    border-top: var(--corner-width, 4px) solid white;
    border-left: var(--corner-width, 4px) solid white;
    border-radius: var(--corner-radius, 20px) 0 0 0;
    opacity: 0.5;
}

:is(.highlight-box, .track-record-footer)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: var(--corner-size, 40px);
    height: var(--corner-size, 40px);
    border-bottom: var(--corner-width, 4px) solid white;
    border-right: var(--corner-width, 4px) solid white;
    border-radius: 0 0 var(--corner-radius, 20px) 0;
    opacity: 0.5;
}

/*
   Morph-Blob — Animated organic shapes with morphing border-radius.
   Used by: .visual-blob, .error-blob-1, .error-blob-2
*/

:is(.visual-blob, .error-blob-1, .error-blob-2) {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    opacity: 0.15;
    animation: blobFloat 8s ease-in-out infinite;
}

/* ================================================================
   4. NAVIGATION
================================================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--secondary-color);
    line-height: 1;
}

.logo-text span {
    font-weight: 300;
    color: var(--secondary-color);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 102;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 5%;
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links .nav-item {
    font-size: 1.2rem;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 1rem;
    width: 100%;
}

.mobile-contact-btn {
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
}

/* ================================================================
   5. BUTTONS
================================================================ */

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(232, 94, 38, 0.25);
}

.primary-btn:hover {
    background: #d14d1b;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(232, 94, 38, 0.35);
}

.secondary-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: white;
    color: var(--secondary-color);
}

.dark-btn {
    background: var(--text-color);
    color: white;
}

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

/* ================================================================
   6. HERO & PAGE HEADERS
================================================================ */

header {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    background: linear-gradient(-45deg, #ffffff, #ffe4d9, #dcfce9, #f4fbf6);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    overflow: hidden;
}

/* Tech Dot Pattern */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(87, 181, 121, 0.25) 2px, transparent 2px);
    background-size: 35px 35px;
    z-index: 0;
    opacity: 0.7;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

/* Diagonal Circuit Lines */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(240, 75, 28, 0.05) 0px, rgba(240, 75, 28, 0.05) 1px, transparent 1px, transparent 60px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
}

h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -3px;
}

h1 .highlight {
    color: var(--primary-color);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.4;
}

.hero-shape {
    position: absolute;
    right: -5%;
    top: -10%;
    width: 50vw;
    height: 50vw;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: float 20s infinite ease-in-out;
}

.hero-shape-2 {
    position: absolute;
    left: -10%;
    bottom: -10%;
    width: 40vw;
    height: 40vw;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: float 25s infinite ease-in-out reverse;
}

/* Page Header — inherits from header, only overrides differences */
.page-header {
    min-height: 60vh;
    padding: 120px 5% 0;
}

.page-header::before {
    mask-image: none;
    -webkit-mask-image: none;
}

/* ================================================================
   7. CONTENT SECTIONS
================================================================ */

.content-section {
    padding: 120px 0;
    position: relative;
}

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

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* ================================================================
   8. DARK SECTION & MISSION
================================================================ */

.dark-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d14d1b 100%);
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0;
}

/* Tech Grid Background */
.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Large Glow Orb */
.dark-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatOrb 10s ease-in-out infinite alternate;
}

.dark-section .accent-text { color: white; }
.dark-section .lead-text { color: rgba(255, 255, 255, 0.95); }
.dark-section .text-column h3 { color: white; }
.dark-section .text-column p { color: rgba(255, 255, 255, 0.85); }

.mission-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 2;
}

.mission-header h2 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accent-text {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

.lead-text {
    font-size: 1.6rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.5;
}

.mission-content {
    display: flex;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.text-column {
    flex: 2;
}

.text-column h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

.text-column p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.highlight-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.highlight-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Corner accents defined in Shared Patterns (section 3) */

.highlight-box p {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ================================================================
   9. TEAM SECTION (HOMEPAGE)
================================================================ */

.team-section {
    padding: 120px 0;
    background-color: white;
}

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

.highlight-bg {
    position: relative;
    z-index: 1;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    margin-bottom: 4rem;
}

.team-card {
    position: relative;
    background: transparent;
    box-shadow: none;
    border: none;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

/* Tilt pseudo-elements defined in Shared Patterns (section 3) */

/* Alternating card decorations — show only one colored background per card */
.team-card:nth-child(1)::after { display: none; }
.team-card:nth-child(2)::before { display: none; }
.team-card:nth-child(3)::after { display: none; }

.card-inner {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover .card-inner {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: var(--light-gray);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.role {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quote {
    font-style: italic;
    color: var(--text-light);
    font-size: 1rem;
}

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

/* ================================================================
   10. PROJECT SECTION (HOMEPAGE)
================================================================ */

.project-section {
    background-color: #f9f9f9;
}

.project-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.project-content {
    flex: 1;
}

.tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.project-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.partners {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.project-image {
    flex: 1;
    height: 400px;
    position: relative;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    perspective: 1000px;
    --tilt-radius: 20px;
    --tilt-angle: 3deg;
}

/* Tilt pseudo-elements defined in Shared Patterns (section 3) */

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-image:hover img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    text-align: center;
    color: #ddd;
}

.image-placeholder i {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
}

/* ================================================================
   11. FOOTER
================================================================ */

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0 30px;
}

footer address {
    font-style: normal;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4rem;
}

.footer-cta {
    flex: 2;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.footer-info {
    flex: 1;
    text-align: right;
}

.logo-small {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.logo-small span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.kvk {
    margin-top: 1rem;
    font-family: monospace;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   12. TEAM PAGE
================================================================ */

.team-detailed-section {
    padding: 100px 0;
    background: white;
}

.member-detailed {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 8rem;
}

.member-detailed.reverse {
    flex-direction: row-reverse;
}

.member-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Morph-blob base defined in Shared Patterns (section 3) */

.visual-blob {
    width: 350px;
    height: 350px;
}

.blob-green {
    background: var(--primary-color);
}

.blob-orange {
    background: var(--secondary-color);
    animation-direction: reverse;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.member-icon {
    font-size: 5rem;
    color: var(--text-color);
    z-index: 2;
    background: white;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.member-photo-large {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
    position: relative;
}

.member-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-detailed:hover .member-photo-large img {
    transform: scale(1.1);
}

.member-content {
    flex: 1.5;
}

.member-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Track Record Section */
.track-record-section {
    padding: 120px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.track-record-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.track-record-intro p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.track-record-intro h3 {
    font-size: 2rem;
    color: white;
}

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.innovation-card {
    background: white;
    border: none;
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.innovation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.card-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.innovation-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tag-small {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.innovation-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.track-record-footer {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    --corner-size: 30px;
    --corner-width: 3px;
    --corner-radius: 16px;
}

/* Corner accents defined in Shared Patterns (section 3) */

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: white;
}

.cta-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    border: none;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: 2.5rem;
    color: var(--text-color);
    font-size: 3rem;
}

/* ================================================================
   13. EXPERTISE PAGE
================================================================ */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.expertise-card {
    background: transparent;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.expertise-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: -1;
    transition: all 0.3s ease;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: -2;
    transition: all 0.4s ease;
}

.expertise-grid .expertise-card:nth-child(1)::before {
    background: var(--secondary-color);
    transform: rotate(-3deg);
    opacity: 0.4;
}

.expertise-grid .expertise-card:nth-child(2)::before {
    background: var(--primary-color);
    transform: rotate(3deg);
    opacity: 0.6;
}

.expertise-grid .expertise-card:nth-child(1):hover::before {
    transform: rotate(-5deg) translate(-5px, 5px);
    opacity: 0.6;
}

.expertise-grid .expertise-card:nth-child(2):hover::before {
    transform: rotate(5deg) translate(5px, 5px);
    opacity: 0.8;
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-card:hover::after {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.expertise-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.expertise-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.expertise-list {
    background: transparent;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.expertise-list h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.expertise-list ul {
    list-style: none;
}

.expertise-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-color);
}

.expertise-list li i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(87, 181, 121, 0.25);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.step-card ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.step-card li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}

.step-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* ================================================================
   14. CONTACT PAGE
================================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-card {
    background: var(--secondary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.contact-info-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.info-item:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a,
.info-item p {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form-card {
    position: relative;
    z-index: 1;
    background: transparent;
    box-shadow: none;
    border: none;
}

.contact-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 24px;
    z-index: -2;
    transform: rotate(3deg);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.contact-form-card:hover::before {
    transform: rotate(5deg) translate(5px, 5px);
}

.contact-form-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-form-card > p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 2.5rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(87, 181, 121, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn {
    width: 100%;
    justify-content: center;
    border: none;
}

/* ================================================================
   15. 404 PAGE
================================================================ */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 5%;
    background: linear-gradient(-45deg, #ffffff, #ffe4d9, #dcfce9, #f4fbf6);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(87, 181, 121, 0.25) 2px, transparent 2px);
    background-size: 35px 35px;
    z-index: 0;
    opacity: 0.7;
}

.error-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    z-index: 0;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.error-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 12rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.error-number .digit {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-number .digit:nth-child(2) {
    transform: translateY(-10px);
}

.error-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .secondary-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.error-actions .secondary-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Morph-blob base defined in Shared Patterns (section 3) */

.error-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.error-blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    bottom: -80px;
    left: -80px;
    animation-direction: reverse;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.lost-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: blobFloat 4s ease-in-out infinite;
}

/* ================================================================
   16. ACCESSIBILITY & UTILITIES
================================================================ */

/* Skip link for keyboard accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility classes */
.section-header--compact { margin-bottom: 3rem; }
.mission-content--top { align-items: flex-start; }
.content-section--gray { background-color: #f9f9f9; }

.text-large {
    font-size: 1.2rem;
    color: var(--text-color);
}

.expertise-list--outline {
    margin: 2rem 0;
    background: transparent;
    border: 2px solid var(--primary-color);
}

/* ================================================================
   17. RESPONSIVE DESIGN
================================================================ */

@media (max-width: 900px) {
    /* Navigation */
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        gap: 2rem;
    }

    .contact-info-card {
        order: 2;
    }

    .contact-form-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* Hero & Headers */
    header {
        padding-top: 140px;
        padding-bottom: 60px;
        min-height: auto;
        align-items: flex-start;
    }

    h1 {
        font-size: 2.8rem;
        word-wrap: break-word;
    }

    h2 { font-size: 2.2rem; }

    /* Mission & Content */
    .mission-content { flex-direction: column; gap: 2rem; }
    .project-wrapper { flex-direction: column-reverse; }
    .project-image { width: 100%; height: 250px; }

    /* Footer */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }

    /* Dark Section */
    .dark-section { margin: 0; border-radius: 0 0 1.5rem 1.5rem; padding: 80px 0; }

    /* Expertise Page */
    .expertise-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }

    /* Team Page */
    .member-detailed { flex-direction: column; gap: 2rem; }
    .member-detailed.reverse { flex-direction: column; }

    /* 404 Page */
    .error-number { font-size: 7rem; }
    .error-content h1 { font-size: 1.8rem; }
    .error-content p { font-size: 1rem; }
    .error-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .mobile-nav-drawer {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
