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

html {
    scroll-behavior: smooth;
}

:root {
    --transition-fast: 0.25s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

section {
    scroll-margin-top: 3.75rem;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f1eb;
    color: #111;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain Overlay */
.grain {
    position: fixed;
    inset: 0;
    background-image: url('./assets/textures/grain.png');
    background-size: 18.75rem;
    background-repeat: repeat;
    opacity: 0.0325;
    pointer-events: none;
    z-index: 999;
}

/* Sidebar */
.sidebar {
    width: 20rem;
    min-height: 100vh;
    padding: 5rem 2rem;
    border-right: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 3rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 1rem;
}

.sidebar a {
    position: relative;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.sidebar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0%;
    height: 1px;
    background: black;
    transition: width 0.3s ease;
}

.sidebar a:hover::after {
    width: 100%;
}

    .sidebar a:hover {
        opacity: 0.5;
        transform: translateX(2px);
    }

.sidebar svg {
    width: 0.875rem;
    height: 0.875rem;
    min-width: 0.875rem;
    opacity: 0.75;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar a:hover svg {
    transform: translateY(-1px);
    opacity: 1;
}

/* Socials */
.socials {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .socials a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .socials svg {
        width: 1rem;
        height: 1rem;
        stroke-width: 1.8;
        opacity: 0.8;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .socials a:hover svg {
        transform: translateY(-1px);
        opacity: 1;
    }

/* Main Content */
.content {
    flex: 1;
    padding: 5rem;
    max-width: 87.5rem;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    max-width: 56.25rem;
}

.hero-description {
    margin-top: 1rem;
    max-width: 32.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
}

.section {
    margin-top: 4rem;
    margin-bottom: 10rem;
}

    .section h3 {
        margin-bottom: 3rem;
        font-size: 2rem;
    }

    .section p {
        max-width: 43.75rem;
        line-height: 1.9;
    }

.section-intro {
    margin-bottom: 3rem;
    max-width: 37.5rem;
    opacity: 0.7;
}

/* Projects Section*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
}
    .project-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0,0,0,0.25), transparent 40% );
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .project-card:hover::before {
        opacity: 1;
    }

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

    .project-card img {
        width: 100%;
        height: 13.75rem;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .project-card:hover img {
        transform: scale(1.03);
    }


    .project-card h4 {
        padding: 1.5rem 1.5rem 0.5rem;
        font-size: 1.3rem;
    }

    .project-card p {
        padding: 0 1.5rem 1.5rem;
        line-height: 1.7;
        opacity: 0.8;
    }

    .project-card p a {
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 0.2rem;
        transition: opacity var(--transition-fast);
    }

    .project-card p a:hover {
        opacity: 0.5;
    }

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.1rem;
    border-radius: 62.5rem;
    background: rgba(0,0,0,0.08);
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition-fast), transform var(--transition-fast);
    margin-top: auto;
}

    .project-button:hover {
        background: rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 0.5rem;
}

    .project-tags span {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        padding: 0.45rem 0.7rem;
        border-radius: 62.5rem;
        background: rgba(0,0,0,0.06);
    }

/* Audio Cards */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 2rem;
}

.audio-card {
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

    .audio-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

    .audio-card h4 {
        margin-bottom: 1rem;
    }

    .audio-card audio {
        width: 100%;
    }


/* Footer */
.footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Fade In Animation */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

    .video-container iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        border: none;
    }

/* Skills and Technologies */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-pill {
    padding: 0.8rem 1.2rem;
    border-radius: 62.5rem;
    background: rgba(0,0,0,0.05);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 68.75rem) {

    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 3rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

        .sidebar ul {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .sidebar li {
            margin-bottom: 0;
        }

    .socials {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .content {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }
}

@media (max-width: 43.75rem) {

    .content {
        padding: 2rem 1.5rem;
    }

    .sidebar {
        padding: 2rem 1.5rem;
    }

    .hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .section {
        margin-bottom: 7rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .audio-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 12.5rem;
    }

    .footer {
        padding-top: 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}
