/* CSS Variables - Dark Theme */
:root {
    --bg: #0d1117;
    --panel: #161b22;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #58a6ff;
    --accent-2: #3fb950;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.card {
    background: var(--panel);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(88, 166, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(88, 166, 255, 0.15);
    border-color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.btn.ghost:hover {
    background: var(--accent);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* General tag styles for other uses */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    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.5s ease;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--accent);
    color: white;
    border-radius: 4px;
}

/* Spacing helpers */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Header and Navigation */
header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(88, 166, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

header:hover::before {
    opacity: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 1rem;
}

.nav-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.nav-brand:hover .nav-logo {
    transform: scale(1.1) rotate(6deg);
    filter: drop-shadow(0 10px 20px rgba(88, 166, 255, 0.6));
}

.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease;
}

.nav-brand:hover::after {
    width: 100%;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(22, 27, 34, 0.8);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(88, 166, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.nav-links a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 25px;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    margin-right: 1rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-toggle:hover .hamburger {
    background: var(--accent);
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
}

/* Hero section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.6)),
                url('/assets/christian-car-BMW.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(63, 185, 80, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.1s both;
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.hero-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 12px 24px rgba(88, 166, 255, 0.4));
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.blurb {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out 0.4s both;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out 0.6s both;
    margin-bottom: 3rem;
}

.hero-highlights {
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out 0.8s both;
    margin-top: 2rem;
}

.hero-highlights h2 {
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-highlights .grid {
    max-width: 900px;
    margin: 0 auto;
}

.hero-highlights .card {
    background: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 166, 255, 0.2);
    text-align: center;
}

.hero-highlights .card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero-highlights .card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Page headers */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--panel);
}

.page-header.subhero {
    background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.6)),
                url('/assets/bmw-subhero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 20vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header.subhero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(63, 185, 80, 0.1) 0%, transparent 50%);
    overflow: hidden;
}

.page-header.subhero .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header.subhero h1 {
    animation: slideInUp 1s ease-out;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-header.subhero p {
    animation: slideInUp 1s ease-out 0.2s both;
}


/* Projects */
.projects {
    padding: 2rem 0 4rem;
}

.project-card {
    background: var(--panel);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(88, 166, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(88, 166, 255, 0.15);
    border-color: var(--accent);
}

.project-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.project-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-height: 2.5rem;
    align-items: flex-start;
}

.project-tags .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-tags .tag::before {
    content: '';
    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.5s ease;
}

.project-tags .tag:hover::before {
    left: 100%;
}

.project-tags .tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(88, 166, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.project-links a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

/* Learning */
.learning {
    padding: 2rem 0 4rem;
}

.learning-entry {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    position: relative;
}

.learning-entry.completed {
    background: rgba(63, 185, 80, 0.1);
    border-left-color: var(--accent-2);
}

.learning-entry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.learning-checkbox {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.learning-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.learning-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.learning-checkbox-input:checked + .learning-checkbox-custom {
    background: var(--accent-2);
    border-color: var(--accent-2);
}

.learning-checkbox-input:checked + .learning-checkbox-custom::after {
    opacity: 1;
}

.learning-checkbox:hover .learning-checkbox-custom {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

.learning-entry h3 {
    color: var(--accent);
    margin: 0;
    flex: 1;
}

.learning-entry.completed h3 {
    color: var(--accent-2);
    text-decoration: line-through;
    opacity: 0.8;
}

.learning-entry p {
    color: var(--muted);
    margin: 0;
}

.learning-entry.completed p {
    opacity: 0.7;
}

/* About */
.about {
    padding: 2rem 0 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    margin: 2rem 0 1rem;
    color: var(--text);
}

.about-text ul {
    margin: 1rem 0 2rem;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.divider {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 2rem 0;
    font-weight: 300;
}

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

/* Contact */
.contact {
    padding: 2rem 0 4rem;
}

.contact-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

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

.contact-item {
    background: var(--panel);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(88, 166, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
    border-color: var(--accent);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    flex-shrink: 0;
    color: white;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

/* Forms */
.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.field input:invalid,
.field textarea:invalid {
    border-color: #dc3545;
}

.field input:invalid:focus,
.field textarea:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Honeypot */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Notices */
.notice {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95), rgba(22, 27, 34, 0.95));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(88, 166, 255, 0.1);
    padding: 3rem 0;
    text-align: center;
    color: var(--muted);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(88, 166, 255, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

footer .container {
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
    font-weight: 500;
}


/* Responsive design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(88, 166, 255, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 1rem;
        font-size: 1.1rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(22, 27, 34, 0.8);
        border: 1px solid rgba(88, 166, 255, 0.1);
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: white;
        transform: none;
        box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .about-image {
        order: -1;
    }

    .project-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .contact-details a {
        word-break: break-all;
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Focus management for accessibility */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg: #000000;
        --panel: #1a1a1a;
        --text: #ffffff;
        --muted: #cccccc;
        --accent: #00ffff;
        --accent-2: #00cccc;
    }
}

/* Interactive animations */
@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Add pulse animation to accent elements */
.accent-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .particle {
        display: none !important;
    }
}
