/* SPD Font Imports */
@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT3_.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT3i.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT5_.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT5i.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT7_.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT7i.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'SPD TheSans';
    src: url('../fonts/SPD_TheSans_TT8_.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT3_.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT3i.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT5_.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT5i.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT7_.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT7i.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'SPD TheSans Condensed';
    src: url('../fonts/SPD_TheSans_V_TT8_.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Ensure anchor targets account for fixed header height */
section[id] {
    scroll-margin-top: 20px; /* desktop/generic header height allowance */
}

:root {
    --spd-red: #E3000F;
    --spd-red-dark: #C5003E;
    --text-dark: #111111;
    --text: #333333;
    --bg: #ffffff;
    --muted: #6c757d;
}

body {
    font-family: 'SPD TheSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* German hyphenation and safe wrapping for content text */
:where(p, li, h1, h2, h3, h4, h5, h6, blockquote, figcaption) {
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, #E3000F 0%, #C5003E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar, .main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--spd-red) 0%, var(--spd-red-dark) 100%);
    backdrop-filter: saturate(180%) blur(8px);
    /* border-bottom: 3px solid var(--spd-red); */
    z-index: 1000;
    padding: 0 20px;
    max-width: 100vw;
}

.nav-container, .main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: -0.2rem 0;
    position: relative;
}
/* Center navigation in header */
.main-header .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Brand: SPD logo + site name */
.brand { display: flex; align-items: center; gap: 0.75rem; }
.main-header .brand { margin-left: auto; }
.brand .spd-logo { height: 28px; width: auto; display: block; }

.nav-logo a, .logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap; /* keep on one line */
}

.nav-menu, .main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: nowrap; /* keep items on one line */
}

.nav-link, .main-nav a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    white-space: nowrap; /* force single line */
    flex-shrink: 0; /* take the width they need */
}

/* Navbar icons */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.nav-icon svg {
    width: 22px; /* 20% larger */
    height: 22px;
    fill: #ffffff; /* all icons white */
}
.nav-icon svg *, .nav-icon svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
/* Support external SVGs via <img> and force white */
.nav-icon img {
    width: 22px; /* 20% larger */
    height: 22px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Hover: turn icons black */
.main-nav a:hover .nav-icon svg,
.main-nav a:hover .nav-icon svg * {
    fill: #111111 !important;
    stroke: #111111 !important;
}
.main-nav a:hover .nav-icon img {
    filter: brightness(0);
}

/* Active state should match hover visuals */
.main-nav a.is-active .nav-icon svg,
.main-nav a.is-active .nav-icon svg * {
    fill: #111111 !important;
    stroke: #111111 !important;
}
.main-nav a.is-active .nav-icon img {
    filter: brightness(0);
}
/* Ensure mobile menu keeps icons white as requested */
@media (max-width: 768px) {
    .main-header .main-nav a .nav-icon svg { fill: #ffffff; }
    .main-header .main-nav a .nav-icon img { filter: brightness(0) invert(1); }
    /* Mobile hover & active: icons black */
    .main-header .main-nav a:hover .nav-icon svg,
    .main-header .main-nav a:hover .nav-icon svg *,
    .main-header .main-nav a.is-active .nav-icon svg,
    .main-header .main-nav a.is-active .nav-icon svg * {
        fill: #111111 !important;
        stroke: #111111 !important;
    }
    .main-header .main-nav a:hover .nav-icon img,
    .main-header .main-nav a.is-active .nav-icon img {
        filter: brightness(0);
    }
}

.nav-link:hover, .main-nav a:hover {
    color: var(--spd-red);
}

.nav-link.active {
    color: var(--spd-red) !important;
    font-weight: 600;
}

.hamburger, .hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 36px;
    height: 28px;
    border: none;
    background: transparent;
}

.bar, .hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Compact button styling for navbar links except the CTA */
.main-nav a:not(.nav-cta) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    min-height: 36px;
    background: transparent;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 0;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    text-align: start;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:not(.nav-cta):hover {
    background: #ffffff;
    color: #333333;
    border-color: #e2e8f0;
    box-shadow: none;
}
/* Apply hover-like style when section is active */
.main-nav a:not(.nav-cta).is-active {
    background: #ffffff;
    color: #333333;
    border-color: #e2e8f0;
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px 20px 48px;
    padding-bottom: 0;
    color: white;
    overflow: hidden;
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 0, 18, 0.75) 0%, rgba(227, 0, 15, 0.30) 40%, rgba(120, 0, 30, 0.70) 100%);
    background-size: 220% 220%;
    background-position: 20% 20%;
    filter: none;
    transform-origin: center;
    animation: gradientOrbit 24s linear infinite;
    will-change: background-position;
}

/* Remove scroll overlay; keep solid gradient */

.hero-container, .hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'SPD TheSans Condensed';
}
.hero-title span { display: block; color: #ffffff; }

.hero-title .highlight-word { color: var(--spd-red); text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }
.hero-subtitle { font-size: 1.1rem; color: #f1f5f9; margin-bottom: 1rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 1rem; justify-content: flex-start; }
.hero-buttons .btn { min-width: 220px; }
@media (max-width: 768px) { .hero-buttons .btn { min-width: 160px; } }

/* Hero silhouette figure */
.hero-figure {
    max-height: 72vh;
    align-self: end;
    justify-self: end;
    position: relative;
}
.hero-figure img {
    width: min(360px, 34vw);
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 24px 32px rgba(0,0,0,0.25));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-height: 48px;
    border-radius: 0;
    text-align: center;
    text-decoration: none;
    font-family: 'SPD TheSans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.2;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #E3000F;
    color: white;
    margin-top: 28px;
}

.btn-primary:hover {
    background: #C5003E;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #333333;
}

.btn-secondary:hover {
    background: #333333;
    color: white;
    transform: translateY(-2px);
}


.btn-tertiary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.btn-tertiary:hover {
    background: #ffffff;
    color: #111111;
}

.btn-spd {
    background: #E3000F;
    color: white;
    padding: 12px 30px;
    border-radius: 0;
    font-family: 'SPD TheSans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-spd:hover {
    background: #C5003E;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}
.kennenlernen-section {
    padding: 0;
}
.kennenlernen-section .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
}
.kennenlernen-section .image-pane {
    background-size: cover;
    background-position: center center;
}
.kennenlernen-section .text-pane {
    background: #ffffff;
    display: flex;
    align-items: center;
}
.kennenlernen-section .text-content {
    max-width: 680px;
    padding: 60px 40px;
    margin: 0 auto;
}
.kennenlernen-section .section-title {
    color: #2C3E50;
}
.kennenlernen-section .section-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    /* Reset nav positioning on mobile */
    .main-header .main-nav {
        position: static;
        left: auto;
        transform: none;
    }
    .kennenlernen-section .split-layout {
        grid-template-columns: 1fr;
    }
    .kennenlernen-section .image-pane {
        min-height: 38vh;
    }
    .kennenlernen-section .text-content {
        padding: 36px 20px;
    }
    /* Smaller offset for fixed header on mobile */
    section[id] { scroll-margin-top: 52px; }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
/* Left-align header only in feature section */
.feature-section .section-header {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}
.feature-section .section-subtitle {
    margin: 0;
    text-align: left;
}

/* Center the header for Themen and style the title as a black protest box */
#themen .section-header { text-align: center; }
#themen .section-header { animation: none; }
#themen .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#themen .section-subtitle { text-align: center; margin: 0 auto; }
#themen .section-title {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    border: 4px solid #ffffff;
    border-radius: 8px;
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.4px;
    line-height: 1.2;
    margin: 0 auto;
    margin-bottom: 14px;
    opacity: 0; /* prepared for animation */
    transform: scale(0.7) rotate(0deg);
    transform-origin: center;
    align-self: center;
}

/* Expanding pop-in with final -5deg tilt */
#themen .section-title.title-in-view {
    animation: protestPopTilt 260ms cubic-bezier(0.2, 0.9, 0.35, 1) forwards;
}

@keyframes protestPopTilt {
    0%   { opacity: 0; transform: scale(0.70) rotate(0deg); }
    85%  { opacity: 1; transform: scale(1.05) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1.00) rotate(-2.5deg); }
}

@media (prefers-reduced-motion: reduce) {
    #themen .section-title {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-intro {
    font-size: 1.2rem;
    min-height: 48px; /* thinner default navbar height */
    color: #6c757d;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Divider */
.section-divider {
    display: none;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.skills {
    margin-top: 3rem;
}

.skills h3, .schwerpunkte h3 {
    margin-bottom: 1rem;
    color: #2C3E50;
}

.skill-tags, .schwerpunkt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag, .schwerpunkt-tag {
    background: linear-gradient(135deg, #E3000F 0%, #C5003E 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(227, 0, 15, 0.2);
}

.schwerpunkte {
    margin-top: 3rem;
}

/* Engagement Section */
.engagement {
    background: white;
}

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

.engagement-card {
    background: #ffffff;
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.engagement-card:before {
    display: none;
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #E3000F;
}

.engagement-card h3 {
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.engagement-list {
    list-style: none;
    padding: 0;
}

.engagement-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #555;
    line-height: 1.6;
}

.engagement-list li:last-child {
    border-bottom: none;
}

.engagement-list li:before {
    content: "▶";
    color: #E3000F;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Projects Section */
.projects-grid, .feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* full-width cards */
    gap: 2rem;
}

/* Allow feature section to use full-width container to avoid squeezing */
.feature-section .container {
    max-width: none;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}
/* Feature cards sit on the default white background */
.feature-section .feature-grid {
    background: transparent;
    padding: 0;
}

.project-card, .feature-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid var(--spd-red);
    display: grid;
    grid-template-columns: 336px 1fr; /* 20% narrower image column */
    align-items: stretch;
    height: 420px; /* ensure all cards share the same height */
}

.project-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
}
.feature-image {
    width: 100%;
    height: 100%; /* image fills the card height on desktop */
    object-fit: cover;
    display: block;
}
.feature-content { padding: 2rem; }
.feature-title { white-space: normal; overflow-wrap: anywhere; }
.feature-initiative { color: #6c757d; margin-top: 0.75rem; }
.image-placeholder-modern {
    width: 100%;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border: 3px solid var(--spd-red);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder svg {
    width: 100%;
    height: 100%;
}

.project-content {
    padding: 1.5rem;
}

.project-title, .feature-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #111111;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description, .feature-description {
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Ensure card text stays within borders without line trimming */
.feature-card { position: relative; }
.feature-content { overflow: hidden; display: flex; flex-direction: column; }
.feature-title { white-space: normal; }
.feature-description { overflow: visible; }
.feature-initiative { overflow: visible; }

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-content, .two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Darum SPD: single column layout and centered tagline */
#darum-spd .two-column-layout {
    grid-template-columns: 1fr;
}
#darum-spd h3 {
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method h4 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #666;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #E3000F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #C5003E;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--spd-red) 0%, var(--spd-red-dark) 100%);
    color: #fff;
}
.cta-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
.cta-subtitle { margin-bottom: 1.5rem; }
.contact-form-container { max-width: 800px; }
.contact-form-modern .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form-modern .form-row { margin-bottom: 1rem; }
.contact-form-modern input,
.contact-form-modern textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.contact-form-modern textarea { margin-bottom: 1rem; }
.contact-form-modern button { margin-top: 0.25rem; }
.contact-form-modern input::placeholder,
.contact-form-modern textarea::placeholder { color: rgba(255,255,255,0.85); }

/* Contact actions (Hotline, Instagram, E-Mail) */
.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
}
.contact-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}
.contact-action:hover {
    background: #ffffff;
    color: #111111;
    border-color: #e2e8f0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.contact-action .action-icon img {
    width: 28px;
    height: 28px;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}
.contact-action:hover .action-icon img {
    filter: brightness(0);
}
.contact-action .action-text {
    font-weight: 800;
}
.contact-action .action-subtext {
    opacity: 0.9;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-actions {
        grid-template-columns: 1fr;
    }
}

/* Cookies EU Banner styling */
.cookies-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #000000;
    color: #ffffff;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 27px rgba(0,0,0,0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cookies-banner p { margin: 0; }
.cookies-banner .cookies-actions { display: flex; gap: 8px; }
.cookies-banner #cookies-eu-reject {
    background: transparent;
    color: #ffffff;
    border: none;
}

/* Mobile layout for cookie banner */
@media (max-width: 768px) {
    .cookies-banner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px;
        left: 12px;
        right: 12px;
    }
    .cookies-banner p {
        margin: 0 0 8px 0;
    }
    .cookies-banner .cookies-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }
    .cookies-banner .cookies-actions .btn,
    .cookies-banner .cookies-actions button,
    .cookies-banner .cookies-actions a {
        width: 100%;
    }
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2C3E50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E3000F;
    box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Footer styled like header */
.main-footer-modern {
    background: #660007;
    color: #ffffff;
}
.main-footer-modern .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}
.main-footer-modern .footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: start;
}
.main-footer-modern .footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.main-footer-modern h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.main-footer-modern ul { list-style: none; padding: 0; margin: 0; }
.main-footer-modern li { margin-bottom: 0.4rem; }

/* Links: white by default, compact button on hover (like header) */
.main-footer-modern a {
    text-decoration: none;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.2s ease;
}
.main-footer-modern a:hover {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    padding: 6px 12px;
}

.main-footer-modern .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
}
.main-footer-modern .footer-bottom a { color: #ffffff; }
.main-footer-modern .footer-bottom a:hover { color: #333333; }

@media (max-width: 768px) {
    .main-footer-modern .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* SPD-inspired design elements */
.spd-accent {
    background: linear-gradient(135deg, #E3000F 0%, #C5003E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.spd-section .spd-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background: var(--spd-red);
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
}
.spd-logo-text { letter-spacing: 1px; }

/* Responsive Design */
@media (max-width: 768px) {
    /* Thin header + show burger on mobile */
    .hamburger-menu { display: flex; }
    .main-header { padding: 0 12px; }
    .main-header .container { min-height: 36px; position: relative; }
    /* Pin burger left and logo right; center title */
    .hamburger-menu { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); margin-right: 0; }
    .hamburger-menu span { background-color: #ffffff; }
    .logo { font-size: 1.5rem; display: block; margin: 0 auto; text-align: center; }
    .brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin-left: 0; }
    .brand .spd-logo { height: 14px; width: auto; }

    /* Mobile menu: fade in from top */
    .main-header .main-nav {
        position: fixed;
        left: 0;
        top: 36px;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        z-index: 999;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .main-header .main-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .main-header .main-nav ul {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
    }
    .main-header .main-nav a {
        color: #111111;
        background: transparent;
        border-color: transparent;
        min-height: 44px;
    }
    .main-header .main-nav a:hover {
        background: #f5f7fb;
        color: #111111;
        border-color: #e2e8f0;
    }
    /* Mobile: active state styled like hover */
    .main-header .main-nav a.is-active {
        background: #f5f7fb;
        color: #111111;
        border-color: #e2e8f0;
    }

    /* Stack hero */
    /* Add top padding so hero content isn't covered by fixed navbar */
    #home { padding-top: 88px; }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1.5rem;
        position: relative; /* allow absolute silhouette positioning */
    }
    /* Place silhouette centered, slightly left, behind content */
    .hero-section .hero-content { position: relative; z-index: 2; top: 10vh; }
    .hero-section .hero-figure {
        position: absolute;
        left: 30%;
        transform: translateX(-50%);
        top: 12px;
        z-index: 1;
        pointer-events: none;
        align-self: unset;
        justify-self: unset;
        max-height: none;
    }
    .hero-section .hero-figure img {
        width: min(420px, 88vw);
        margin: 0;
        opacity: 0.35;
        filter: brightness(0.85) saturate(0.85) contrast(0.9);
    }
    .hero-title { font-size: 2rem; }
    .hero-buttons { justify-content: flex-start; flex-wrap: wrap; }
    .hero-figure img {
        filter: drop-shadow(0 16px 24px rgba(0,0,0,0.25));
    }

    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .feature-card { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; height: auto; }
    .feature-image { height: 220px; }
    .hero { padding: 100px 20px 60px; }
    section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
}

/* Large desktop: shift hero background image down slightly */
@media (min-width: 1200px) {
    .hero-section {
        background-position: center calc(50% + 50px);
    }
}

/* Large screens: show two feature cards per row */
@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    /* Center the third feature card on its own row */
    .feature-grid > .feature-card:nth-child(3) {
        grid-column: 1 / -1;
        width: min(900px, 100%);
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Striking hero background animation */
@keyframes heroZoom {
    0%   { transform: scale(1.12) translateY(-2%); }
    100% { transform: scale(1.22) translateY(2%); }
}

/* Circular background-position orbit to keep color ratio but add motion */
@keyframes gradientOrbit {
    0%   { background-position: 20% 20%; }
    25%  { background-position: 80% 20%; }
    50%  { background-position: 80% 80%; }
    75%  { background-position: 20% 80%; }
    100% { background-position: 20% 20%; }
}

.hero-content,
.section-header,
.project-card,
.contact-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-background { animation: none !important; }
}

/* Enhanced typography */
h2.spd-heading:after {
    display: none;
}

/* Progress bars for achievements */
.achievement-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.achievement-progress {
    height: 100%;
    background: linear-gradient(90deg, #E3000F 0%, #C5003E 100%);
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

/* Stats styling */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #E3000F;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E3000F;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
}

/* Quote styling for political statements */
.political-quote {
    margin: 2rem 0;
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    font-weight: 500;
    color: black;
    line-height: 1.5;
    text-align: center;
}
