/* Devart-style CSS for w3online */
:root {
    --primary: #ff3e3e;
    --primary-hover: #e63636;
    --bg-dark: #0d1117;
    --bg-dark-secondary: #161b22;
    --bg-dark-tertiary: #21262d;
    --text-dark: #c9d1d9;
    --text-dark-secondary: #8b949e;
    --border-dark: #30363d;
    
    --bg-light: #ffffff;
    --bg-light-secondary: #f6f8fa;
    --bg-light-tertiary: #eaeef2;
    --text-light: #2433f2;
    --text-light-secondary: #57606a;
    --border-light: #d0d7de;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    background: var(--bg-light);
    color: var(--text-light);
    transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html[data-theme="dark"] .header {
    background: #1a1f26;
    border-bottom-color: #2d333b;
}

html[data-theme="dark"] .header__logo {
    color: #ff5252;
}

html[data-theme="dark"] .header__tagline {
    color: #8b949e;
}

html[data-theme="dark"] .nav__link {
    color: #c9d1d9;
}

html[data-theme="dark"] .nav__link:hover {
    background: #21262d;
    color: #ff5252;
}

html[data-theme="dark"] .nav-toggle span {
    background: #c9d1d9;
}

html[data-theme="dark"] .theme-toggle-btn {
    background: #21262d;
    border-color: #30363d;
    color: #c9d1d9;
}

html[data-theme="dark"] .theme-toggle-btn:hover {
    background: #ff3e3e;
    border-color: #ff3e3e;
    color: white;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.header__tagline {
    color: var(--text-light-secondary);
    font-size: 0.875rem;
}

/* Tablet: Show tagline below logo */
@media (max-width: 900px) {
    .header__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

html[data-theme="dark"] .header__tagline {
    color: var(--text-dark-secondary);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav__link:hover {
    background: var(--bg-light-secondary);
    color: var(--primary);
}

html[data-theme="dark"] .nav__link:hover {
    background: var(--bg-dark-secondary);
}

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

.theme-toggle-btn {
    background: var(--bg-light-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .theme-toggle-btn {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

.theme-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-light-secondary) 100%);
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,62,62,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,62,62,0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .hero__title {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-light-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

html[data-theme="dark"] .hero__subtitle {
    color: var(--text-dark-secondary);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.btn--secondary:hover {
    background: var(--bg-light-secondary);
    border-color: var(--text-light-secondary);
}

html[data-theme="dark"] .btn--secondary {
    color: var(--text-dark);
    border-color: var(--border-dark);
}

html[data-theme="dark"] .btn--secondary:hover {
    background: var(--bg-dark-secondary);
}

/* Sections */
.section {
    padding: var(--space-3xl) var(--space-xl);
}

.section--alt {
    background: var(--bg-light-secondary);
}

html[data-theme="dark"] .section--alt {
    background: var(--bg-dark-secondary);
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section__subtitle {
    color: var(--text-light-secondary);
    font-size: 1.125rem;
}

/* Dark mode heading colors */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: #e6edf3;
}

html[data-theme="dark"] .section__title,
html[data-theme="dark"] .card__title,
html[data-theme="dark"] .timeline__title,
html[data-theme="dark"] .hero__title {
    color: #e6edf3;
}

html[data-theme="dark"] .section__subtitle,
html[data-theme="dark"] .card__text,
html[data-theme="dark"] .timeline__text,
html[data-theme="dark"] .hero__subtitle,
html[data-theme="dark"] p {
    color: #8b949e;
}

html[data-theme="dark"] .section__subtitle {
    color: var(--text-dark-secondary);
}

/* Cards */
.card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

html[data-theme="dark"] .card {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.card__icon {
    width: 56px;
    height: 56px;
    background: rgba(255,62,62,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.card__text {
    color: var(--text-light-secondary);
    line-height: 1.7;
}

html[data-theme="dark"] .card__text {
    color: var(--text-dark-secondary);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Skills Section */
.skill-bar {
    margin-bottom: var(--space-lg);
}

.skill-bar__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.skill-bar__name {
    font-weight: 600;
}

.skill-bar__level {
    color: var(--text-light-secondary);
    font-size: 0.875rem;
}

html[data-theme="dark"] .skill-bar__level {
    color: var(--text-dark-secondary);
}

.skill-bar__track {
    height: 8px;
    background: var(--bg-light-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

html[data-theme="dark"] .skill-bar__track {
    background: var(--bg-dark-tertiary);
}

.skill-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #ff6b6b 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

html[data-theme="dark"] .timeline::before {
    background: var(--border-dark);
}

.timeline__item {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 5px);
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
}

html[data-theme="dark"] .timeline__item::before {
    border-color: var(--bg-dark);
}

.timeline__date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.timeline__text {
    color: var(--text-light-secondary);
    line-height: 1.7;
}

html[data-theme="dark"] .timeline__text {
    color: var(--text-dark-secondary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .contact-card {
        padding: var(--space-md);
    }
}

.contact-card {
    text-align: center;
    padding: var(--space-xl);
}

.contact-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: rgba(255,62,62,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-card__label {
    font-size: 0.875rem;
    color: var(--text-light-secondary);
    margin-bottom: var(--space-xs);
}

html[data-theme="dark"] .contact-card__label {
    color: var(--text-dark-secondary);
}

.contact-card__value {
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-card__value a {
    color: inherit;
    text-decoration: none;
}

.contact-card__value a:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-light-secondary);
    padding: var(--space-2xl) var(--space-xl);
    border-top: 1px solid var(--border-light);
}

html[data-theme="dark"] .footer {
    background: var(--bg-dark-secondary);
    border-top-color: var(--border-dark);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer__text {
    color: var(--text-light-secondary);
    text-align: center;
}

html[data-theme="dark"] .footer__text {
    color: var(--text-dark-secondary);
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

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

html[data-theme="dark"] .footer__link {
    color: var(--text-dark);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: var(--space-lg) var(--space-xl);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

html[data-theme="dark"] .cookie-banner {
    background: var(--bg-dark);
    border-top-color: var(--border-dark);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-banner__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.cookie-banner__icon {
    width: 40px;
    height: 40px;
    background: rgba(255,62,62,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.cookie-banner__title {
    font-size: 1.125rem;
    font-weight: 700;
}

.cookie-banner__text {
    color: var(--text-light-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
    line-height: 1.6;
}

html[data-theme="dark"] .cookie-banner__text {
    color: var(--text-dark-secondary);
}

.cookie-banner__text a {
    color: var(--primary);
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Cookie Settings Dialog */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.cookie-settings.show {
    display: flex;
}

/* Modal Overlay - for Nginx, SQL, Datenschutz modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.modal-overlay.show {
    display: flex;
}

.modal-window {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

html[data-theme="dark"] .modal-window {
    background: var(--bg-dark-secondary);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    background: var(--primary);
    color: white;
}

html[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-dark);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
}

.modal-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: var(--space-lg) 0 var(--space-md);
    color: var(--primary);
}

.modal-body h2:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

html[data-theme="dark"] .modal-body p {
    color: var(--text-dark);
}

.modal-body ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.modal-body li {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

html[data-theme="dark"] .modal-body li {
    color: #8b949e;
}

html[data-theme="dark"] .profile-card__name,
html[data-theme="dark"] .profile-card__title {
    color: #e6edf3;
}

html[data-theme="dark"] .profile-card__bio {
    color: #8b949e;
}

html[data-theme="dark"] .hero__badge {
    background: rgba(255,82,82,0.15);
    color: #ff5252;
}

/* Contact card text in dark mode */
html[data-theme="dark"] .contact-card__label {
    color: #8b949e;
}

html[data-theme="dark"] .contact-card__value {
    color: #e6edf3;
}

/* Tag adjustments for dark mode */
html[data-theme="dark"] .tag {
    background: #21262d;
    color: #c9d1d9;
}

html[data-theme="dark"] .tag--primary {
    background: rgba(255,82,82,0.15);
    color: #ff5252;
}

.cookie-settings__dialog {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

html[data-theme="dark"] .cookie-settings__dialog {
    background: var(--bg-dark-secondary);
}

.cookie-settings__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

html[data-theme="dark"] .cookie-settings__header {
    border-bottom-color: var(--border-dark);
}

.cookie-settings__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.cookie-settings__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light-secondary);
    padding: var(--space-sm);
}

.cookie-settings__close:hover {
    color: var(--primary);
}

html[data-theme="dark"] .cookie-settings__close {
    color: var(--text-dark-secondary);
}

.cookie-settings__section {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

html[data-theme="dark"] .cookie-settings__section {
    border-bottom-color: var(--border-dark);
}

.cookie-settings__section-title {
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-light-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html[data-theme="dark"] .cookie-settings__section-title {
    color: var(--text-dark-secondary);
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.cookie-toggle__label {
    font-weight: 600;
}

.cookie-toggle__desc {
    font-size: 0.875rem;
    color: var(--text-light-secondary);
}

html[data-theme="dark"] .cookie-toggle__desc {
    color: var(--text-dark-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-light);
    border-radius: 26px;
    transition: 0.3s;
}

html[data-theme="dark"] .toggle-slider {
    background: var(--border-dark);
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-light);
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    
    html[data-theme="dark"] .nav-toggle span {
        background: var(--text-dark);
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-light);
        flex-direction: column;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    html[data-theme="dark"] .nav {
        background: var(--bg-dark);
        border-bottom-color: var(--border-dark);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hero {
        padding-top: calc(100px + var(--space-2xl));
    }
    
    .cookie-banner__actions {
        flex-direction: column;
    }
    
    .cookie-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-lg {
    margin-top: var(--space-lg);
}

/* Profile Card */
.profile-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

html[data-theme="dark"] .profile-card {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

.profile-card__avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.profile-card__name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.profile-card__title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.profile-card__bio {
    color: var(--text-light-secondary);
    line-height: 1.7;
}

html[data-theme="dark"] .profile-card__bio {
    color: var(--text-dark-secondary);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.tag {
    background: var(--bg-light-secondary);
    color: var(--text-light);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

html[data-theme="dark"] .tag {
    background: var(--bg-dark-tertiary);
    color: var(--text-dark);
}

.tag--primary {
    background: rgba(255,62,62,0.1);
    color: var(--primary);
}

/* Auto Dark Mode based on System Preference */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        background: var(--bg-dark);
        color: var(--text-dark);
    }
    
    html:not([data-theme="light"]) body {
        background: var(--bg-dark);
        color: var(--text-dark);
    }
    
    html:not([data-theme="light"]) .header {
        background: #1a1f26;
        border-bottom-color: #2d333b;
    }
    
    html:not([data-theme="light"]) .header__logo {
        color: #ff5252;
    }
    
    html:not([data-theme="light"]) .header__tagline {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .nav__link {
        color: #c9d1d9;
    }
    
    html:not([data-theme="light"]) .nav__link:hover {
        background: #21262d;
        color: #ff5252;
    }
    
    html:not([data-theme="light"]) .hero {
        background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    }
    
    html:not([data-theme="light"]) .hero__badge {
        background: rgba(255,82,82,0.15);
        color: #ff5252;
    }
    
    html:not([data-theme="light"]) .hero__title {
        color: #e6edf3;
    }
    
    html:not([data-theme="light"]) .hero__subtitle {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .btn--secondary {
        color: #c9d1d9;
        border-color: #30363d;
    }
    
    html:not([data-theme="light"]) .btn--secondary:hover {
        background: #21262d;
    }
    
    html:not([data-theme="light"]) .section--alt {
        background: var(--bg-dark-secondary);
    }
    
    html:not([data-theme="light"]) .section__title,
    html:not([data-theme="light"]) .card__title,
    html:not([data-theme="light"]) .timeline__title {
        color: #e6edf3;
    }
    
    html:not([data-theme="light"]) .section__subtitle,
    html:not([data-theme="light"]) .card__text,
    html:not([data-theme="light"]) .timeline__text {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .card {
        background: var(--bg-dark-secondary);
        border-color: #30363d;
    }
    
    html:not([data-theme="light"]) .card__icon {
        background: rgba(255,82,82,0.1);
        color: #ff5252;
    }
    
    html:not([data-theme="light"]) .profile-card {
        background: var(--bg-dark-secondary);
        border-color: #30363d;
    }
    
    html:not([data-theme="light"]) .profile-card__name,
    html:not([data-theme="light"]) .profile-card__title {
        color: #e6edf3;
    }
    
    html:not([data-theme="light"]) .profile-card__bio {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .tag {
        background: var(--bg-dark-tertiary);
        color: #c9d1d9;
    }
    
    html:not([data-theme="light"]) .tag--primary {
        background: rgba(255,82,82,0.15);
        color: #ff5252;
    }
    
    html:not([data-theme="light"]) .contact-card {
        background: var(--bg-dark-secondary);
    }
    
    html:not([data-theme="light"]) .contact-card__label {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .contact-card__value {
        color: #e6edf3;
    }
    
    html:not([data-theme="light"]) .footer {
        background: var(--bg-dark-secondary);
        border-top-color: #30363d;
    }
    
    html:not([data-theme="light"]) .footer__text {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .cookie-banner {
        background: #1a1f26;
        border-top-color: #30363d;
    }
    
    html:not([data-theme="light"]) .cookie-settings__dialog {
        background: var(--bg-dark-secondary);
    }
    
    html:not([data-theme="light"]) .cookie-banner__text,
    html:not([data-theme="light"]) .cookie-toggle__desc {
        color: #8b949e;
    }
    
    html:not([data-theme="light"]) .cookie-settings__header {
        border-bottom-color: #30363d;
    }
    
    html:not([data-theme="light"]) .cookie-settings__title {
        color: #e6edf3;
    }
    
    html:not([data-theme="light"]) .cookie-settings__section-title {
        color: #8b949e;
    }
    
    html:not([data-theme="dark"]) .cookie-toggle__label {
        color: var(--text-light);
    }
    
    html:not([data-theme="dark"]) .cookie-toggle__desc {
        color: var(--text-light-secondary);
    }
    
    html:not([data-theme="light"]) .theme-toggle-btn {
        background: #21262d;
        border-color: #30363d;
        color: #c9d1d9;
    }
    
    html:not([data-theme="light"]) .theme-toggle-btn:hover {
        background: #ff3e3e;
        border-color: #ff3e3e;
        color: white;
    }
    
    html:not([data-theme="light"]) .modal-window {
        background: var(--bg-dark-secondary);
    }
    
    html:not([data-theme="light"]) .modal-body h2 {
        color: #ff5252;
    }
    
    html:not([data-theme="light"]) .modal-body p,
    html:not([data-theme="light"]) .modal-body li {
        color: #c9d1d9;
    }
    
    html:not([data-theme="light"]) .result-card {
        background: var(--bg-dark-secondary);
        border-color: #30363d;
    }
    
    html:not([data-theme="light"]) .result-card__title,
    html:not([data-theme="light"]) .result-card__desc {
        color: #c9d1d9;
    }
    
    html:not([data-theme="light"]) .result-card__value {
        background: var(--bg-dark-tertiary);
    }
    
    html:not([data-theme="light"]) .skill-bar__track {
        background: var(--bg-dark-tertiary);
    }
    
    html:not([data-theme="light"]) .timeline::before {
        background: #30363d;
    }
    
    html:not([data-theme="light"]) .timeline__item::before {
        border-color: var(--bg-dark-secondary);
    }
}
