body {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 40px;
    margin: 0;
    overflow-x: hidden;
    font-family: "rival", sans-serif;
    font-weight: 400;
    font-style: normal;
}
body::after {
    content: "";
    display: block;
    height: 30vh; /* Adds empty space at the bottom */
}
p{
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1.8em;
}
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.layer-bg { background-image: url('/img/Bottom_Layer.jpg'); }
.layer-1 { background-image: url('/img/Middle_Layer.webp'); }
.layer-2 { background-image: url('/img/Top_Layer.webp'); }

#gallery {
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px;
    width: 100%;
    max-width: 1400px;
}
.gallery-item{
    width: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.8);
    padding:1px;
    cursor: pointer;
}
#about {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(200px);
    background-color: rgba(0, 0, 0, 0.3);
    margin-bottom:0px;
}
#about-text {
    text-align: left;
    max-width: 800px;
}
#about h2 {
    font-size: 4rem;
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    border-bottom: 10px solid #325287;
    margin-top:0px;
}
#about h3 {
    font-size: 1.4rem;
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
#about p {
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1.8em;
}
#portrait {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: url('/img/profile.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(0.8);
}

.comparisonContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 300px;
}
.galleryContainer{
    max-width: 1300px;
    margin: 0 auto;
}
.galleryContainer h2{
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 60px;
    border-bottom: 10px solid #325287;
    margin:20px;
}
.galleryContainer p{
    padding:60px;
}
.montageContainer{
    max-width: 1300px;
    margin: 0 auto;
}
.montageContainer p{
    padding:60px;
}
.montageContainer h2{
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 60px;
    border-bottom: 10px solid #325287;
    margin:20px;
}
.hr {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    border-bottom: 10px solid #325287;
}

.comparisonText {
    flex: 1;
    max-width: 50%;
}

.comparisonText h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 10px solid #325287;
    margin:20px;
}

.comparisonText p {
    font-size: 1.2rem;
    line-height: 1.8em;
    padding:40px;
}

.comparisonSection {
    position: relative;
    flex: 1;
    max-width: 50%;
    aspect-ratio: 16 / 9; /* Keeps it proportional */
    overflow: hidden;
}

.comparisonImage {
    position: absolute;
    width: 100%;
    height: 100%;
}

.afterImage {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    transform: translateX(100%);
}

.afterImage img {
    transform: translateX(-100%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparisonImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#youtube-placeholder{
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 60px;
}
#youtube-placeholder .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 50%;
}
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

#lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    transform: scale(0.8);
}

#lightbox img {
    width: 100%;
    height: auto;
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

#footer {
    color: #ccc;
    text-align: center;
    margin-top: 150px;
    padding: 20px;
}
#footer h4{font-size: 1.4em;}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-links, .footer-info {
    margin-bottom: 20px;
}
.footer-links ul {
    list-style-type: none;
    padding: 0;
}
.footer-links li {
    margin: 5px 0;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-info p, .footer-copy p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    body{padding:0px;}
    #about{margin-bottom:-200px;}
    #portrait {display:none;}
    #youtube-placeholder{
        position: relative;
        width:100%;
        max-width: 100%;
        margin-bottom: 80px;
    }
    #youtube-placeholder .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.6);
        padding: 20px;
        border-radius: 50%;
    }
    #gallery {
        display: grid;
        grid-template-columns: auto;
        gap: 20px;
        width: 100%;
        max-width: none;
    }
    .comparisonContainer {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom:80px;
    }

    .comparisonText,
    .comparisonSection {
        max-width: 100%; /* Take full width */
    }
    .comparisonSection {
        position: relative; /* Ensure images are positioned within */
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
        overflow: hidden; /* Prevent unwanted overflow */
    }

    .comparisonImage {
        position: relative; /* Ensure proper stacking */
        width: 100%;
        height: auto;
    }

    .afterImage {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(100%);
    }

    .afterImage img {
        transform: translateX(-100%);
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}


