@font-face {
    font-family: 'SoehneBuch';
    src: url('assets/fonts/soehne-buch.woff2');
}

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

body, button, input, textarea {
    font-family: SoehneBuch, sans-serif;
}

h2 {
    font-size: 28px;
}

/* Hero Section */
.hero {
    background: black;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 20rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rotation and positioning for characters */
.rotate, .side {
    display: inline-block;
    transition: transform 0.7s ease, margin 0.7s ease;
}

.rotate {
    transform-origin: center center;
    transform: rotate(-90deg);
}

.rotate.upright {
    transform: rotate(0deg);
}

.side {
    margin: 0 100px;
}

.side.close {
    margin: 0 5px;
}


section {
    padding: 50px;
    text-align: center;
}

#about, #testimonials, #contact {
    background: white;
    color: black;
}

.about-text-box {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;

}

#portfolio, #services {
    background: black;
    color: white;
}

footer {
    background: black;
    color: white;
    text-align: center;
    padding: 20px;
}

button {
    background: black;
    color: white;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.274);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 30px;
    font-size: 20px;
    transition-property: color, background;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
}

button:hover {
    background: white;
    color: black;
}

#about h2{
    margin-bottom: 50px;
}
#about p{
    text-align: center;
    font-size: 19px;
}

#about .word {
    opacity: 0;
    transition: opacity 0.5s ease;
}



.portfolio-project {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.project-header {
    text-align: left;
    width: 80%;
    margin: 0 auto;
}
.project-header p.subtitle{
    font-size: 20px;
    color: gray;
    font-weight: bold;
}

.project-content .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.project-content .row .image-container {
    flex: 1;
    margin: 0;
    overflow: hidden;
    height: 400px;
    position: relative;
    width: 48%;
}

.project-content .row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.project-content .row p.right {
    text-align: left;
    padding-left: 50px;
    width: 48%;
    font-size: 19px;
}
.project-content .row p.left {
    text-align: left;
    padding-right: 50px;
    width: 48%;
    font-size: 19px;
}


.enlarged-image {
    width: 100%;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.hidden-text {
    display: none;
}




@media (max-width: 1500px) {
    .hero h1 {
        font-size: 10rem;
    }
    .side {
        margin: 0 50px;
    }
}

@media (max-width: 1000px) {
    .hero h1 {
        font-size: 5rem;
    }
    .side {
        margin: 0 40px;
    }
    .project-content .row img, .project-content .row p {
        width: 100%;
    }
    .project-content .row .image-container {
        height: 150px;
    }
    section#portfolio {
        padding: 10px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .portfolio-project {
        padding: 0px;
        margin-top: 50px;
    }
    
}

@media (max-width: 200px) {
    .project-content .row {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 10rem;
    }
    .side {
        margin: 0 30px;
    }

    .project-content .row .image-container {
        width: 100%;
        margin-bottom: 20px;
    }
    .project-content .row img {
        height: 200px;
        overflow: hidden;
    }

    .project-content .row p{
        order: 1;
    }

    .project-content .row p.right {
        padding-left: 0px;  
        width: 90%
    }
    .project-content .row p.left {
        padding-right: 0px; 
        width: 90%
    }

    .portfolio-project {
        padding: 0px;
    }
    section#portfolio {
        padding: 0;
        padding-top: 50px;
        padding-bottom: 50px;
    }

}
