* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: orange;
    color: #333;
}

/* transition styling */
.transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 2;
    pointer-events: none;
}

.transition-row {
    flex: 1;
    display: flex;
}

.transition-row.row-1 .block {
    transform-origin: top;
}

.transition-row.row-2 .block {
    transform-origin: bottom;
}

.block {
    flex: 1;
    background-color: #111;
    transform: scaleY(1);
    will-change: transform;
    visibility: visible;
}


/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-one .text-content,
.section-two .text-content {
    animation: fadeInUp 1.5s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.section-one,
.section-two {
    border-bottom: 1px solid orange;
}

/* Header */
header {
    background-color: #111;
    color: white;
}

.upper-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    height: 70px;
}

.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.title h1 { 
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
}

.social-icon {
    margin-left: 15px;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.social-icon:hover {
    color: orange;  
}

/* Navigation bar */
.nav-bar {
    border-top: 1px solid orange;
    padding: 20px 0;
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-links a {
    margin: 0 20px;
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.nav-links a:hover {
    color: orange;
}

/* Hamburger Icon */
.hamburger {
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Sections */
.section-one {
    background-image: url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.section-one .text-content {
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    margin-top: -60px; 
}

.section-two {
    background-image: url('../images/3.jpg');
    background-size: cover;
    background-position: center;
    height: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.section-two .text-content {
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
}

    .section-one .text-content h2,
    .section-two .text-content h2,
    .section-two .text-content h3 {
        margin: 20px 0;
    }

    .section-two .text-content h3 span {
        display: inline-block;
        border-bottom: solid 2px orange;
    }

.site-footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
}

.title h1 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center; /* Center-align text */
}

/* Mobile Optimization */
@media (max-width: 768px) {

    .title {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px; 
    }
    .title h1 {
        line-height: 1.2; 
        font-size: 24px; 
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 20px; 
    }
    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111;
        z-index: 2;
        height: 100vh;
        animation: fadeInUp 0.5s ease-out;
        opacity: 0;
        animation-fill-mode: forwards;
    }

    .nav-links.show {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: fixed; 
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9); 
        z-index: 999;
        animation: fadeInUp 0.5s ease-out;
        opacity: 1; 
    }

    .no-scroll {
        overflow: hidden;
    }

    .hamburger {
        display: block;
    }

    .hamburger:hover {
        color: orange;
    }

    .section-one {
        height: auto; 
        min-height: 750px; 
        padding-top: 0px; 
        padding-bottom: 50px;
    }

    .section-two {
        height: auto;
        min-height: 850px;
        padding-top: 30px; 
        padding-bottom: 30px; 
    }

    .section-one .text-content,
    .section-two .text-content {
        font-size: 20px;
        padding: 10px;
    }

    .section-one .text-content {
        margin-top: 0; 
        padding-top: 0px; 
        padding-bottom: 20px; 
    }

    .section-two .text-content {
        padding-top: 0px; 
        padding-bottom: 20px; 
    }
}
