@font-face {
    font-family: 'Playfair Display';
    src: url('./fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('./fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
}

:root {
    --base-100: #ffffff;
    --base-200: #a1a1a1;
    --base-300: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1, h2 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    line-height: 0.9;
}

h1 {
    font-size: clamp(4rem, 7.5vw, 6rem);
    color: var(--base-100);
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

p, ul, h5 {
    font-family: "Quicksand", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
}

.section-header {
    display: flex;
    justify-content: center;
}

.section-header h2{
    font-size: clamp(2rem, 4vw, 5rem);
}

.hero{
    position: relative;
    width: 100%;
    height: 165svh;
    color: var(--base-300);
    overflow: hidden;
}

.hero-img{
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-header{
    position: absolute;
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-header p {
    width: 80%;
}

.hero-canvas {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 125svh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    width: 50%;
    line-height: 1.1;
}

/*----skills---*/

.skills {
    position: relative;
    width: 100%;
    height: 200vh;
    background: var(--base-100);
    margin-top: -30svh;
}

.skills-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
}

.skills-left {
    grid-column: 2;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.skills-right {
    grid-column: 3;
    position: relative;
}

.skills-words {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.skill-word {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 300;
    color: var(--base-300);
    opacity: 0.3;
    white-space: nowrap;
    line-height: 0.9;
}

.skills-right h3 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 300;
    color: var(--base-300);
    text-transform: lowercase;
}

/*----about---*/

.about {
    position: relative;
    width: 100%;
    height: 50svh;
    margin-bottom: 25svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.about-item {
    width: 100%;
    max-width: 500px;
    text-align: left;
}

.about p {
    width: 100%;
}

.about h2 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

/*----Gallery---*/

.gallery {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 20svh 5vw 10svh;
    background: var(--base-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
    opacity: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    filter: saturate(0);
}

.gallery-item:hover {
    transform: scale(1.02);
    filter: saturate(1);
}

.gallery-item img {
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item h2{
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    padding: 1rem;
}

.gallery-item:has(h2):hover {
    transform: none;
}

.gallery-item:has(h2):hover img {
    transform: none;
}
/* Random empty spaces in grid - creates organic scattered effect */
.gallery-item:nth-child(1) {
    grid-column: 1;
}

.gallery-item:nth-child(2) {
    grid-column: 2;
}

.gallery-item:nth-child(3) {
    grid-column: 3;
}

/* Skip position 4 - creates empty space */

.gallery-item:nth-child(4) {
    grid-column: 1;
}

.gallery-item:nth-child(5) {
    grid-column: 3;
}

.gallery-item:nth-child(6) {
    grid-column: 4;
}

/* Skip position 7 - creates empty space */

.gallery-item:nth-child(7) {
    grid-column: 1;
}

.gallery-item:nth-child(8) {
    grid-column: 2;
}

.gallery-item:nth-child(9) {
    grid-column: 4;
}

/* Skip position 7 - creates empty space */

.gallery-item:nth-child(10) {
    grid-column: 1;
}

.gallery-item:nth-child(11) {
    grid-column: 2;
}

.gallery-item:nth-child(12) {
    grid-column: 3;
}

/*----Lightbox---*/

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--base-100);
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.lightbox-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    color: var(--base-100);
}

.lightbox-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--base-100);
}

.lightbox-description {
    font-family: "Quicksand", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--base-100);
}

.lightbox-description a {
    color: var(--base-100);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.lightbox-description a:hover {
    opacity: 0.7;
}

/*-----Contact-----*/

.contact {
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item{
    flex-direction: column;
    text-align: center;
}

.contact-item a {
    font-family: "Quicksand", sans-serif;
    color: var(--base-200);
    font-size: 1.75rem;
    font-weight: 300;
    text-decoration: none;
    transition: 0.2s ease;
}

.contact-item a:hover {
    color: var(--base-300);
    font-weight: 400;
}

.contact-item h2 {
    margin-bottom: 2rem;
}


/*-----Footer-----*/

.footer {
    background-color: var(--base-300);
    min-height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer a {
    font-family: "Quicksand", sans-serif;
    color: var(--base-100);
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer a:hover {
    color: var(--base-200);
}

/*-----impressum-----*/

.imp {
    width: 30%;
    margin: 2rem 5rem;
}

.imp h2{
    color: var(--base-300);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.imp-content h3 {
    margin-bottom: 1rem;
}

.imp-content p, ul{
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.imp a {
    font-family: "Quicksand", sans-serif;
    color: var(--base-300);
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none;
    transition: 0.2s;
}

.imp a:hover {
    color: var(--base-200);
}

@media (max-width: 1000px) {
    h1 {
        font-size: clamp(1.5rem, 7vw, 3rem);
        padding: 0 1rem;
    }
    
    .hero-content h2 {
        width: calc(100% - 4rem);
    }
    
    .about p {
        font-size: 1rem;
    }
    
    .about-item {
        width: calc(100% - 4rem);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        grid-column: auto !important;
    }
    
    .lightbox-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

     .skills-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 0 2rem;
    }
    
    .skills-left {
        display: flex;
        align-items: flex-start;
        height: 100vh;
        overflow: visible;
    }
    
    .skills-right {
        display: flex;
        align-items: center;
    }
    
    .skills-words {
        align-items: flex-end;
    }
    
    .skill-word {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .skills-right h3 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .imp {
        width: 90%;
        margin: 2rem;
    }
}

