@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,900&family=Inter:wght@200;400;500;600;700&display=swap');

/* ==========================================================================
   BASE VARIABLES & COLORS
   ========================================================================== */

:root {
    --primary-bg: #0A0B1E;
    --accent-green: #C2FF66;
    --accent-blue: #2563EB;
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --card-bg: #1E1F3A;
    --hover-bg: #2A2B4A;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Company brand colors */
    --gitlab-orange: #FCA326;
    --twitch-purple: #b9a3e3;
    --thales-blue: #5dbfd4;

    /* Dynamic brand colors - updated by JavaScript */
    --brand-primary: #C2FF66;
    --brand-secondary: #C2FF66;
}

/* Brand color definitions */
.brand-gitlab {
    --brand-primary: #FCA326;
    --brand-secondary: #FCA326;
}

.brand-twitch {
    --brand-primary: #b9a3e3;
    --brand-secondary: #b9a3e3;
}

.brand-thales {
    --brand-primary: #5dbfd4;
    --brand-secondary: #5dbfd4;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

body {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 200;
}

.container {
    margin: 0 auto;
    /* Keep vertical centering */
    padding: 0 20px;
    /* Control spacing with padding only */
    max-width: 1200px;
    /* Ensure it uses full width */
}

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

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

/* Navigation logo image styling */
.logo {
    display: flex;
    align-items: center;
    height: 64px;
}

.logo-img-nav {
    height: 40px;
    /* Adjust this value to your preference (32px-48px works well) */
    width: auto;
    display: block;
}

/* Primary Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 11, 30, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    line-height: 64px;
}

/* Ensure nav content stays within container on desktop */
.nav .container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    font-family: 'Playfair Display', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links .work-group {
    display: flex;
    gap: 2rem;
    margin-right: 1rem;
}

.nav-links .work-group::after {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--text-white);
    margin-left: 1rem;
    align-self: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 200;
    transition: color 0.3s ease;
    line-height: 1;
    position: relative;
    display: inline-block;
    text-align: center;
}

.nav-links a::before {
    content: attr(data-text);
    font-weight: 400;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    display: block;
}

.nav-links a.active {
    font-weight: 400;
}

.nav-links a[href*="#"] {
    font-weight: 400;
}


/* Secondary Navigation - Project Selection within Company */
.project-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(26, 29, 58, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
}

.project-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.project-nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 200;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    text-align: center;
}

.project-nav-links a::before {
    content: attr(data-text);
    font-weight: 400;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    display: block;
}

.project-nav-links a:hover {
    color: var(--brand-primary);
}

.project-nav-links a.active {
    color: var(--brand-primary);
    font-weight: 400;
}

/* Tertiary Navigation - Section Navigation within Project */
.section-nav {
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(42, 45, 74, 0.95);
    backdrop-filter: blur(20px);
    z-index: 998;
    display: flex;
    align-items: center;
}

.section-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.section-nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 200;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    position: relative;
    display: inline-block;
    text-align: center;
}

.section-nav-links a::before {
    content: attr(data-text);
    font-weight: 400;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    display: block;
}

.section-nav-links a:hover {
    color: var(--brand-primary);
}

.section-nav-links a.active {
    color: var(--brand-primary);
    font-weight: 400;
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Add this */
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a1b3a 100%);
}

.hero-content {
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 1200px;
}

.hero.scrolled .hero-content {
    transform: translateY(-50px) scale(0.8);
    opacity: 0.3;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: left;
}

.hero h1 .first-line {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    display: block;
    margin-bottom: 5rem;
}

.hero h1 .tourney-thin {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 200 !important;
    font-style: normal;
    color: var(--text-white);
}

.hero h1 .chakra-bold {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900 !important;
    font-style: italic !important;
    color: var(--accent-green);
}

.hero-tagline {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-bottom: 0rem;
    line-height: 1.0;
    text-align: left;
}

.hero-tagline .tourney-thin {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 200;
    color: var(--text-white);
}

.hero-tagline .chakra-bold {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--accent-green);
}

.hero-marquee {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-family: 'Playfair Display', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 900;
    font-style: italic;
    color: var(--accent-green);
    width: 100%;
    max-width: none;
    margin: 1rem auto 1.5rem;
    /* Add 1rem top margin */
    height: 100px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.0;
}

.marquee-line {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    font-weight: 900;
    font-style: italic;
    white-space: normal;
    right: 0;
    top: 0;
    max-width: 100%;
    text-align: right;
    line-height: 1.2;
    min-height: 2.4em;
    width: auto;
}

.marquee-line.active {
    opacity: 1;
    transform: translateY(0);
}

.marquee-line.fading {
    animation: fadeOut 525ms ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.typing-cursor {
    display: inline;
    color: var(--accent-green);
    animation: blink 1s infinite;
    font-weight: 900;
    font-style: italic;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-link {
    position: absolute;
    bottom: 8vh;
    /* 8% from bottom of viewport */
    left: 50%;
    transform: translateX(-50%);
    display: block;
    text-decoration: none;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    text-align: center;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.hero-link::after {
    content: "\2304";
    white-space: pre;
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 200;
    color: var(--text-white);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    display: block;
    margin-top: -2rem;
}

.hero-link:hover {
    opacity: 0.8;
}

.hero-link-normal {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 200;
    color: var(--text-white);
}

.hero-link-accent {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--accent-green);
}

/* Hide mobile line breaks on desktop */
.mobile-break {
    display: none;
}

/* ==========================================================================
   COMPANY HERO SECTION STYLES
   ========================================================================== */

.company-hero {
    padding-top: 192px;
    /* 64px main nav + 48px project nav + 80px visual space */
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a1b3a 100%);
}

/* Company hero banner styling */
.company-hero .company-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    /* This creates the spacing! */
    aspect-ratio: 3/1;
}

.company-hero-banner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.company-hero .banner-fallback {
    display: none;
    font-size: 3rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Brand-specific fallback colors */
.brand-gitlab .company-hero .banner-fallback {
    color: #FCA326;
}

.brand-twitch .company-hero .banner-fallback {
    color: #b9a3e3;
}

.brand-thales .company-hero .banner-fallback {
    color: #5dbfd4;
}

/* Company title styling */
.company-title {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    margin-bottom: 1rem;
    color: var(--text-white);
    letter-spacing: -0.01em;
    text-align: center;
    /* Center-aligned title */
}

.company-title .accent {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--brand-primary);
}

.company-subtitle {
    font-size: 1.2rem;
    color: var(--text-white);
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
    /* Left-aligned subtitle as you prefer */
}

/* ==========================================================================
   PROJECT HEADER STYLES
   ========================================================================== */

.project-header {
    padding-top: 200px;
    /* 64px + 48px + 48px + 40px visual padding */
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a1b3a 100%);
}

.project-category {
    font-size: 0.9rem;
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.project-title {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.project-title .accent {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--brand-primary);
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-white);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */

.section-title {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.section-title .accent {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--brand-primary);
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-white);
    max-width: 700px;
}

/* ==========================================================================
   TAGS & BADGES
   ========================================================================== */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--brand-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 500;
}

.skill {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--brand-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 500;
}

/* ==========================================================================
   PROJECT & CONTENT CARDS
   ========================================================================== */

.projects {
    padding: 80px 0;
    background: var(--primary-bg);
    position: relative;
    z-index: 10;
}

.projects.visible {
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
    background: var(--hover-bg);
    box-shadow: 0 20px 60px rgba(194, 255, 102, 0.1);
}

/* ==========================================================================
   PROJECT CARD IMAGE STYLES
   ========================================================================== */

/* Project card image styling */
.project-card .project-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.image-fallback {
    display: none;
    /* Hidden by default, shown when image fails */
    font-size: 3rem;
    color: var(--primary-bg);
    font-weight: 700;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Brand-specific project card hover effects */
.brand-gitlab .project-card:hover {
    box-shadow: 0 20px 60px rgba(252, 163, 38, 0.1);
}

.brand-twitch .project-card:hover {
    box-shadow: 0 20px 60px rgba(185, 163, 227, 0.1);
}

.brand-thales .project-card:hover {
    box-shadow: 0 20px 60px rgba(93, 191, 212, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--brand-primary) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-bg);
    font-weight: 700;
}

/* Brand-specific project image gradients */
.brand-gitlab .project-image {
    background: linear-gradient(135deg, var(--gitlab-orange) 0%, var(--brand-primary) 100%);
}

.brand-twitch .project-image {
    background: linear-gradient(135deg, var(--twitch-purple) 0%, var(--brand-primary) 100%);
}

.brand-thales .project-image {
    background: linear-gradient(135deg, var(--thales-blue) 0%, var(--brand-primary) 100%);
}

.project-title-card {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.project-description {
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   HERO IMAGE
   ========================================================================== */

.project-hero-image {
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 400px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-bg);
    font-weight: 700;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-section {
    padding: 4rem 0;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.text-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 2rem 0 1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content strong {
    color: var(--brand-primary);
    font-weight: 600;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
    align-items: start;
}

/* ==========================================================================
   IMAGE SHOWCASE
   ========================================================================== */

.image-showcase {
    margin: 3rem 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.showcase-image {
    height: auto;
    background: linear-gradient(45deg, var(--card-bg) 0%, var(--hover-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
    font-weight: 500;
}

/* Grid layout for multiple images in same frame */
.showcase-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

/* Vertical stack layout for multiple images in same frame */
.showcase-image-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.showcase-caption {
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-white);
    text-align: center;
}

/* Grid layout for three images in same frame */
.showcase-image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

/* Grid layout for five images in same frame */
.showcase-image-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 1rem;
}

/* Half image, half text layout */
.image-showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    align-items: center;
}

.image-showcase-split .text-content {
    padding: 1rem;
}

/* Grid layout for one horizontal image on top, two vertical below */
.showcase-image-grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.showcase-image-grid-1-2 img:first-child {
    grid-column: 1 / -1;
    /* Spans both columns */
}

/* Grid layout for three vertical images on top, one horizontal below */
.showcase-image-grid-3-1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.showcase-image-grid-3-1 img:last-child {
    grid-column: 1 / -1;
    /* Spans all three columns */
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */

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

.process-step {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.process-step:hover {
    background: var(--hover-bg);
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-white);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   KEY INSIGHTS
   ========================================================================== */

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

.insight-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.insight-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--brand-primary);
    font-family: 'Playfair Display', serif;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.3;
}

.insight-text {
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.insight-source {
    font-size: 0.8rem;
    color: var(--text-white);
    padding-left: 2rem;
}

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.result-metric {
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Achievement Cards */
.achievements {
    padding: 80px 0;
    background: var(--primary-bg);
}

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

.achievement-card {
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.achievement-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 0.5rem;
}

/* Brand-specific achievement values */
.brand-gitlab .achievement-value {
    color: var(--gitlab-orange);
}

.brand-twitch .achievement-value {
    color: var(--twitch-purple);
}

.brand-thales .achievement-value {
    color: var(--thales-blue);
}

.achievement-label {
    color: var(--text-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================================================
   NAVIGATION BETWEEN PROJECTS
   ========================================================================== */

.project-navigation {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.nav-projects {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-project {
    flex: 1;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.nav-project:hover {
    background: var(--hover-bg);
    transform: translateY(-5px);
}

.nav-project-label {
    font-size: 0.8rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.nav-project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a1b3a 100%);
}

.about-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-section-header h2 {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    color: var(--text-white);
    letter-spacing: -0.01em;
    margin: 0;
}

.about-section-header .accent {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--accent-green);
}

.about-two-columns {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.about-left-column {
    flex: 1;
}

.about-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.about-right-column p {
    font-size: 1.1rem;
    color: var(--text-white);
    margin: 0;
}

.about-skills-section {
    text-align: center;
}

.about-skills-section h3 {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Skills & Technologies */
.skills-tech {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a1b3a 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Dynamic brand color application for skills */
.brand-gitlab .skill {
    border: 1px solid var(--gitlab-orange);
    color: var(--gitlab-orange);
}

.brand-twitch .skill {
    border: 1px solid var(--twitch-purple);
    color: var(--twitch-purple);
}

.brand-thales .skill {
    border: 1px solid var(--thales-blue);
    color: var(--thales-blue);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
    padding: 120px 0;
    background: var(--primary-bg);
    text-align: center;
}

.contact h2 {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    margin-bottom: 4rem;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.contact h2 .accent {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--accent-green);
}

.contact p {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE
   ========================================================================== */

/* Desktop defaults - hide mobile elements */


.desktop-nav {
    display: flex;
}

.mobile-only-nav {
    display: none;
}

/* Hide mobile line breaks on desktop */
.mobile-break {
    display: none;
}



@media (max-width: 768px) {

    /* Disable hover states on mobile - they stick after tapping */
    .section-nav-links a:hover,
    .project-nav-links a:hover {
        color: var(--text-white) !important;
    }

    /* Only show the brand color when actually active */
    .section-nav-links a.active,
    .project-nav-links a.active {
        color: var(--brand-primary) !important;
    }

    /* Primary nav at the very bottom */
    .nav {
        top: auto;
        bottom: 0;
    }

    /* Keep the regular nav logo visible on mobile */
    .nav .logo {
        display: flex;
        flex-shrink: 0;
        align-items: center;
    }

    /* Remove bold default for mobile-only nav */
    .mobile-only-nav a::before {
        content: none !important;
    }

    .mobile-only-nav a {
        font-weight: 200 !important;
    }

    .mobile-only-nav a.active {
        font-weight: 400 !important;
    }

    /* Override nav-content for mobile - ensure proper alignment */
    .nav-content {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 64px;
    }

    /* Adjust main nav-links for mobile */
    .nav-links {
        gap: 3rem;
        justify-content: center;
        flex: 1;
    }

    .nav-links .work-group {
        gap: .75rem;
        margin-right: 0.5rem;
    }

    .nav-links .work-group::after {
        margin-left: 0.5rem;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-only-nav {
        display: flex !important;
    }

    /* Remove ALL focus/active browser defaults from nav links */
    .section-nav-links a:focus,
    .section-nav-links a:active,
    .project-nav-links a:focus,
    .project-nav-links a:active {
        outline: none;
        color: inherit;
    }

    /* Secondary nav above primary */
    .project-nav {
        top: auto;
        bottom: 64px;
    }

    .project-nav-links {
        gap: 0.25rem;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        padding: 0 0.5rem;
        width: 100%;
    }

    .project-nav-links a {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 1;
        text-align: center;
    }

    /* Tertiary nav on top of the stack */
    .section-nav {
        top: auto;
        bottom: 112px;
    }

    .section-nav-content {
        position: relative;
    }

    /* Scroll indicators */
    .section-nav-content::before,
    .section-nav-content::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50px;
        pointer-events: none;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .section-nav-content::before {
        left: 0;
        background: linear-gradient(to right, rgba(42, 45, 74, 0.95) 0%, transparent 100%);
    }

    .section-nav-content::after {
        right: 0;
        background: linear-gradient(to left, rgba(42, 45, 74, 0.95) 0%, transparent 100%);
    }

    /* Show indicators when scrollable */
    .section-nav-content.scroll-left::before {
        opacity: 1;
    }

    .section-nav-content.scroll-right::after {
        opacity: 1;
    }

    /* Arrows */
    .section-nav-content .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-style: solid;
        pointer-events: none;
        z-index: 11;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .section-nav-content .scroll-arrow-left {
        left: 12px;
        border-width: 5px 8px 5px 0;
        border-color: transparent var(--text-white) transparent transparent;
    }

    .section-nav-content .scroll-arrow-right {
        right: 12px;
        border-width: 5px 0 5px 8px;
        border-color: transparent transparent transparent var(--text-white);
    }

    /* Show arrows when scrollable */
    .section-nav-content.scroll-left .scroll-arrow-left {
        opacity: 1;
    }

    .section-nav-content.scroll-right .scroll-arrow-right {
        opacity: 1;
    }

    .section-nav-links {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 1rem;
    }

    .section-nav-links::-webkit-scrollbar {
        display: none;
    }

    .section-nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Body padding based on number of navs */
    body {
        padding-bottom: 64px;
    }

    body:has(.project-nav) {
        padding-bottom: 112px;
    }

    body:has(.section-nav) {
        padding-bottom: 160px;
    }

    /* Hero adjustments */
    .hero {
        min-height: calc(100vh - 64px);
        padding-bottom: 2vh;
    }

    body:has(.project-nav) .hero {
        min-height: calc(100vh - 112px);
    }

    body:has(.section-nav) .hero {
        min-height: calc(100vh - 160px);
    }

    /* Hero link positioning */
    .hero-link {
        bottom: 69px;
        font-size: 1.2rem;
    }

    body:has(.project-nav) .hero-link {
        bottom: 117px;
    }

    body:has(.section-nav) .hero-link {
        bottom: 165px;
    }

    .hero-link::after {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }

    /* Show mobile line breaks */
    .mobile-break {
        display: block;
    }

    /* Container adjustments */
    .container {
        margin: 0 auto;
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero .container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Hero marquee spacing */
    .hero-marquee {
        margin: 1rem auto 1.5rem;
        height: 100px;
    }

    .marquee-line {
        max-width: 100%;
    }

    .company-hero {
        padding-top: 2rem;
    }

    .project-header {
        padding-top: 2rem;
    }

    .project-meta {
        gap: 2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .nav-projects {
        flex-direction: column;
    }

    .about-two-columns {
        flex-direction: column;
        gap: 2rem;
    }

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   FINAL OVERRIDES - COMPANY NAVIGATION & BRAND COLORS
   ========================================================================== */

/* Company navigation colors - hover and active states */
.nav-links a[href*="gitlab-projects"]:hover,
.nav-links a[href*="gitlab-projects"].active {
    color: #FCA326 !important;
}

.nav-links a[href*="twitch-projects"]:hover,
.nav-links a[href*="twitch-projects"].active {
    color: #b9a3e3 !important;
}

.nav-links a[href*="thales-projects"]:hover,
.nav-links a[href*="thales-projects"].active {
    color: #5dbfd4 !important;
}

/* Section links for main page - use green */
.nav-links a[href="#about"]:hover,
.nav-links a[href="#about"].active,
.nav-links a[href="#contact"]:hover,
.nav-links a[href="#contact"].active,
.nav-links a[href="#projects"]:hover,
.nav-links a[href="#projects"].active,
.nav-links a[href="index.html#about"]:hover,
.nav-links a[href="index.html#about"].active,
.nav-links a[href="index.html#contact"]:hover,
.nav-links a[href="index.html#contact"].active,
.nav-links a[href="index.html#projects"]:hover,
.nav-links a[href="index.html#projects"].active {
    color: #C2FF66 !important;
}

/* Title accent colors - use brand colors */
.company-title .accent,
.section-title .accent {
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   IMAGE MODAL / LIGHTBOX
   ========================================================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--brand-primary);
}

/* Navigation arrows for modal */
.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10001;
    user-select: none;
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

.image-modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--brand-primary);
}

.image-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Make showcase images clickable */
.showcase-image img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.showcase-image img:hover {
    opacity: 0.85;
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}