/* ====================================
   IMPORTS & FONTS
   ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ====================================
   CSS VARIABLES
   ==================================== */
:root {
    /* Colors */
    --color-primary: #000000;
    --color-text: #ffffff;
    --color-text-muted: #bbbbbb;
    --color-text-muted-strong: #999999;
    --color-text-dimmed: rgba(255, 255, 255, 0.5);
    --color-accent: #359467;
    --color-button-secondary: #701919;

    /* Spacing */
    --gap: 1rem;
    --padding-content-horizontal: 20%;

    /* Card dimensions */
    --card-width: clamp(200px, 18vw, 100vw);
    --card-aspect-ratio: 5 / 7;
    --card-aspect-ratio-projects: 7 / 5;
    --card-height: calc(var(--card-width) * var(--card-aspect-ratio));

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease;
}

/* ====================================
   BASE STYLES
   ==================================== */
html {
    background-color: var(--color-primary);
    font-family: var(--font-primary);
    color: var(--color-text);
    overflow-y: hidden;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text-muted);
    margin: 0;
    box-sizing: border-box;
    padding-top: 50px;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 70px;
    color: var(--color-text);
    margin: auto;
}

h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-text);
    margin: 0;
    padding-top: 30px;
}

h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 40px;
    color: var(--color-text-dimmed);
    margin: auto;
}

h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 40px;
    color: var(--color-text);
    margin: 0;
    padding-top: 40px;
}

/* ====================================
   NAVIGATION
   ==================================== */
.topnav {
    background-color: var(--color-primary);
    overflow: hidden;
    position: fixed; 
    top: 0;          
    left: 0;        
    right: 0;       
    z-index: 1000; 
    width: 100%;  
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
    opacity: 1;
    transition: var(--color-primary) var(--transition-fast);
}

.topnav a.active {
    color: white;
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 800px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }
}

.topnav.responsive {
    position: fixed;
}

.topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
}

.topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* ====================================
   LAYOUT CONTAINERS
   ==================================== */
.parallax {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 10px;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: -1;
}

.backgroundImage,
.backgroundImageHome {
    position: fixed;
    width: 100%;
    object-fit: cover;
    filter: blur(4px);
    z-index: -1;
}

.backgroundImage {
    transform: translateZ(-10px) scale(2.1) translateY(-50px);
    inset: calc(-50vh + 250px) 0px;
}

.backgroundImageHome {
    transform: translateZ(-10px) scale(2.1) translateY(-20px);
    inset: 0 0 auto;
    height: 100vh;
}

.divPage {
    margin-top: clamp(8vh, 20vw, 25vh);
}

.divTitle {
    padding: 50px 10%;
    background-image:
        linear-gradient(to bottom,
            hsla(0, 0%, 0%, 0) 0%,
            hsla(0, 0%, 0%, 0.008) 10.9%,
            hsla(0, 0%, 0%, 0.031) 21.2%,
            hsla(0, 0%, 0%, 0.068) 30.9%,
            hsla(0, 0%, 0%, 0.118) 40.1%,
            hsla(0, 0%, 0%, 0.177) 48.6%,
            hsla(0, 0%, 0%, 0.245) 56.5%,
            hsla(0, 0%, 0%, 0.321) 63.8%,
            hsla(0, 0%, 0%, 0.403) 70.5%,
            hsla(0, 0%, 0%, 0.488) 76.6%,
            hsla(0, 0%, 0%, 0.576) 82.1%,
            hsla(0, 0%, 0%, 0.665) 86.9%,
            hsla(0, 0%, 0%, 0.754) 91.1%,
            hsla(0, 0%, 0%, 0.84) 94.7%,
            hsla(0, 0%, 0%, 0.923) 97.7%,
            hsl(0, 0%, 0%) 100%);
}

.divContent,
.divContentProjects {
    padding-top: 50px;
    padding-bottom: 60px;
    background-color: var(--color-primary);
}

.divContent {
    padding-left: max(30px, calc(100vw / 3 - 150px));
    padding-right: max(30px, calc(100vw / 3 - 150px));
}

.divContentProjects {
    padding-left: 13%;
    padding-right: 13%;
}

/* ====================================
   CONTENT ELEMENTS
   ==================================== */
.content-figure {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.contentImage {
    width: 80%;
    padding: 20px 0;
    margin: 0;
}

.contentVideo {
    width: 90%;
    aspect-ratio: calc(16/9);
    padding: 20px 5%;
    margin: 0;
}

.content-figure figcaption {
    width: 80%;
    padding: 0 10%;
    margin-top: -15px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-style: italic;
    color: var(--color-text-muted-strong);
    text-align: center;
}

iframe {
    width: 700px;
    height: 300px;
    border-style: none;
}

.bandcampContainer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.albumImage {
    height: 300px;
}

/* ====================================
   BUTTONS (SHARED STYLES)
   ==================================== */
.btn-primary,
.btn-secondary,
.submit-btn {
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-normal);
    min-height: 50px;
    min-width: 200px;
}

.btn-primary {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-text);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-size: 16px;
}

.btn-primary:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary,
.submit-btn {
    background-color: var(--color-button-secondary);
    border: 3px solid rgba(37, 3, 3, 0.3);
    color: var(--color-text);
    font-size: 24px;
}

.btn-secondary {
    align-content: center;
}

.submit-btn {
    width: 100%;
    font-size: 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
}

.submit-btn:hover {
    background: #8a1f1f;
}

.submit-btn:active {
    transform: translateY(0);
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(50px, 8vw, 100px);
    color: var(--color-text);
    margin-bottom: 40px;
    margin-top: 40vh;
    height: 100px;
    text-shadow: 0 2px 20px rgb(0, 0, 0);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   PORTFOLIO SECTIONS
   ==================================== */
.portfolio-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 3%;
    padding: min(2vw, 25px);
    background: rgba(255, 255, 255, 0.1);
}

.section-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.section-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 48px;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

/* ====================================
   CAROUSEL
   ==================================== */
.carousel {
    position: relative;
    overflow: visible;
}

.carousel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to right, transparent, black);
    pointer-events: none;
    z-index: 5;
}

.carousel-track {
    display: flex;
    gap: 7%;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    right: -20px;
    top: 30%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-arrow svg {
    pointer-events: none;
}

/* ====================================
   PROJECT CARDS
   ==================================== */
.project-card {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--color-text);
    transition: transform var(--transition-normal);
    cursor: pointer;
    position: relative;
    --shadow-color: 100, 100, 100;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: var(--card-height);
    object-fit: cover;
    display: block;
    transition: filter var(--transition-normal);
    filter: drop-shadow(7px 7px 0 rgba(var(--shadow-color), 0.8));
}

.project-card:hover img {
    filter: drop-shadow(7px 9px 0 rgba(var(--shadow-color), 1));
}

.project-info {
    padding: 15px 5px;
}

.project-info h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 32px;
    color: var(--color-text);
    margin: 0 0 5px 0;
}

.project-info p {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
    padding-left: 10px;
}

/* Card sizing for homepage sections */
.portfolio-section:nth-of-type(1) .project-card,
.portfolio-section:nth-of-type(3) .project-card {
    width: var(--card-width);
}

.portfolio-section:nth-of-type(2) .project-card {
    width: var(--card-height);
}

/* ====================================
   GRID LAYOUTS
   ==================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7%;
    padding: 20px 0;
}

.projects-grid .project-card {
    width: 100% !important;
}

.projects-grid .project-card img {
    height: auto !important;
    aspect-ratio: var(--card-aspect-ratio-projects);
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7%;
    padding: 20px 0;
}

.music-grid .project-card {
    width: 100% !important;
}

.music-grid .project-card img {
    height: auto !important;
    aspect-ratio: 1 / 1;
}

/* ====================================
   GALLERY
   ==================================== */
.gallery {
    display: flex;
    gap: 10px;
    padding: 10px;
    padding-bottom: 1000px;
    overflow: hidden;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.column img {
    width: 100%;
    height: auto;
    transition: box-shadow 0.3s ease-in-out, z-index 0.3s ease-in-out;
    box-shadow: 0 0 0 transparent;
    z-index: 0;
}

.column img:hover {
    z-index: 1;
    box-shadow: 0 0 200px black;
}

/* Portrait pair styling */
.portrait-pair {
    display: flex;
    gap: 10px;
    width: 100%;
}

.portrait-pair img {
    flex: 1;
    width: calc(50% - 5px) !important;
    height: auto !important;
    object-fit: cover;
}

.portrait-pair img:hover {
    z-index: 1;
    box-shadow: 0 0 200px black;
}

/* ====================================
   CONTACT PAGE
   ==================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-info h2,
.about-text h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 32px;
    color: var(--color-text);
    margin-bottom: 15px;
    padding-top: 0;
}

.contact-info p,
.about-text p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.info-item svg {
    flex-shrink: 0;
}

.info-item span {
    font-size: 16px;
}

.info-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    width: min(80px, 12vw);
    height: min(80px, 12vw);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icon {
    width: 60%;
    height: 60%;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-normal);
}

.social-link:hover .social-icon {
    filter: brightness(0) invert(1);
}

/* Contact Form */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all var(--transition-normal);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
    display: block;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1320px;
    margin: 60px auto 80px auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px;
}

.about-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-normal);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ====================================
   FOOTER
   ==================================== */
.site-footer {
    background-color: #111111;
    padding: 40px 20px 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-text);
}

.site-footer p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.scroll-to-top:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Large tablets and small desktops */
@media screen and (max-width: 1568px) {
    .music-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 7%;
    }
}

/* Tablets */
@media screen and (max-width: 1268px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 62px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 34px;
    }

    h4 {
        font-size: 35px;
    }

    .contentImage {
        width: 90%;
    }

    .divTitle {
        padding: 40px 10%;
    }

    .portfolio-section {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 38px;
    }

    .project-info h3 {
        font-size: 26px;
    }

    .project-info p {
        font-size: 14px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3% 7%;
    }

    .about-section,
    .contact-container {
        gap: 40px;
    }

    .about-section {
        margin-bottom: 60px;
    }

    .about-text h2,
    .contact-info h2 {
        font-size: 28px;
    }

    .contact-info,
    .contact-form {
        padding: 30px;
    }
}

/* Small tablets */
@media screen and (max-width: 900px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 7%;
    }
}

/* Mobile */
@media screen and (max-width: 750px) {
    body {
        font-size: 15px;
    }

    .divPage {
        margin-top: 15vw;
    }

    .backgroundImage {
        transform: translateZ(-10px) scale(2.5) translateY(-50px);
    }

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 30px;
    }

    h4 {
        font-size: 30px;
    }

    .contentImage,
    .contentVideo {
        width: 100%;
        padding: 20px 0;
    }

    .divTitle {
        padding: 30px 10%;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 200px;
    }

    .portfolio-section {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-icon {
        width: 40px;
        height: 40px;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .project-info p {
        font-size: 12px;
    }

    .carousel::after {
        opacity: 0;
        pointer-events: none;
    }

    .carousel {
        position: relative;
    }

    .carousel-track {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        overflow-x: visible;
        overflow-y: visible;
        padding: 20px 10px;
    }

    .carousel-arrow {
        position: static;
        width: 100%;
        height: 60px;
        margin-top: 20px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        transition: all var(--transition-normal);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-family: var(--font-primary);
        font-weight: 600;
        font-size: 16px;
        color: var(--color-text);
        text-decoration: none;
    }

    .carousel-arrow::after {
        content: 'See more...';
    }

    .carousel-arrow:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .carousel-arrow svg {
        display: none;
    }

    .project-card {
        width: 100% !important;
        max-width: none;
    }

    .project-card img {
        width: 100%;
        height: auto !important;
        aspect-ratio: var(--card-aspect-ratio-projects);
        object-fit: cover;
    }

    .portfolio-section:nth-of-type(2) .project-card img {
        aspect-ratio: 1 / 1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 1%;
        margin: 0 auto;
    }

    .albumImage {
        visibility: hidden;
        width: 0px;
    }

    .about-section,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-section {
        margin-bottom: 40px;
    }

    .about-text h2,
    .contact-info h2 {
        font-size: 24px;
    }

    .about-image img {
        max-width: 400px;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .section-icon {
        width: 30px;
        height: 30px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 15px;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .portrait-pair {
        flex-direction: column;
    }

    .portrait-pair img {
        width: 100% !important;
    }
}

/* Small mobile */
@media screen and (max-width: 500px) {
    .divPage {
        margin-top: 5vw;
    }

    .divContentProjects {
        padding-left: 5%;
        padding-right: 5%;
    }

    .info-icon {
        width: 0;
        height: 0;
    }

    .backgroundImage {
        transform: translateZ(-10px) scale(3.5) translateY(-50px);
    }
}

/* Extra small mobile */
@media screen and (max-width: 300px) {
    .backgroundImage {
        transform: translateZ(-10px) scale(4.5) translateY(-10px);
    }

    .music-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px 7%;
    }
}
