:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --border-color: #e2e8f0;
    --hover-color: #dbeafe;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #f1f5f9;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --hover-color: #1e40af;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    margin: 0;
    padding: 0;
}

header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

nav {
    background: var(--card-bg);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

nav a:hover {
    background: var(--hover-color);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

li:hover {
    background: var(--hover-color);
}

.show-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin: 1rem 0;
    transition: var(--transition);
}

.show-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

#theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#theme-toggle:hover {
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--text-color);
}

#contact {
    text-align: center;
}

#contact p {
    display: inline-block;
    margin: 0 1rem;
}

@media (max-width: 768px) {
    nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 1rem 0.5rem;
    }

    nav::-webkit-scrollbar {
        height: 3px;
    }

    section {
        padding: 1rem;
    }

    li {
        padding: 0.75rem;
    }

    #contact p {
        display: block;
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 100;
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-color);
        position: relative;
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--text-color);
        transition: var(--transition);
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .menu-toggle[aria-expanded="true"] .hamburger {
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(-90deg);
        top: 0;
    }

    .menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-90deg);
        bottom: 0;
    }

    nav .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    nav .nav-links.active {
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Typography */
@media screen and (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {

    nav,
    #theme-toggle,
    .show-more-btn {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}