/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1B263B;
    --secondary-color: #F2994A;
    --neutral-light: #F4F7FB;
    --text-color: #1B263B;
    --text-light: #666666;
    --bg-color: #ffffff;
    --border-color: #e5e5e5;
    --hover-color: #f5f5f5;
    --gradient-accent: linear-gradient(135deg, #1B263B 0%, #F2994A 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(244, 247, 251, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 38, 59, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

.navbar.scrolled {
    background: rgba(244, 247, 251, 0.98);
    box-shadow: 0 8px 24px rgba(27, 38, 59, 0.08);
}

.nav-container {
    max-width: 1400px; /* match contact-container for exact alignment */
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto; /* brand | menu | cta */
    align-items: center;
    padding: 0; /* align with contact-container width */
    height: 80px;
    column-gap: 12px;
}

.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Simple brand logo placeholder */
.brand-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
    user-select: none;
}

/* Real brand logo image */
.brand-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Hexagon Logo */
.logo-inner {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    position: relative;
    width: 32px;
    height: 32px;
}

.circle-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 2px solid #F2994A;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.circle-middle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border: 2px solid #F2994A;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.circle-inner {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    background: #F2994A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.nav-logo:hover .circle-outer {
    border-color: #ff7b3d;
    transform: scale(1.05);
}

.nav-logo:hover .circle-middle {
    border-color: #ff7b3d;
    transform: scale(1.05);
}

.nav-logo:hover .circle-inner {
    background: #ff7b3d;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(242, 153, 74, 0.4);
}

/* Navigation Brand */
.nav-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.nav-logo:hover .wave-3 {
    transform: translate(-50%, -50%) translateY(6px) scaleX(1.1);
    background: rgba(242, 153, 74, 0.6);
}

.nav-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 0.85rem;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0; /* prevent overflow */
}

/* Accent color for brand name */
.nav-brand-container .brand-main { color: var(--secondary-color); }

/* Add section spacing between brand/menu and menu/CTA on desktop */
@media (min-width: 1025px) {
    /* Pin brand fully left and CTA fully right; no extra margins */
    .nav-menu { margin: 0; }
    .nav-cta { margin-left: 0; }
}

@media (max-width: 1024px) {
    .nav-menu { margin: 0; }
    .nav-cta { margin-left: 0; }
}

.partner-link,
.project-site-link,
.link-chip,
.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(27, 38, 59, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.partner-link i,
.project-site-link i,
.link-chip i,
.info-link i {
    font-size: 0.9rem;
}

.partner-link:hover,
.project-site-link:hover,
.link-chip:hover,
.info-link:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 153, 74, 0.35);
    box-shadow: 0 8px 20px rgba(27, 38, 59, 0.08);
}

/* Restore nav link hover background layer */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px; /* consistent comfortable touch target on desktop */
    border-radius: 10px;
    text-decoration: none;
}
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neutral-light), rgba(242, 153, 74, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.nav-icon {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: none; /* avoid visual jitter */
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover .nav-icon {
    opacity: 1;
    color: var(--secondary-color);
    transform: scale(1.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--neutral-light);
}

.nav-link.active .nav-icon {
    color: var(--secondary-color);
    opacity: 1;
}

/* CTA Button */
.nav-cta {
    justify-self: end; /* ensure CTA sits at far right in grid */
}

/* Ensure brand sits left and menu centers in its track */
.nav-brand-container { justify-self: start; }
.nav-menu { justify-self: center; }

.nav-cta-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(242, 153, 74, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 153, 74, 0.4);
}

.nav-cta-btn:hover::before {
    left: 100%;
}

.nav-cta-btn i {
    font-size: 14px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(27, 38, 59, 0.05);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(27, 38, 59, 0.1);
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle:hover span {
    background: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f7fb 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Matrix Background */
.hero-matrix {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
    width: 100%;
    gap: 2px;
}

.matrix-cell {
    background: linear-gradient(45deg, 
        rgba(27, 38, 59, 0.02) 0%, 
        rgba(242, 153, 74, 0.01) 50%, 
        rgba(27, 38, 59, 0.02) 100%);
    border: 1px solid rgba(242, 153, 74, 0.03);
    animation: matrixPulse 8s ease-in-out infinite;
}

@keyframes matrixPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

.matrix-cell:nth-child(1) { animation-delay: 0s; }
.matrix-cell:nth-child(2) { animation-delay: 0.5s; }
.matrix-cell:nth-child(3) { animation-delay: 1s; }
.matrix-cell:nth-child(4) { animation-delay: 1.5s; }
.matrix-cell:nth-child(5) { animation-delay: 2s; }
.matrix-cell:nth-child(6) { animation-delay: 2.5s; }
.matrix-cell:nth-child(7) { animation-delay: 3s; }
.matrix-cell:nth-child(8) { animation-delay: 3.5s; }
.matrix-cell:nth-child(9) { animation-delay: 4s; }
.matrix-cell:nth-child(10) { animation-delay: 4.5s; }
.matrix-cell:nth-child(11) { animation-delay: 5s; }
.matrix-cell:nth-child(12) { animation-delay: 5.5s; }

/* Hero Content */
.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text-block {
    max-width: 100%;
}

.text-reveal {
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-headline {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.9;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-color);
    margin: 0;
}

.word {
    display: inline-block;
    margin-right: 0.3em;
    animation: wordReveal 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(100%);
}

.word:nth-child(1) { animation-delay: 0.2s; }
.word:nth-child(2) { animation-delay: 0.4s; color: var(--secondary-color); }
.word:nth-child(3) { animation-delay: 0.6s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    margin-bottom: 3rem;
}

.hero-description p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.hero-interaction {
    margin-bottom: 2rem;
}

.interaction-prompt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.prompt-cursor {
    width: 2px;
    height: 1.2rem;
    background: var(--secondary-color);
    animation: cursorBlink 1.5s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.start-conversation-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(242, 153, 74, 0.3);
}

.start-conversation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(242, 153, 74, 0.4);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-conversation-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Simple Visual */
.hero-visual-area {
    position: relative;
    height: 400px;
}

.simple-visual {
    position: relative;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(242, 153, 74, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-content {
    text-align: center;
    max-width: 100%;
}

/* Ensure long words wrap within the card */
.visual-content,
.visual-title,
.visual-subtitle,
.point-item span {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.main-icon {
    margin-bottom: 2rem;
}

.main-icon i {
    font-size: 4rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.visual-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.visual-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.point-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Hero Footer - Partners Showcase */
.hero-footer {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 2px solid rgba(242, 153, 74, 0.2);
    background: rgba(244, 247, 251, 0.3);
}

.partners-showcase {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partners-header {
    margin-bottom: 3rem;
}

.partners-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 153, 74, 0.1);
    min-width: 120px;
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(242, 153, 74, 0.3);
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.1);
}

.partner-logo i {
    font-size: 3rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

/* PNG/SVG partner image sizing */
.partner-logo img.partner-logo-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logo span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.partner-logo:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Hover bump for image icons */
.partner-logo:hover img.partner-logo-img {
    transform: scale(1.1);
    filter: none;
}

/* Use brand colors on hover for specific devicons */
/* Azure: show brand-like gradient on hover (fallback to flat blue if not supported) */
/* Devicon Azure hover no longer needed; Azure uses PNG */
.partner-logo:hover i.devicon-postgresql-plain { color: #336791; }

.partner-logo:hover span {
    color: var(--primary-color);
}

/* Specific brand colors on hover */
.partner-logo:hover .fab.fa-microsoft {
    color: #00bcf2;
}

.partner-logo:hover .fab.fa-cuttlefish {
    color: #512bd4;
}

.partner-logo:hover .fab.fa-react {
    color: #61dafb;
}

.partner-logo:hover .fab.fa-docker {
    color: #2496ed;
}

.partner-logo:hover .fab.fa-git-alt {
    color: #f05032;
}

.partner-logo:hover .fas.fa-database {
    color: #cc2927;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Full-width container with small side padding; grid for left/right placement */
    .nav-container { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
    /* Ensure navbar itself is edge-to-edge on mobile */
    .navbar { padding-left: 0; padding-right: 0; }
    /* Mobile nav layout */
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(244, 247, 251, 0.98);
        border-bottom: 1px solid rgba(27, 38, 59, 0.1);
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem 1rem;
        display: none;
    }
    .nav-menu.open { display: flex; width: 100% }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }

    /* Brand left, burger right (grid handles placement) */
    .nav-container { justify-content: initial; }
    .nav-brand-container { justify-self: start; min-width: 0; max-width: 100%; }
    .nav-toggle { justify-self: end; }
    .nav-brand-container { max-width: calc(100% - 72px); overflow: visible; margin: 0; padding-left: 0; }
    .nav-toggle { margin: 0; flex-shrink: 0; padding: 0; width: 48px; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 0; }
    /* ensure brand/text doesn't push layout; keep inner spacing only between logo and text */
    .nav-brand { margin-left: 6px; }
    .brand-sub { display: block; }
    /* Allow wrapping so text fits nicely */
    .brand-main, .brand-sub { white-space: normal; }
    /* Slightly smaller logo for compact header */
    .brand-logo-img { height: 36px; }
    /* Remove compensation hack; rely on true edge alignment */
    .nav-brand-container .brand-logo-img { margin-left: 0; }

    /* Bring burger icon visually closer to the right edge */
    .nav-toggle { padding: 6px; background: transparent; }
    .nav-toggle:hover { background: transparent; }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-headline {
        font-size: 3rem;
    }
    
    .hero-visual-area { height: auto; }
    
    .simple-visual { padding: 1.5rem; }
    
    .main-icon i { font-size: 2.5rem; }
    
    .visual-title { font-size: 1.4rem; }
    
    .partners-logos {
        gap: 2rem;
        padding: 1rem 0;
    }
    .visual-title { font-size: 1.25rem; }
    .visual-subtitle { font-size: 1rem; }
    .point-item { font-size: 0.9rem; }
    
    .partner-logo {
        min-width: 100px;
        padding: 1rem;
    }
    
    .partner-logo i {
        font-size: 2.5rem;
    }
    .partner-logo img.partner-logo-img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .partners-label {
        font-size: 1rem;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 20px;
    background: var(--neutral-light);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
}

/* Legal page spacing tweaks */
#impressum .about-item h4,
#datenschutz .about-item h4 {
    margin-bottom: 0.6rem;
}

#impressum .about-item p,
#datenschutz .about-item p {
    margin: 0.2rem 0 0.8rem;
    line-height: 1.65;
}

#impressum .about-grid,
#datenschutz .about-grid {
    gap: 1.25rem;
}

/* Extra spacing when two about-grids appear back-to-back within a section on Impressum */
#impressum .about-section .about-grid + .about-grid { margin-top: 1rem; }

/* Impressum: responsive tweaks for membership/authority cards */
#impressum .wko-logo {
    height: 28px; /* keep logo compact on mobile */
    width: auto;
    display: block;
}

#impressum .wko-logo-container {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 900px) {
    /* Stack Impressum grids earlier so cards don't squeeze on tablets */
    #impressum .about-grid { grid-template-columns: 1fr; }
    /* Make each card content vertical for better readability */
    #impressum .about-item { flex-direction: column; text-align: center; }
    /* Center the WKO chip and avoid overflow */
    #impressum .link-chip { justify-content: center; width: 100%; }
}

@media (min-width: 900px) {
    #impressum .wko-logo { height: 32px; }
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    padding-left: 1rem;
}

.about-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 2px;
}

/* Was mach ich? Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(242, 153, 74, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(27, 38, 59, 0.1);
    border-color: rgba(242, 153, 74, 0.3);
}

.item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon i {
    font-size: 1.5rem;
    color: white;
}

.item-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.item-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Profile Card */
.profile-card {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 2px solid rgba(242, 153, 74, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.1);
}

.profile-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0f1a2e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-icon i {
    font-size: 2rem;
    color: white;
}

/* Photo inside profile icon */
.profile-icon img.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;
}

/* Make the photo as tall as the card */
.profile-icon.profile-photo-full {
    height: auto;            /* allow stretch */
    align-self: stretch;     /* fill card height */
    width: 180px;            /* larger visual presence */
    border-radius: 10px;     /* match card rounding */
    overflow: hidden;        /* clip overflowing image */
    background: none;        /* no gradient behind photo */
}

.profile-icon.profile.photo-full img.profile-photo {
    border-radius: 0;        /* use container rounding */
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Responsive: use rounded rectangle instead of circle to show full head */
@media (max-width: 768px) {
    .profile-icon.profile-photo-full {
        width: 180px;
        height: 240px;
        align-self: center;
        border-radius: 20px;
    }
    .profile-icon.profile-photo-full img.profile-photo {
        border-radius: 20px;
    }
}

/* Smaller screens - slightly smaller but still visible */
@media (max-width: 480px) {
    .profile-icon.profile-photo-full {
        width: 160px;
        height: 210px;
        border-radius: 18px;
    }
    .profile-icon.profile-photo-full img.profile-photo {
        border-radius: 18px;
    }
}

.profile-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
}

.profile-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(242, 153, 74, 0.1);
    backdrop-filter: blur(10px);
}

.skill-category h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 153, 74, 0.3);
}

/* Project Showcase */
.project-showcase {
    display: grid;
    gap: 1.5rem;
}

.project-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(242, 153, 74, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(27, 38, 59, 0.1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0f1a2e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon i {
    font-size: 1.5rem;
    color: white;
}

.project-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(242, 153, 74, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(27, 38, 59, 0.1);
    border-color: rgba(242, 153, 74, 0.3);
}

.partner-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Allow image icons too */
.partner-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-item:hover .partner-icon img {
    filter: none;
}

.partner-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.partner-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Nested partner items (children under ONE-PATH) */
.partner-children {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(27, 38, 59, 0.15);
}

.partner-child {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.partner-icon.small {
    width: 44px;
    height: 44px;
}

.partner-icon.small img {
    width: 75%;
    height: 75%;
}

.partner-child-content h5 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.partner-child-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
}

.partner-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.partner-link i {
    font-size: 0.9rem;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-item,
    .profile-card,
    .project-item,
    .partner-item {
        flex-direction: column;
        text-align: center;
    }
    
    .skills-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
        padding-left: 1.5rem;
    }
    
    .about-subtitle::before {
        height: 25px;
    }
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.08);
    border: 1px solid rgba(242, 153, 74, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(27, 38, 59, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--neutral-light);
}

section:nth-child(odd) {
    background: var(--bg-color);
}

.section-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), transparent);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 20px;
    background: white;
    position: relative;
    overflow: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-section {
    margin-bottom: 4rem;
}

.expertise-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    padding-left: 1rem;
}

.expertise-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 2px;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(242, 153, 74, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(27, 38, 59, 0.05);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(27, 38, 59, 0.1);
    border-color: rgba(242, 153, 74, 0.3);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expertise-icon i {
    font-size: 1.5rem;
    color: white;
}

.expertise-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.expertise-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.architecture-item {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 2px solid rgba(242, 153, 74, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.1);
    transition: all 0.3s ease;
}

.architecture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(27, 38, 59, 0.15);
    border-color: rgba(242, 153, 74, 0.4);
}

.architecture-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #0f1a2e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.architecture-icon i {
    font-size: 1.8rem;
    color: white;
}

.architecture-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
}

.architecture-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
    margin: 0;
}

/* Responsive Design for Services Section */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-item,
    .architecture-item {
        flex-direction: column;
        text-align: center;
    }
    
    .expertise-subtitle {
        font-size: 1.5rem;
        padding-left: 1.5rem;
    }
    
    .expertise-subtitle::before {
        height: 25px;
    }
}

.service-card li {
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid rgba(27, 38, 59, 0.1);
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li::before {
    content: '●';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 10px;
}

.service-card:hover li {
    color: var(--text-color);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), #2a3f5f);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 30%;
    right: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 1rem;
}

.portfolio-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* Hide mobile break on larger screens */
.mobile-break,
.mobile-break-text {
    display: none;
}

.portfolio-intro {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Project */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(27, 38, 59, 0.1);
}

.project-visual {
    position: relative;
}

.project-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.featured-project:hover .project-mockup {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.mockup-screen {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.mockup-embed {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0f0f0f;
}

/* Deprecated iframe preview styles removed; new video embed below */

/* Drive video inside mockup */
.video-holder {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio */
    padding-top: 56.25%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.drive-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Optional ratio utilities */
.video-holder.ratio-4x3 { padding-top: 75%; }
.video-modal-dialog.ratio-4x3 { aspect-ratio: 4 / 3; }
.video-holder.ratio-1x1 { padding-top: 100%; }
.video-modal-dialog.ratio-1x1 { aspect-ratio: 1 / 1; }

/* Play overlay on mockup */
.mockup-embed { position: relative; }
.mockup-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(transparent, rgba(0,0,0,0.35));
    border: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease;
}
.mockup-embed:hover .mockup-play { opacity: 1; }
.mockup-play i {
    font-size: 2.25rem;
    background: rgba(0,0,0,0.55);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.video-modal.active { display: flex; }
.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.video-modal-dialog {
    position: relative;
    width: min(92vw, 1100px);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.video-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    font-size: 2rem;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1;
}
.video-modal-content, .video-modal-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Live preview iframe */
.project-iframe {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27, 38, 59, 0.12);
    background: #fff;
}

.project-iframe::before {
    content: '';
    display: block;
    padding-top: 62.5%; /* 16:10 aspect ratio fallback */
}

.project-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.iframe-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f4f7fb, #e8f0fe);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 1;
}

.iframe-fallback.hidden { display: none; }

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
    background: #28ca42;
}

.mockup-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.mockup-content {
    display: flex;
    gap: 1rem;
    height: 200px;
}

.mockup-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    height: 40px;
    background: #3a3a3a;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.sidebar-item.active {
    background: var(--secondary-color);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-block {
    height: 80px;
    background: #3a3a3a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.content-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.content-row {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.content-card {
    flex: 1;
    background: #3a3a3a;
    border-radius: 8px;
}

.project-details {
    padding-left: 2rem;
}

.project-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.highlight span {
    font-weight: 600;
    color: var(--primary-color);
}

.project-tech {
    margin-top: 2rem;
}

.tech-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Featured project footer link */
.project-footer {
    margin-top: 1.25rem;
}

.project-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(27, 38, 59, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.project-site-link i {
    font-size: 0.9rem;
}

.project-site-link:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 153, 74, 0.35);
    box-shadow: 0 8px 20px rgba(27, 38, 59, 0.08);
}

.tech-badge.primary {
    background: linear-gradient(135deg, var(--primary-color), #2a3f5f);
    color: white;
}

.tech-badge.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: white;
}

.tech-badge.accent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Projects Showcase */
.projects-showcase {
    margin-top: 6rem;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(27, 38, 59, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #2a3f5f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.card-status {
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.card-status.in-progress {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.project-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Repaired original card-tech span styles */
.card-tech span {
    padding: 0.4rem 0.8rem;
    background: rgba(27, 38, 59, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Additional fine‑tuning for very small devices */
@media (max-width: 480px) {
    .contact-title { font-size: clamp(1.9rem, 7.2vw, 2.4rem); }
    .contact-intro { font-size: 1rem; }
}

/* --- Enhanced Featured Project Mobile Responsiveness --- */
@media (max-width: 600px) {
    .featured-project {
        padding: 1.25rem 1.25rem 2rem;
        gap: 1.5rem;
        border-radius: 18px;
    }
    .project-visual { order: 1; }
    .project-details { order: 2; text-align: center; }
/* Small tablets and large phones */
@media (max-width: 600px) {
    .portfolio-header {
        display: block;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }
    
    .portfolio-intro {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .project-name { font-size: 1.55rem; line-height: 1.25; }
    .project-description { font-size: 0.95rem; }
    .project-highlights { justify-content: center; }
    .tech-badges { justify-content: center; }
    .project-mockup { transform: none !important; }
}

/* Ultra small screens */
@media (max-width: 380px) {
    .portfolio-header {
        display: block;
        margin-bottom: 2rem;
        padding: 0 0.75rem;
    }
    
    .portfolio-title {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-intro {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 0 0.25rem;
    }
    
    .featured-project { padding: 1rem 1rem 1.75rem; }
    .project-name { font-size: 1.4rem; }
}
}
/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-header {
        display: block;
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    /* Show mobile break on tablets and smaller */
    .mobile-break,
    .mobile-break-text {
        display: inline;
    }
    
    .portfolio-intro {
        font-size: 1.1rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .featured-project {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .project-details {
        padding-left: 0;
        text-align: center;
    }
    
    .project-mockup {
        transform: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.portfolio-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.08);
    border: 1px solid rgba(242, 153, 74, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-accent);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 38, 59, 0.15);
}

.portfolio-header {
    padding: 30px 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon i {
    font-size: 24px;
    color: white;
}

.portfolio-status {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 30px 15px;
}

.portfolio-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 30px 25px;
    font-size: 1rem;
}

.tech-stack {
    padding: 0 30px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(242, 153, 74, 0.1);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(242, 153, 74, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.contact-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: contactFloat 25s ease-in-out infinite;
}

.contact-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.contact-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 60%;
    right: -5%;
    animation-delay: -10s;
}

.contact-shape.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 10%;
    right: 20%;
    animation-delay: -20s;
}

@keyframes contactFloat {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-40px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(-20px) translateX(-30px) rotate(180deg); }
    75% { transform: translateY(30px) translateX(10px) rotate(270deg); }
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(27, 38, 59, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(27, 38, 59, 0.2);
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.contact-badge i {
    color: var(--secondary-color);
}

.contact-title {
    font-size: clamp(2.1rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-color);
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    font-size: 1.3rem;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 500;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* left: contact-info, right: cta */
    gap: 3rem;
    align-items: start;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(27, 38, 59, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 38, 59, 0.1);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 153, 74, 0.1), transparent);
    transition: left 0.6s ease;
}

.info-card:hover {
    background: white;
    transform: translateX(10px);
    border-color: rgba(242, 153, 74, 0.3);
    box-shadow: 0 8px 30px rgba(27, 38, 59, 0.15);
}

.info-card:hover::before {
    left: 100%;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.3rem;
    color: white;
}

.info-content {
    flex: 1;
    position: relative;
}

.info-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-color);
}

.info-content p {
    opacity: 1;
    margin: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-link {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: rgba(242, 153, 74, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.info-card:hover .info-link {
    opacity: 1;
    transform: scale(1);
}

.info-link:hover {
    background: var(--secondary-color);
    color: white;
}

.info-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #4ade80;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-indicator span {
    font-size: 0.9rem;
    color: #4ade80;
    font-weight: 600;
}

/* Contact CTA */
.contact-cta {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(27, 38, 59, 0.1);
    box-shadow: 0 4px 20px rgba(27, 38, 59, 0.1);
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.cta-header i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-cta h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-color);
}

.contact-cta p {
    opacity: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--text-light);
    font-weight: 500;
}

/* Stack contact columns on smaller screens */
@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr; /* stack info and CTA vertically */
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    color: white;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #ff7b3d, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242, 153, 74, 0.3);
    color: white;
}

.cta-btn.primary:hover .btn-shine {
    left: 100%;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: rgba(27, 38, 59, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(27, 38, 59, 0.05);
    border-color: rgba(27, 38, 59, 0.5);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(27, 38, 59, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.response-time i {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-header p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.form-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: rgba(27, 38, 59, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 25%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    padding: 1rem 1.2rem;
    border: 2px solid rgba(27, 38, 59, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--primary-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(27, 38, 59, 0.1);
}

.checkbox-item:hover {
    background: rgba(242, 153, 74, 0.05);
    border-color: rgba(242, 153, 74, 0.2);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(27, 38, 59, 0.2);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--secondary-color), #ff7b3d);
    border-color: var(--secondary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-item span:not(.checkmark) {
    color: var(--primary-color);
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #2a3f5f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    overflow: hidden;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2a3f5f, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 38, 59, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.submit-btn.loading .btn-content {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

.submit-btn.loading {
    cursor: not-allowed;
}

/* --- Datenschutz: Rechte-Grid großzügiger Layout --- */
#datenschutz .rights-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
}
#datenschutz .rights-grid .about-item {
  padding: 2rem 2rem; /* consistent inner spacing */
}
#datenschutz .rights-grid .item-content h4 {
  margin-bottom: 0.4rem;
}
#datenschutz .rights-grid .item-content p {
  line-height: 1.7;
}

/* On larger screens allow fewer, wider cards to avoid cramping */
@media (min-width: 1200px) {
  #datenschutz .rights-grid {
    grid-template-columns: repeat(3, minmax(360px, 1fr));
    gap: 2.5rem;
  }
}

/* On small screens keep 1 per row with comfy spacing */
@media (max-width: 600px) {
  #datenschutz .rights-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- Datenschutz: content-heavy cards responsiveness --- */
/* Stack earlier on small tablets to avoid cramped two-column layouts */
@media (max-width: 900px) {
    #datenschutz .about-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* On mobile: keep legal text left-aligned and ensure icons/spacing feel balanced */
@media (max-width: 768px) {
    #datenschutz .about-item {
        text-align: left;           /* override global center for legal text */
        align-items: stretch;
        padding: 1.5rem;            /* a bit tighter padding on phones */
    }
    #datenschutz .item-icon {
        width: 50px;
        height: 50px;
        margin: 0 0 0.5rem 0;       /* place icon above text with small gap */
    }
}

/* Wrap long hostnames and code snippets within lists to prevent overflow */
#datenschutz .link-chip {
    white-space: normal;
    word-break: break-word;
}
#datenschutz code {
    white-space: normal;
    word-break: break-word;
}
#datenschutz .item-content ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}
#datenschutz .item-content li {
    margin: 0.3rem 0;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f1419 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 1rem;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.1;
}

/* Footer Updates for Legal Links */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        text-align: center;
    }
}
