/* High contrast dark theme - accessibility focused */

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

html {
    font-size: 18px;
}

body {
    background-color: #0a0a0a;
    color: #f0f0f0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Liberation Sans", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
}

main {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #444;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    border-left: 4px solid #00d4ff;
    padding-left: 0.75rem;
}

section, nav {
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
    color: #d0d0d0;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* Project cards on home page */
.project-card {
    border: 1px solid #333;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-card-link {
    text-decoration: none;
    flex: 1;
}

.project-card-link:hover,
.project-card-link:focus {
    background: transparent;
    padding: 0;
    margin: 0;
}

.project-card-link h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-card-link:hover h3,
.project-card-link:focus h3 {
    color: #00d4ff;
}

.project-card-link p {
    color: #d0d0d0;
    margin-bottom: 0;
}

.project-card-icons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.project-card-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #00d4ff;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.project-card-icons a:hover,
.project-card-icons a:focus {
    background-color: #00d4ff;
    padding: 0;
    margin: 0;
}

.project-card-icons a:hover svg,
.project-card-icons a:focus svg {
    fill: #0a0a0a;
}

/* Project detail pages */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    text-decoration: none;
    border: 1px solid #00d4ff;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    background-color: #00d4ff;
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    margin: 0;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #444;
}

.project-header h1 {
    margin-bottom: 0.5rem;
}

.project-tagline {
    font-style: italic;
    color: #00d4ff;
    margin-bottom: 0;
}

.project-detail {
    margin-bottom: 2.5rem;
}

.project-detail ul {
    margin-bottom: 0.5rem;
}

.project-detail ul li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #d0d0d0;
}

.project-detail ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

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

.project-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #00d4ff;
    text-decoration: none;
}

.project-links a:hover,
.project-links a:focus {
    background-color: #00d4ff;
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    margin: 0;
}

.social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social ul li {
    display: inline;
}

a {
    color: #00d4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: #ffffff;
    background-color: #00d4ff;
    outline: none;
    padding: 2px 4px;
    margin: -2px -4px;
}

a:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

.social a svg {
    flex-shrink: 0;
}

.social a:hover,
.social a:focus {
    background-color: #00d4ff;
    color: #0a0a0a;
    margin: 0;
    padding: 0.75rem 1.5rem;
}

.social a:hover svg,
.social a:focus svg {
    fill: #0a0a0a;
    stroke: #0a0a0a;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #00d4ff;
    color: #0a0a0a;
    padding: 1rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media (prefers-contrast: more) {
    body {
        background-color: #000000;
        color: #ffffff;
    }

    a {
        color: #00ffff;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .social ul {
        flex-direction: column;
        align-items: center;
    }

    .social a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}
