*{
    box-sizing: border-box;
}

body{
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F9FAFC;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -mox-osx-font-smoothing: grayscale;
}

.headline{
    font-size: 1.2rem;
    font-weight: 800;
}

#landing{
    width: 100vw;
    height: 100vh;
    background-image: url('../images/landing-image-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width:768px){
    #landing{
        background-attachment: scroll;
    }
}

#landing h1{
    color: white;
    font-size: 5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 3s ease-out;
    max-width: 90%;
    word-wrap: break-word;
}

.down-arrow{
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out 1s, transform 3s ease-out 1s;
}

#landing h1.loaded{
    opacity: 1;
    transform: translate(0);
}

.down-arrow.loaded{
    opacity: 1;
    transform: translateY(0);
}

.arrow-bounce{
    width: 80px;
    height: 80px;
    animation: bounce 2s infinite;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

@keyframes bounce{
    0%, 20%, 50%, 80%, 100%{
        transform: translateY(0);
    }
    40%{
        transform: translateY(-10px);
    }
    60%{
        transform: translateY(-5px);
    }
}

.arrow-bounce:hover{
    animation-duration: 1s;
}

@media (max-width: 768px){
    #landing h1{
        font-size: 2 rem;
        padding: 15px;
    }

    .arrow-bounce{
        width: 30px;
        height: 30px;
    }

    .down-arrow{
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #landing h1{
        font-size: 1.5rem;
        padding: 10px;
    }

    .arrow-bounce{
        width: 25px;
        height: 25px;
    }

    .down-arrow{
        margin-top: 15px;
    }
}

.main{
    min-height: 100vh;
    padding: 40px 20px;
    background-color: #F9FAFC;
}

.section{
    display: block;
    padding: 60px 40px;
    width: 100%;
    margin: 0;
}

.section.profile{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-pic{
    flex: 0 0 auto;
    text-align: center;
    padding-right: 20px;
}

.profile-pic img{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-info{
    flex: 1;
    min-width: 500px;
    max-width: 900px;
}

.profile-info p{
    margin-bottom: 15px;
    word-wrap: break-word;
}

.profile-info p:first-child{
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #00575C;
    margin-bottom: 20px;
}

.profile-info .next-line{
    display: block;
    padding-left: 10rem;
    margin-top: 0.5rem;
}

.profile-info .indented-line{
    padding-left: 5rem;
}

.section-header{
    text-align: left;
    width: 100%;
    justify-content: left;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin: 0 0 30px 0;
}

.section-header h2{
    color: #00575c;
    margin: 0;
}

.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    align-items: start;
}

.proto a{
    text-decoration: none;
    color: #00575C;
}

@media(max-width: 1200px){
    .project-container{
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }
}

@media(max-width: 900px){
    .project-container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
        padding: 15px;
    }
}

@media(max-width: 600px){
    .project-container{
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
}

.container{
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.container:hover{
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.container-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}

.container-header:hover{
    background-color: #F8F9FA;
}

.container-header h3{
    margin: 0;
    color: #00575C;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    flex-grow: 1;
    padding-right: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.accordion-arrow{
    font-size: 25px;
    font-weight: bold;
    color: #00575C;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    flex-shrink: 0;
}

.container.active .accordion-arrow{
    transform: rotate(270deg);
}

.container-contents{
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.container.active .container-contents{
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.container-desc{
    color: #000;
    line-height: 1.6;
}

.container-desc p{
    margin: 15px 0 15px 0;
    word-wrap: break-word;
}

.container-desc p:last-child{
    margin-bottom: 0;
}

.container-desc em{
    color: #000;
    font-style: italic;
}

.service-content{
    background-color: white;
    display: flex;
    border: 1px solid #dbdbdb;
    box-shadow: 1px 4px 12px #a6a6a6;
    border-radius: 10px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    min-height: 250px;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.service-desc{
    text-align: left;
    flex: 1;
    width: 100%;
    padding: 10px 0px;
    overflow: hidden;
    word-wrap: break-word;
}

.service-desc h3{
    color: #00575C;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: left;
}

.service-desc p{
    word-wrap: break-word;
    line-height: 1.6;
    overflow-wrap: break-word;
    hyphens: auto;
    margin: 10px 0;
}

.service-desc a{
    color: #000;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-desc a:hover{
    color: rgba(37, 63, 67, 0.993);
    text-decoration: underline;
}

.service-img{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    padding: 5px;
    width: 100%;
    max-width: 300px;
    height: 220px;
    min-width: 200px;
}

.service-img img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.scroll-to-top{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover{
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.scroll-to-top:active{
    transform: translateY(0);
}

.scroll-to-top img{
    width: 50px;
    height: 50px;
}

.scroll-to-top.visible{
    display: flex;
}

.footer{
    width: 100%;
    height: 400px;
    color: white;
    background-image: url('../images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    padding: 40px;
    align-items: center;
    justify-content: flex-start;
}
.footer-content{
    text-align: left;
    max-width: 100%;
}

.footer-content h4{
    color: rgba(144, 240, 255, 0.993);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin: 0 0 15px 0;
    padding: 0;
}

.footer-content p{
    margin: 5px 0;
    word-wrap: break-word;
}

.footer-content a{
    color: white;
    text-decoration: none;
    word-break: break-all;
}

.footer-content a:hover{
    color: rgba(144, 240, 255, 0.993);
    text-decoration: none;
}

@media (max-width: 1024px){
    .main{
        padding: 30px 15px;
    }

    .section{
        padding: 50px 30px;
    }

    .section.profile{
        padding: 50px 30px;
    }

    .profile-pic{
        margin-bottom: 30px;
    }

    .profile-info{
        min-width: auto;
        max-width: 900px;
    }

    .service-content{
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .service-img{
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }
}

@media (max-width: 768px){
    .main{
        padding: 20px 10px;
    }

    .section{
        padding: 40px 20px;
    }

    .section.profile{
        padding: 40px 20px;
    }

    .project-container{
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-info .next-line{
        padding-left: 1.5rem;
    }

    .profile-info .indented-line{
        padding-left: 1.5rem;
    }

    .container-header{
        padding: 15px;
    }

    .container-contents{
        padding: 0 15px;
    }

    .container.active .container-contents{
        padding: 0 15px 15px 15px;
    }

    .footer{
        background-attachment: scroll;
        padding: 30px 20px;
        min-height: 300px;
    }

    .profile-pic{
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px){
    .main{
        padding: 15px 15px;
    }

    .section{
        padding: 30px 15px;
    }

    .section.profile{
        padding: 30px 15px;
    }

    .profile-info .next-line{
        padding-left: 1rem;
    }

    .profile-info .indented-line{
        padding-left: 1rem;
    }

    .container-header{
        padding: 12px;
    }

    .container-contents{
        padding: 0 12px;
    }

    .container.active .container-contents{
        padding: 0 12px 12px 12px;
    }

    .service-content{
        padding: 15px
    }

    .footer{
        padding: 20px 15px;
        min-height: 250px;
    }

    .scroll-to-top{
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top img{
        width: 40px;
        height: 40px;
    }
}

@media print{
    #landing{
        background-attachment: scroll;
    }

    .footer{
        background-attachment: scroll;
    }

    .scroll-to-top{
        display: none;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){
    #landing, .footer{
        background-attachment: scroll;
    }
}