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

html {
    scroll-behavior: smooth;
}

body {
    background: black;
    color: white;
    padding: 0;
}

.top-nav {
    background-color: black;
    margin-bottom: 60px;
    padding: 0 50px 0 0;
    border: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    z-index: 999;
}

.top-nav nav a {
    color: gray;
    text-decoration: none;
    margin-left: 20px;
    font-size: 12px;
    letter-spacing: 2px;
}

.top-nav nav a:hover {
    color: gray;
    text-decoration: none;
    margin-left: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: underline;
}

.section {
    padding-top: 150px;
}

h1 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    padding-left: 60px;
}

h2 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-align: center;
}

p {
    font-size: 14px;
    font-weight: 300;
    text-align: center;
    font-style: italic;
}

/* GRAPHICS */
.graphics-marquee {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marquee-window {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 12px;
}

.thumb-group {
    display: flex;
    gap: 12px;
}

.thumb {
    width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
    position: relative;
    display: block;
    text-decoration: none;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.thumb:hover img {
    transform: scale(1.03);
    filter: brightness(0.8);
}

.thumb-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    padding: 12px 22px;
    border: 2px solid white;
    border-radius: 50px;
    
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 400;
    
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    pointer-events: none;
}

.thumb:hover .thumb-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

@keyframes seamless-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes seamless-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.graphics-marquee:hover .marquee-track {
    animation-play-state: paused;
    transition: ease-in-out;
}

/* VIDEOS */
.separator {
    padding: 60px;
}

.small-separator {
    padding: 6px;
}

.video-wrapper {
  position: relative;
  width: 60vw;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.custom-video {
  width: 100%;
  display: block;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    margin-left: -21px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.loading-spinner.visible {
    opacity: 1;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* PLAY TRIANGLE (default state) */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 0;
  height: 0;
  
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 36px solid white;
  
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* remove default button styling */
.play-button,
.play-button:focus,
.play-button:active {
  outline: none;
}

/* PAUSE ICON */
.play-button.pause {
  width: 28px;
  height: 32px;
  
  border: none;   /* removes triangle completely */
  background: transparent;
  
  position: absolute;
}

/* left pause bar */
.play-button.pause::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: white;
}

/* right pause bar */
.play-button.pause::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: white;
}

.animations {
  width: 100%;          /* Full container width */
  height: auto;         /* Maintain aspect ratio */
  display: block;       /* Removes small gaps below video */
  object-fit: contain;  /* Shows the entire video */
}

.play-button {
    font-size: 50px;
    color: black;
}

.caption {
    text-align: center;
    color: gray;
    letter-spacing: 2px;
    font-size: 12px;
}

/* VIDEO */
.video-projects {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 40px 30px;
}

.video-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.video-row.reverse {
    flex-direction: row-reverse;
}

/* Make project videos larger WITHOUT touching main video */
.video-project-player {
    width: 65%;
    flex-shrink: 0;
}

.video-row p {
    width: 35%;
    text-align: left;
    line-height: 1.6;
}

.video-box {
    width: 45%;
    aspect-ratio: 16 / 9;
    background: #ddd;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.video-progress-container {
    position: absolute;
    bottom: 20px;
    left: 35px;
    right: 35px;
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}


.video-progress-bar {
    width: 0%;
    height: 100%;
    background: white;
}

/* show only on hover */
.video-wrapper:hover .video-progress-container {
    opacity: 1;
}

/* AUDIO */
/* Featured row horizontal layout */
/* Featured row container */
.featured-audio-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;              /* full width */
    max-width: 1200px;        /* optional: match main content max width */
    margin-left: auto;           /* center on page */
    margin-right: auto;           /* center on page */
    margin-bottom: 30px;           /* center on page */
    padding-left: 30px;       /* match grid padding */
    padding-right: 30px;      /* match grid padding */
}

/* Featured player */
/* Featured player */
.featured-audio-row .audio-player {
    width: 600px;             /* keep the same width */
    max-width: 100%;
    padding: 30px 30px 20px 30px;   /* keep current visual padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    position: relative;
}

/* Fix audio-info text wrapping in featured player */
.featured-audio-row .audio-player .audio-info {
    width: 100%;          /* full width inside the audio-player box */
    max-width: none;      /* remove inherited max-width */
    text-align: center;   /* center the text */
    word-break: break-word; /* allow natural wrapping if necessary */
    padding: 0;           /* padding comes from .audio-player */
}

.featured-audio-row .audio-description p {
    padding: 0 50px 0 50px; /* top, right, bottom, left */
}

.featured-audio-row .audio-description h2 {
    padding: 0 20px 0 20px; /* top, right, bottom, left */
}

/* Album artwork stays fixed size */
.featured-audio-row .audio-player .album-art-wrapper {
    width: 325px;
    flex-shrink: 0;
    margin-bottom: 0;       /* remove extra bottom spacing */
}

/* Audio info text stacked below album art with minimal spacing */
.featured-audio-row .audio-player .audio-info {
    width: 100%;
    margin-top: 0;
    text-align: center;     /* center h2 and p */
}

.featured-audio-row .audio-player .audio-info h2,
.featured-audio-row .audio-player .audio-info p {
    margin: 0;              /* remove default spacing */
    padding: 0;
}

/* Progress bar stretches across full featured player */
.featured-audio-row .audio-player .progress-container {
    width: 100%;
    height: 6px;
    margin: 10px 0 0 0;     /* small gap above progress bar */
}

/* Add top spacing inside featured player */

/* Description box to the right */
.audio-description {
    flex-grow: 1;               /* take remaining space */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    text-align: left;
}

.audio-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.audio-description h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.audio-description p {
    font-size: 14px;
    line-height: 1.4;
    color: #ccc;
}

/* Remove the always-reserved height */
/* Hide the row when empty */
.featured-audio-row.empty {
    height: 0;
    margin-bottom: 0;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 92%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: center; /* centers the items if fewer than 4 */
}

.audio-player {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid white;
    border-radius: 30px;
    background: black;
    transition: all 0.5s ease;
    position: relative;
}

/* Featured animation */

.album-art {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

.audio-info h2 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0px;
    text-align: center;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.audio-controls button {
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.progress-container {
    display: none;
}

/* show ONLY on featured player */
.featured-audio-row .audio-player .progress-container {
    display: block;
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 20px;
    margin: 20px 0;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.1s linear;
}

.track-list {
    display: none;
}

.album-art-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.album-art {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: filter 0.3s ease;
}

.album-art-wrapper:hover .album-art {
    filter: brightness(0.65);
}

.playPauseTrack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 36px solid white;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-art-wrapper:hover .playPauseTrack {
    opacity: 0.85;
}

.playPauseTrack.pause {
    width: 28px;
    height: 32px;
    border: none;
    background: transparent;
    transform: translate(-50%, -50%);
}

.playPauseTrack.pause::before,
.playPauseTrack.pause::after {
    content: "";
    position: absolute;
    top: 0;
    width: 8px;
    height: 100%;
    background: white;
}

.playPauseTrack.pause::before {
    left: 0;
}

.playPauseTrack.pause::after {
    right: 0;
}

/* FOOTER */
.site-footer {
    background-color: white;
    color: black;
    text-align: center;
    margin-top: 200px;
    padding: 40px 30px; /* top/bottom, left/right */
    border-top: 2px solid white;
    font-size: 14px;
    letter-spacing: 2px;
}

.site-footer a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

h4 {
    font-size: 30px;
    font-weight: 800;
}

h5 {
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 900px) {
    /* make ALL video players larger on smaller screens */
    .video-wrapper,
    .video-project-player {
        width: 90vw;
        max-width: 100%;
    }

    .video-row,
    .video-row.reverse {
        flex-direction: column;
        gap: 25px;
    }

    .video-row p {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .audio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .audio-grid {
        grid-template-columns: 1fr;
    }

    .featured-audio-row {
        flex-direction: column;      /* stack vertically */
        align-items: center;         /* center content horizontally */
        gap: 20px;                   /* spacing between player and description */
    }

    .audio-description {
        width: 100%;
        margin-bottom: 0;            /* remove extra spacing */
        text-align: center;          /* optional: center text on mobile */
    }

    /* Featured audio player behaves exactly like regular audio players */
    .featured-audio-row {
        flex-direction: column;    /* stack elements */
        align-items: center;
        gap: 20px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .featured-audio-row .audio-player {
        width: 100%;               /* full width */
        max-width: 100%;           /* remove previous max-width */
        padding: 30px;             /* match other audio players */
        margin: 0 auto;            /* center the box */
        box-sizing: border-box;
    }

    .featured-audio-row .audio-player .album-art-wrapper {
        width: 100%;               /* scale album artwork to box width */
    }

    .audio-description {
        width: 100%;
        text-align: center;
        padding: 0;                /* remove extra featured padding */
        margin-bottom: 0;
    }
}







.disabled-link {
    pointer-events: none;
    cursor: default;
}












/* SPECIAL GRAPHICS PAGES */

.full-screen-image {
    width: 100vw;       /* Full width of the viewport */
    height: auto;      /* Full height of the viewport */
    display: block; 
}