/* ========================================
   MOBILE DARSTELLUNGS-FIX - KRITISCH
   ======================================== */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-width: 320px;
}

/* ========================================
   CSS VARIABLES FOR THEME SYSTEM
   ======================================== */
:root {
    /* Light Theme — warm paper + deep teal */
    --bg-primary: #f4f1ea;
    --bg-secondary: #fffdf8;
    --bg-tertiary: #ebe6dc;
    --text-primary: #1a2332;
    --text-secondary: #3d4a5c;
    --text-tertiary: #445064;
    --text-light: #e8eef4;
    --heading-color: #122033;
    --accent-primary: #0e7490;
    --accent-secondary: #0f766e;
    --accent-soft: #d7eef2;
    --accent-gradient: linear-gradient(135deg, #0e7490, #0f766e);
    --hero-gradient: linear-gradient(135deg, #122033 0%, #164e63 55%, #134e4a 100%);
    --nav-gradient: linear-gradient(135deg, #0f172a, #155e75);
    --footer-gradient: linear-gradient(135deg, #0f172a, #1e293b);
    --card-bg: #fffdf8;
    --card-shadow: 0 12px 32px rgba(18, 32, 51, 0.08);
    --border-color: #d7d0c4;
    --border-light: #e8e2d6;
    --success-color: #047857;
    --error-color: #b91c1c;
    --warning-color: #b45309;
    --info-color: #0e7490;
    --on-accent: #f8fafc;
    --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
    --font-display: "Outfit", "Source Sans 3", sans-serif;
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Theme — ink navy + mint accents */
body.dark-theme {
    --bg-primary: #0b1220;
    --bg-secondary: #121a2b;
    --bg-tertiary: #172033;
    --text-primary: #f1f5f9;
    --text-secondary: #d5dee9;
    --text-tertiary: #c5d0dc;
    --text-light: #94a3b8;
    --heading-color: #f8fafc;
    --accent-primary: #5eead4;
    --accent-secondary: #67e8f9;
    --accent-soft: #164e63;
    --accent-gradient: linear-gradient(135deg, #2dd4bf, #22d3ee);
    --hero-gradient: linear-gradient(135deg, #020617 0%, #134e4a 48%, #164e63 100%);
    --nav-gradient: linear-gradient(135deg, #020617, #0f172a);
    --footer-gradient: linear-gradient(135deg, #020617, #0f172a);
    --card-bg: #1a2436;
    --card-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    --border-color: #334155;
    --border-light: #243044;
    --success-color: #34d399;
    --error-color: #f87171;
    --warning-color: #fbbf24;
    --info-color: #67e8f9;
    --on-accent: #042f2e;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    color-scheme: light;
}

body.dark-theme {
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--theme-transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--heading-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: var(--accent-primary);
}

.muted-list,
.overview-card ul,
.timeline-content ul {
    color: var(--text-secondary);
}

/* Global paragraph spacing - eliminate large gaps */
p {
    margin: 0 0 0.6rem;
}

/* Consistent list spacing for section bullets */
.section-list {
    margin: 0.25rem 0 0.75rem 1.2rem;
    padding: 0;
}

.section-list li {
    margin: 0 0 0.4rem 0;
}

.overview-card p { margin-bottom: 0.4rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--nav-gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    min-height: 72px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--theme-transition);
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    height: 72px;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: none;
}

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem 1.1rem;
    flex: 1;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-item:nth-child(1) { width: 5.9rem; min-width: 5.9rem; }
.nav-item:nth-child(2) { width: 5.7rem; min-width: 5.7rem; }
.nav-item:nth-child(3) { width: 8.7rem; min-width: 8.7rem; }
.nav-item:nth-child(4) { width: 6.3rem; min-width: 6.3rem; }
.nav-item:nth-child(5) { width: 6.5rem; min-width: 6.5rem; }
.nav-item:nth-child(6) { width: 4.9rem; min-width: 4.9rem; }
.nav-item:nth-child(7) { width: 4.7rem; min-width: 4.7rem; }

.navbar .nav-link,
.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:visited {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 32px !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    animation: none !important;
    overflow: visible !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    height: 40px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent-primary) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    width: auto;
    height: 2px;
    background-color: transparent;
    pointer-events: none;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    background-color: var(--accent-primary);
    width: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 120px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    transition: var(--theme-transition);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: stretch;
    width: 100%;
    overflow-x: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.hero-image {
    display: flex;
    min-height: 0;
}

/* Home hero banner image */
.hero-banner {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,255,255,0.25);
}

/* Intro / Services / Benefits */
.intro, .services, .benefits, .cta-section {
    padding: 50px 0;
    background: var(--bg-secondary);
    transition: var(--theme-transition);
}

.featured {
    padding: 40px 0;
    background: var(--bg-tertiary);
    transition: var(--theme-transition);
}

.benefits {
    background: var(--bg-tertiary);
}

.cta-section {
    background: var(--hero-gradient);
    color: #fff;
}

.cta-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(6px);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: #e8f4fd;
    margin-bottom: 1.25rem;
}

.section-lead {
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--text-tertiary);
    text-align: center;
    transition: var(--theme-transition);
}

@media screen and (max-width: 768px) {
    .hero-container { gap: 2rem; }
    .hero-banner { max-height: 300px; }
}

/* In-page section navigation */
.section-nav {
    background: var(--bg-secondary);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--theme-transition);
}

.section-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.nav-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, var(--theme-transition);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(116,185,255,.35);
}

.nav-btn.outline {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
}

.section-end-nav {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f8fafc;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.55rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #e0f2fe;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.8;
    color: #f1f5f9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.profile-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.profile-photo {
    position: relative;
    flex: none;
    width: auto;
    height: 220px;
    aspect-ratio: 1066 / 1644;
    margin: 0 auto 1rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    border-radius: 12px;
}

.profile-info {
    flex-shrink: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.profile-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.profile-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    transition: var(--theme-transition);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Overview Section */
.overview {
    padding: 50px 0;
    background: var(--bg-secondary);
    transition: var(--theme-transition);
}

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

.overview-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, var(--theme-transition);
    border: 1px solid var(--border-light);
}

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

.card-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: var(--theme-transition);
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.overview-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: var(--theme-transition);
}

/* Highlights Section */
.highlights {
    padding: 50px 0;
    background: var(--bg-tertiary);
    transition: var(--theme-transition);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    margin-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
}

.timeline-date {
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    flex: 1;
    max-width: 45%;
    transition: var(--theme-transition);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    transition: var(--theme-transition);
}

.timeline-content h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: var(--theme-transition);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: var(--theme-transition);
}

.highlights-uniform .timeline {
    max-width: 920px;
}

.highlights-uniform .timeline::before {
    left: 7.25rem;
    transform: none;
}

.highlights-uniform .timeline-item {
    display: grid;
    grid-template-columns: 7.25rem 1fr;
    column-gap: 1.75rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.highlights-uniform .timeline-item:nth-child(odd) {
    flex-direction: unset;
}

.highlights-uniform .timeline-date {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.82rem;
    padding: 0.45rem 0.4rem;
    margin-top: 1.65rem;
}

.highlights-uniform .timeline-item:nth-child(odd) .timeline-content,
.highlights-uniform .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    margin: 0;
    max-width: none;
}

.highlights-uniform .timeline-content {
    max-width: none;
    padding: 1.35rem 1.5rem;
}

.highlights-uniform .timeline-content h3 {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
}

.highlights-uniform .timeline-content h4 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.highlights-uniform .timeline-content p {
    margin: 0 0 0.75rem;
    min-height: 2.6em;
}

.highlights-uniform .highlight-list {
    margin: 0;
    padding: 0 0 0 1.15rem;
    list-style: disc;
}

.highlights-uniform .highlight-list li {
    margin: 0.18rem 0;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Skills Preview Section */
.skills-preview {
    padding: 50px 0;
    background: var(--bg-secondary);
}

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

.skill-category {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-primary);
}

.skill-category h3 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Backend Showcase */
.backend-showcase {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 15px;
    padding: 1.5rem;
    background: var(--hero-gradient);
    border-radius: 18px;
    color: #f8fafc;
}

.featured-showcase {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    text-align: center;
}

.featured-copy {
    max-width: 820px;
    margin: 0 auto;
}

.featured-copy h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.featured-copy p {
    margin: 0;
    line-height: 1.65;
}

.featured-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    align-items: stretch;
}

.featured-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    display: block;
}

.featured-tags {
    justify-content: center;
    margin-top: 2px;
    gap: 12px;
}

.backend-showcase p,
.backend-info p {
    color: #f1f5f9 !important;
}

.backend-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.3s ease;
}

.backend-image:hover {
    transform: scale(1.05);
}

.backend-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.backend-info p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Company Logo Images */
.company-logo a,
.education-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.company-logo-img,
.edu-logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    transform: none;
}

.company-logo:has(.company-logo-img),
.education-icon:has(.edu-logo-img) {
    background: #fff;
    border: 2px solid #ddd;
    padding: 10px;
}

.company-logo:has(.company-logo-img):hover,
.education-icon:has(.edu-logo-img):hover {
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.3);
}

/* University Logo Images - Clickable */
.education-icon a {
    transition: border-color 0.3s ease;
}

.logo-hrw a:hover img {
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.logo-hsd a:hover img {
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
}

/* Footer */
.footer {
    background: var(--footer-gradient);
    color: #f8fafc;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-section p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section i {
    color: var(--accent-primary);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-item {
        min-width: 0;
    }

    .navbar .nav-link {
        font-size: 0.875rem !important;
        height: 32px !important;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: var(--nav-gradient);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 1001;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        align-items: start;
    }

    .hero-content {
        justify-content: flex-start;
    }

    .hero-image {
        display: block;
    }

    .profile-card {
        height: auto;
    }

    .profile-photo {
        flex: none;
        width: auto;
        height: 185px;
        max-width: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-content {
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
        max-width: none;
    }
    
    .timeline-date {
        left: 20px !important;
        transform: translateX(-50%);
    }

    .highlights-uniform .timeline::before {
        display: none;
    }

    .highlights-uniform .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .highlights-uniform .timeline-date {
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: auto;
        justify-self: start;
        margin-top: 0;
    }

    .highlights-uniform .timeline-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Experience Page Mobile Styles */
    .experience-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "period"
            "title";
        gap: 0.75rem;
        text-align: center;
        justify-items: center;
    }

    .experience-header .company-logo,
    .experience-header .experience-period {
        justify-self: center;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    /* Education Page Mobile Styles */
    .education-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "period"
            "title";
        gap: 0.75rem;
        text-align: center;
        justify-items: center;
    }

    .education-header .education-icon,
    .education-header .education-period {
        justify-self: center;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cert-date {
        justify-self: center;
    }
    
    .languages-grid,
    .soft-skills-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .soft-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .soft-skill-category {
        min-width: auto;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .overview-card,
    .skill-category {
        padding: 1.5rem;
    }
    
    .experience-content,
    .education-content {
        padding: 1.5rem;
    }
    
    .experience-title h3 {
        font-size: 1.3rem;
    }
    
    .experience-title h4 {
        font-size: 1.1rem;
    }
    
    .education-title h3 {
        font-size: 1.3rem;
    }
    
    .education-title h4 {
        font-size: 1.1rem;
    }
    
    .activity-item,
    .curriculum-item {
        padding: 1rem;
    }
    
    .cert-item {
        padding: 1rem;
    }
    
    .soft-skill-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .soft-skill-icon {
        min-width: auto;
    }
    
    .backend-showcase {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1.25rem;
    }

    .featured-gallery {
        grid-template-columns: 1fr;
    }

    .featured-photo {
        height: 200px;
    }

    .featured-showcase {
        text-align: center;
    }
    
    .backend-image {
        width: 100%;
        height: 220px;
        margin: 0;
    }
}

/* Extra small devices */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .experience-content,
    .education-content {
        padding: 1rem;
    }
    
    .overview-card,
    .skill-category,
    .activity-item,
    .curriculum-item {
        padding: 1rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .tech-tag,
    .skill-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Page Header Styles */
.page-header {
    background: var(--hero-gradient);
    color: #f8fafc;
    padding: 132px 0 72px;
    min-height: 220px;
    box-sizing: border-box;
    text-align: center;
}

.page-title,
.page-subtitle {
    color: #f8fafc;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Experience Page Styles */
.experience-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-item.current {
    border: 3px solid #00b894;
}

.experience-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "logo title"
        "period title";
    column-gap: 2rem;
    row-gap: 0.65rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.experience-header .company-logo {
    grid-area: logo;
    justify-self: start;
}

.experience-header .experience-period {
    grid-area: period;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: start;
    width: 132px;
    max-width: 132px;
    text-align: center;
}

.experience-header .experience-title {
    grid-area: title;
    align-self: center;
}

.experience-header .period-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    padding: 0.45rem 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0;
    border-radius: 8px;
}

.period-badge {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.current-badge {
    background: linear-gradient(45deg, #00b894, #00a085);
}

.current-label {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.experience-title h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-title h4 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.company-info {
    color: #666;
    font-size: 0.9rem;
}

.company-logo {
    font-size: 2.5rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 96px;
    min-width: 132px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

/* Company/Institution specific logos */
.logo-bmw {
    background: linear-gradient(45deg, #0066cc, #004499);
    color: white;
    border-color: #0066cc;
}

.logo-volkswagen {
    background: linear-gradient(45deg, #1e3a8a, #1e40af);
    color: white;
    border-color: #1e3a8a;
}

.logo-audi {
    background: linear-gradient(45deg, #bb0a30, #dc2626);
    color: white;
    border-color: #bb0a30;
}

.logo-siemens {
    background: linear-gradient(45deg, #009999, #00b3b3);
    color: white;
    border-color: #009999;
}

.logo-university {
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
    color: white;
    border-color: #7c3aed;
}

.logo-research {
    background: linear-gradient(45deg, #059669, #10b981);
    color: white;
    border-color: #059669;
}

.logo-hp {
    background: linear-gradient(45deg, #0096d6, #00a8e6);
    color: white;
    border-color: #0096d6;
}

.logo-fiege {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    border-color: #f59e0b;
}

/* Institution logos for education section */
.education-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 96px;
    min-width: 132px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.edu-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.logo-hrw {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: white;
    border-color: #dc2626;
}

.logo-hsd {
    background: linear-gradient(45deg, #1d4ed8, #3b82f6);
    color: white;
    border-color: #1d4ed8;
}

.logo-studienkolleg {
    background: linear-gradient(45deg, #7c2d12, #ea580c);
    color: white;
    border-color: #7c2d12;
}

.logo-gymnasium {
    background: linear-gradient(45deg, #166534, #22c55e);
    color: white;
    border-color: #166534;
}

.experience-content {
    padding: 2rem;
}

.responsibilities h5,
.key-activities h5,
.technologies-used h5,
.achievements h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.activity-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #74b9ff;
}

.activity-item h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Skills Development Timeline */
.skills-timeline {
    padding: 50px 0;
    background: #f8f9fa;
}

.skills-timeline .timeline-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-evolution {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.skill-evolution .phase-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.skill-evolution .phase-header p {
    color: #666;
    margin-bottom: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-item {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Education Page Styles */
.education-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    overflow: hidden;
}

.education-item.featured {
    border: 3px solid var(--accent-primary);
}

.education-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "logo title"
        "period title";
    column-gap: 2rem;
    row-gap: 0.65rem;
    align-items: center;
    padding: 2rem;
    background: var(--hero-gradient);
    color: #f8fafc;
}

.education-header .education-icon {
    grid-area: logo;
    justify-self: start;
}

.education-header .education-period {
    grid-area: period;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: start;
    width: 132px;
    max-width: 132px;
    text-align: center;
}

.education-header .education-title {
    grid-area: title;
    align-self: center;
}

.education-header .period-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    padding: 0.45rem 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0;
    border-radius: 8px;
}

.master-badge {
    background: linear-gradient(45deg, #00b894, #00a085);
}

.bachelor-badge {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
}

.prep-badge {
    background: linear-gradient(45deg, #fdcb6e, #e17055);
}

.high-school-badge {
    background: linear-gradient(45deg, #fd79a8, #e84393);
}

.degree-level {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.education-title h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-title h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.specialization {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.institution {
    opacity: 0.7;
    font-size: 0.9rem;
}

.education-icon {
    font-size: 2.5rem;
}

.thesis-section {
    margin-bottom: 2rem;
}

.thesis-details h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.thesis-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

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

.curriculum-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.curriculum-item h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Certifications */
.certifications {
    padding: 50px 0;
    background: white;
}

.certifications-grid {
    display: grid;
    gap: 2rem;
}

.cert-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.cert-category h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.cert-item.featured-cert {
    border-left: 4px solid #00b894;
}

.cert-date {
    background: #74b9ff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.cert-content h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.cert-provider {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-badge {
    background: #e8f4fd;
    color: #74b9ff;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cert-badge.certified {
    background: #d4edda;
    color: #00b894;
}

/* Language Skills */
.language-skills {
    padding: 50px 0;
    background: #f8f9fa;
}

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

.language-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.language-flag {
    font-size: 2.5rem;
    color: #74b9ff;
    margin-bottom: 1rem;
}

.language-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.language-level {
    color: #666;
    margin-bottom: 1rem;
}

.language-progress {
    background: #f1f3f4;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border-radius: 4px;
    transition: width 2s ease;
}

.language-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Soft Skills */
.soft-skills {
    padding: 50px 0;
    background: white;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.soft-skill-category h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.soft-skill-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.soft-skill-icon {
    font-size: 2rem;
    color: #74b9ff;
    min-width: 50px;
}

.soft-skill-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.soft-skill-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.skill-rating {
    display: flex;
    gap: 0.2rem;
}

.skill-rating i {
    color: #ffd700;
}

/* Personal Details */
.personal-details {
    padding: 50px 0;
    background: white;
}

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

.detail-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.detail-icon {
    font-size: 3rem;
    color: #74b9ff;
    margin-bottom: 1rem;
}

.detail-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.language-name {
    font-weight: 600;
    color: #2c3e50;
}

.language-level {
    background: #f1f3f4;
    height: 8px;
    border-radius: 4px;
    flex: 1;
    margin: 0 1rem;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border-radius: 4px;
}

.level-text {
    font-size: 0.8rem;
    color: #666;
    min-width: 60px;
}

.personality-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.trait-tag {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   THEME TOGGLE BUTTON STYLES
   ======================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-left: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: none;
}

.navbar .theme-toggle-btn {
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    transform: none !important;
}

.navbar .theme-toggle-btn i,
.navbar .theme-toggle-btn .fas {
    color: white;
    font-size: 1rem !important;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Theme toggle animation */
.theme-toggle-btn .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle-btn .fa-moon {
    opacity: 0;
    transform: rotate(180deg);
    position: absolute;
}

body.dark-theme .theme-toggle-btn .fa-sun {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-theme .theme-toggle-btn .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Mobile theme toggle */
@media screen and (max-width: 768px) {
    .theme-toggle {
        margin-left: 0;
        margin-right: 0;
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle-btn i {
        font-size: 1rem;
    }
}

/* ========================================
   DARK THEME SPECIFIC OVERRIDES
   ======================================== */
body.dark-theme .footer {
    background: var(--footer-gradient);
}

body.dark-theme .footer-section h3 {
    color: var(--accent-primary);
}

body.dark-theme .footer-section i {
    color: var(--accent-primary);
}

body.dark-theme .skills-preview {
    background: var(--bg-secondary);
}

body.dark-theme .skill-category {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-primary);
}

body.dark-theme .skill-category h3 {
    color: var(--text-primary);
}

body.dark-theme .skill-category h3 i {
    color: var(--accent-primary);
}

body.dark-theme .skill-tag {
    background: var(--accent-gradient);
}

body.dark-theme .backend-showcase {
    background: var(--hero-gradient);
}

body.dark-theme .page-header {
    background: var(--hero-gradient);
}

body.dark-theme .experience-item {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

body.dark-theme .experience-header {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-color);
}

body.dark-theme .experience-title h3 {
    color: var(--text-primary);
}

body.dark-theme .experience-title h4 {
    color: var(--accent-primary);
}

body.dark-theme .company-info {
    color: var(--text-secondary);
}

body.dark-theme .company-logo {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

body.dark-theme .activity-item {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-primary);
}

body.dark-theme .activity-item h6 {
    color: var(--text-primary);
}

body.dark-theme .tech-tag {
    background: var(--accent-gradient);
}

body.dark-theme .education-item {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

body.dark-theme .education-header {
    background: var(--hero-gradient);
}

body.dark-theme .thesis-details h6 {
    color: var(--text-primary);
}

body.dark-theme .thesis-description {
    background: var(--bg-tertiary);
}

body.dark-theme .curriculum-item {
    background: var(--bg-tertiary);
}

body.dark-theme .curriculum-item h6 {
    color: var(--text-primary);
}

body.dark-theme .certifications {
    background: var(--bg-secondary);
}

body.dark-theme .cert-category {
    background: var(--bg-tertiary);
}

body.dark-theme .cert-category h3 {
    color: var(--text-primary);
}

body.dark-theme .cert-item {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

body.dark-theme .cert-content h4 {
    color: var(--text-primary);
}

body.dark-theme .cert-provider {
    color: var(--text-secondary);
}

body.dark-theme .cert-date {
    background: var(--accent-primary);
}

body.dark-theme .language-skills {
    background: var(--bg-tertiary);
}

body.dark-theme .language-card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

body.dark-theme .language-flag {
    color: var(--accent-primary);
}

body.dark-theme .language-card h3 {
    color: var(--text-primary);
}

body.dark-theme .language-level {
    color: var(--text-secondary);
}

body.dark-theme .language-progress {
    background: var(--border-light);
}

body.dark-theme .progress-bar {
    background: var(--accent-gradient);
}

body.dark-theme .language-note {
    color: var(--text-secondary);
}

body.dark-theme .soft-skills {
    background: var(--bg-secondary);
}

body.dark-theme .soft-skill-category h3 {
    color: var(--text-primary);
}

body.dark-theme .soft-skill-item {
    background: var(--bg-tertiary);
}

body.dark-theme .soft-skill-icon {
    color: var(--accent-primary);
}

body.dark-theme .soft-skill-content h4 {
    color: var(--text-primary);
}

body.dark-theme .soft-skill-content p {
    color: var(--text-secondary);
}

body.dark-theme .personal-details {
    background: var(--bg-secondary);
}

body.dark-theme .detail-card {
    background: var(--bg-tertiary);
}

body.dark-theme .detail-icon {
    color: var(--accent-primary);
}

body.dark-theme .detail-card h3 {
    color: var(--text-primary);
}

body.dark-theme .language-name {
    color: var(--text-primary);
}

body.dark-theme .language-level {
    background: var(--border-light);
}

body.dark-theme .level-bar {
    background: var(--accent-gradient);
}

body.dark-theme .level-text {
    color: var(--text-secondary);
}

body.dark-theme .trait-tag {
    background: var(--accent-gradient);
}

body.dark-theme .skills-timeline {
    background: var(--bg-tertiary);
}

body.dark-theme .skill-evolution {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

body.dark-theme .skill-evolution .phase-header h3 {
    color: var(--text-primary);
}

body.dark-theme .skill-evolution .phase-header p {
    color: var(--text-secondary);
}

body.dark-theme .skill-item {
    background: var(--accent-gradient);
}

/* Mobile navigation dark theme */
@media screen and (max-width: 768px) {
    body.dark-theme .nav-menu {
        background: var(--nav-gradient);
    }

    .profile-photo {
        width: auto;
        height: 185px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .intro-copy {
        font-size: 1rem;
        line-height: 1.6;
        justify-content: flex-start;
    }

    .intro-content,
    .intro-image {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .about-photo-wrap {
        flex: none;
        min-height: 0;
        width: 70%;
        max-width: 280px;
    }

    .profile-stats {
        width: 70%;
        max-width: 280px;
    }

    .about-photo {
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
    }
}

/* About page layout */
.personal-intro {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.personal-intro > .container > .section-title {
    margin-bottom: 2rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.intro-content {
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.intro-image {
    width: 100%;
    min-width: 0;
    height: auto;
    align-self: center;
}

.intro-copy {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-copy p {
    margin: 0 0 0.65rem;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

.intro-copy h2.about-name {
    margin: 0 0 0.2rem;
    font-size: 1.7rem;
    color: var(--heading-color);
    line-height: 1.2;
}

.intro-copy .about-role {
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.intro-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.intro-aside {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.about-photo-wrap,
.profile-stats {
    width: 72%;
    max-width: 260px;
    box-sizing: border-box;
}

.about-photo-wrap {
    flex: none;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.about-photo {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center top;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 3px solid var(--border-light);
    display: block;
    background: var(--card-bg);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex-shrink: 0;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.55rem 0.4rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.25;
}

.profile-info h3,
.profile-info p,
.cta-box h2,
.education-header h3,
.education-header h4,
.education-header p {
    color: inherit;
}

.btn-primary,
.nav-btn {
    color: var(--on-accent);
}

.skill-tag,
.tech-tag,
.skill-items .skill-item,
.trait-tag {
    background: var(--accent-gradient);
    color: var(--on-accent);
}

body.dark-theme .technical-skills,
body.dark-theme .technical-skills .section-title,
body.dark-theme .technical-skills .skills-category h3,
body.dark-theme .technical-skills .skill-name,
body.dark-theme .technical-skills .skill-item {
    color: #f1f5f9;
}

body.dark-theme .technical-skills .skill-item {
    background: transparent;
    padding: 0 0 0.25rem;
    border-radius: 0;
    font-size: 1rem;
    box-shadow: none;
}

body.dark-theme .technical-skills .skill-level {
    color: #cbd5e1;
}

body.dark-theme .technical-skills .skill-percentage[data-level="low"] {
    color: #f87171;
}

body.dark-theme .technical-skills .skill-percentage[data-level="medium"] {
    color: #fbbf24;
}

body.dark-theme .technical-skills .skill-percentage[data-level="high"] {
    color: #34d399;
}

.academic-projects,
.professional-projects,
.future-projects {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.project-impact {
    padding: 50px 0;
    background: var(--bg-tertiary);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.impact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.impact-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.period-badge,
.cert-date {
    background: var(--accent-gradient);
    color: var(--on-accent);
}

.experience-item,
.education-item,
.cert-item,
.language-card,
.skill-evolution,
.detail-card,
.activity-item,
.curriculum-item,
.thesis-description,
.soft-skill-item {
    background: var(--card-bg);
    color: var(--text-primary);
}

.experience-item h5,
.education-content h5,
.activity-item h6,
.curriculum-item h6,
.cert-content h4,
.responsibilities h5,
.key-activities h5,
.technologies-used h5,
.achievements h5,
.thesis-details h6 {
    color: var(--heading-color);
}

.company-info,
.cert-provider,
.language-note,
.level-text {
    color: var(--text-secondary);
}

.certifications,
.soft-skills,
.personal-details,
.contact-info,
.contact-form-section,
.detailed-experience,
.academic-education {
    background: var(--bg-secondary);
    padding: 50px 0;
}

.skills-timeline,
.language-skills:not(.language-item),
.experience-overview,
.education-overview,
.projects-overview {
    background: var(--bg-tertiary);
    padding: 40px 0;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.35rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    min-width: 2rem;
    text-align: center;
}

.stat-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.stat-info p {
    margin: 0;
    color: var(--text-secondary);
}

.philosophy,
.career-journey,
.interests {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.career-journey,
.benefits {
    background: var(--bg-tertiary);
}

.philosophy-content,
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.philosophy-item,
.interest-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.philosophy-icon,
.interest-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.85rem;
}

.philosophy-item p,
.interest-card p {
    color: var(--text-secondary);
    margin: 0;
}

.journey-timeline {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.journey-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.25rem;
    align-items: start;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.journey-year {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-primary);
}

.journey-content p {
    margin: 0;
    color: var(--text-secondary);
}

.personal-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: var(--text-secondary);
}

.personal-data-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-light);
}

.personal-data-list li span:first-child {
    color: var(--text-tertiary);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    height: 40px;
    flex-shrink: 0;
}

.lang-toggle .lang-sep {
    color: #fff;
    opacity: 0.75;
}

.navbar .lang-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem !important;
    font-family: var(--font-display);
    line-height: 1;
    width: 40px;
    min-width: 40px;
    height: 34px;
    min-height: 34px;
}

.lang-btn[aria-pressed="true"] {
    background: #fff;
    color: #122033;
    border-color: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-info-card,
.contact-form,
.benefit-card {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.contact-info-card h3,
.benefit-card h3 {
    color: var(--heading-color);
}

.contact-info-card p,
.benefit-card p {
    color: var(--text-secondary);
}

.form-group label {
    color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.page-media {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 3px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.scroll-top {
    background: var(--accent-gradient) !important;
    color: var(--on-accent) !important;
}

@media screen and (max-width: 900px) {
    .contact-layout,
    .journey-item {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .lang-toggle {
        margin-left: 0;
    }
}

.home-photos {
    padding: 1.5rem 0;
    background: var(--bg-secondary, #f8fafc);
}

.home-photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.home-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 3px solid var(--border-light, #e2e8f0);
    box-shadow: var(--card-shadow, 0 8px 24px rgba(15, 23, 42, 0.08));
    display: block;
}

body.dark-theme .home-photos {
    background: var(--bg-secondary);
}

body.dark-theme .home-photo {
    border-color: var(--border-light);
}

@media screen and (max-width: 768px) {
    .home-photo-row {
        grid-template-columns: 1fr;
    }

    .home-photo {
        height: 200px;
    }
}

.about-video {
    padding: 24px 0 40px;
    background: var(--bg-primary);
    transition: var(--theme-transition);
}

.about-video-container {
    max-width: 1400px;
    width: 100%;
}

.about-video-frame {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    background: #0b1220;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.about-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #0b1220;
}

#overview,
#intro,
#services,
#benefits,
#highlights,
#skills {
    scroll-margin-top: 88px;
}

@media screen and (max-width: 768px) {
    .about-video {
        padding: 8px 0 24px;
    }

    .about-video-frame {
        border-radius: 12px;
    }
}
