@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --red: #FF0000;
    --font-base: 14px;
}

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--font-base);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px;
}

hr {
    border: none;
    border-top: 1px solid var(--red);
    margin: 40px 0;
}

/* Homepage Typography */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

h1.name {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: fill 0.12s ease;
}

.social-icons a:hover svg {
    fill: var(--red);
}

.tagline {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.intro {
    font-size: 0.875rem;
    max-width: 600px;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-item a::before {
    content: "→ ";
    color: var(--red);
    margin-right: 8px;
}

.project-item a:hover {
    color: var(--red);
}

/* Contact */
.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.email-cta {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    display: inline-block;
}

.email-cta:hover {
    text-decoration: underline;
}

/* About Section on Homepage */
.about-section {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
}

.portrait-container {
    width: 180px;
    height: 240px;
    background-color: #111;
    border: 1px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portrait-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    font-size: 0.875rem;
}

/* Project Detail Pages */
.nav-back {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 40px;
    align-items: start;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-height: 65vh;
    background: #050505;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-img {
    aspect-ratio: 4/3;
    background: #111;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #444;
}

.slide-nav {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--red);
    color: var(--white);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-content h1 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.project-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Custom Audio Player */
.audio-player-container {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.audio-track {
    margin-bottom: 24px;
}

.audio-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.6;
}

audio {
    width: 100%;
    height: 32px;
}

/* Overriding default audio player colors with CSS (limited support, but consistent in modern browsers) */
audio::-webkit-media-controls-panel {
    background-color: #111;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(2);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .about-section {
        grid-template-columns: 1fr;
    }
    .portrait-container {
        width: 100%;
        max-width: 180px;
    }
}
