
@import url('https://fonts.googleapis.com/css2?family=Gelasio&display=swap');
*{
    margin: 0;
    
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'PT Sans', sans-serif;
    font-family: 'Suwannaphum', serif;
}

@keyframes blink {
    0%, 50%, 100% {
      opacity: 1;
    }
    25%, 75% {
      opacity: 0;
    }
  }



:root{
    --bg-color: #44c7ff;
    --second-bg-color: #c4e3ff;
    --text-color: #000000;
    --main-color: #00b3ff;
    --active-color: rgb(255, 255, 255);
    --icon-color: #ffffff;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
@media (max-width: 450px) {
    html {
        font-size: 50%; /* Changed from 40% to 50% for better readability */
    }
}

.logo{
    font-size:2.5rem;
    color:var(--text-color);
    --color: red;
    font-weight:600;
    cursor:default;
}

body{
    background: var(--second-bg-color);
    color: var(--text-color);
}

span{
    color: var(--main-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Dropdown Container - More reliable hover */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Button */
.dropdown .dropbtn {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 2rem;
    transition: .3s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 10px 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown .dropbtn:hover {
    color: var(--active-color);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000; /* Higher than header */
    border-radius: 0.5rem;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Links */
.dropdown-content a {
    color: var(--text-color);
    padding: 1px 16px;
    text-decoration: none;
    display: block;
    font-size: 1.6rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:hover {
    background: var(--main-color);
    color: white;
    padding-left: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }
    
    .dropdown .dropbtn {
        width: 100%;
        font-size: 2rem;
        margin-left: 10px;
        justify-content: space-between;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding-left: 3rem;
        background: rgba(255,255,255,0.05);
    }
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky{
    border-bottom: .1rem solid rgba(0, 0, 0, .2 );
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    transition: .3s;
    padding: 10px;
}
.navbar a:hover, .navbar a.active{
    color: var(--active-color);
}

#menu-icon{
    display: none;
    font-size: 3.6rem;
    color: var(--text-color);
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    width: 28vw;
    animation: floatImage 4s ease-in-out infinite;
    transition: .5s ease;
}

@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}

.home-img img:hover{
    transform: scale(1.02);
}

.home-content h3{
    font-size: 3.7rem;
    font-weight: 700;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

.home-content h1{
    color: var(--main-color);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 2em;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}


.btn1{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: #ffffff;
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: #00b3ff;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover{
    box-shadow: none;
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img{
    animation: floatImage 4s ease-in-out infinite;
    width: 28vw;
    transition: .5s ease;
}

.about-img img:hover{
    transform: scale(1.02);
}

.heading{
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
    color: var(--main-color);
}
.about-content h3{
    font-size: 3.7rem;   
}
.about-content p{
    font-size: 2rem;
    margin: 2rem 0 3rem;
}

.about-content li{
    font-size: 2rem;
    --margin: 2rem 0 3rem;
    
}

.about-content ul{
    color: #00b3ff;
    font-size: 2rem;
    --margin: 2rem 0 3rem;
    padding-left: 5rem;
}



.service h2{
    margin-bottom: 5rem;
}


.service-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-container .service-box{
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding:  3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.service-container .service-box:hover{
    border-color: var(--active-color);
    transform: scale(1.02);
}

.service-box i{
    font-size: 7rem;
    color: var(--text-color);
}
.service-box img{
    width: 15vh;
    padding-bottom: 5px;
}

.service-box h3{
    font-size: 2.1rem;
}

.service-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.portfolio{
    background: var(--second-bg-color);
}

.portfolio p{
    margin-bottom: 4rem;
}

.portfolio-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding:  3rem 2rem 4rem;
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.portfolio-box img{
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img{
    transform: scale(1.1);
}

.portfolio-box iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Maintain YouTube video aspect ratio */
}

.portfolio-box .portfolio-layer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(255, 255, 255), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer{
    transform: translateY(0);
}

.portfolio-layer h4{
    font-size: 3rem;
}

.portfolio-layer p{
    font-size: 1.1rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;

}

.portfolio-layer a i{
    font-size: 2rem;
    color:var(--second-bg-color)
}

.contact{
    margin-bottom: 3rem;
}

.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input, .contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input{
    width: 49%;
}

.contact form textarea{
    resize: none;
}

.contact form .btn{
    margin-top: 2rem;
    cursor: pointer;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footer p{
    font-size: 1.6rem;
}

.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: linear-gradient(135deg, #ff4281 0%, #ffffff 100%);
    border-radius:5px;
    transition: .5s ease;
    color: #ffffff;
}

.footer-iconTop a:hover{
    box-shadow: 0 0 1rem;
}

.footer-iconTop a i{
    font-size: 2.4rem;
}



@media (max-width: 1200px){
    html{
        font-size: 55%;
    }
}
@media (max-width: 991px){
    .header{
        padding: 2rem 3%;
    }

    .section{
        padding: 10rem 3% 2rem;
    }
    .footer{
        padding: 2rem 3%;
    }

    .service{
        padding-bottom: 7rem;
    }

    .portfolio{
        padding-bottom: 7rem;
    }

    .contact{
        min-height: auto;
    }
}


@media (max-width: 768px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2 );
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2 );
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a{
        display:block;
        font-size: 2rem;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }

    .about{
        flex-direction: column-reverse;
    }

    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }

    .service h2{
        margin-bottom: 3rem;
    }

    .portfolio h2{
        margin-bottom: 3rem;
    }
    .portfolio-container{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Prevent text overflow in service boxes */
.service-box p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


@media (max-width: 617px){
    .portfolio-container{
        grid-template-columns: 1fr;
    }
}


@media (max-width: 450px){
    html{
        font-size: 40%;
    }

    .contact form .input-box input{
        width: 100%;
    }
}

@media (max-width: 365px){
    .home-img img{
        width: 90vw;
    }
    .about-img img{
        width: 90vw;
    }

    .footer{
        flex-direction: column-reverse;
    }

    .footer p{
        text-align: center;
        margin-top: 2rem;
    }
}

/* Add these styles to your Style.css file */

/* Testimonials Section */
.testimonials {
    background: var(--second-bg-color);
    min-height: 80vh;
}

.testimonials-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0 -15px;
}

.testimonial-card {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    transition: transform 0.3s ease;
}

.testimonial-content {
    background: linear-gradient(135deg, #00e1ff 20%, #006db6 100%);
    border-radius: 2rem;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover .testimonial-content {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-info p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.stars {
    color: #FFD700;
    font-size: 1.6rem;
}

.testimonial-text {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    color: rgb(0, 0, 0);
}

.view-profile-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3rem;
    font-size: 1.4rem;
    color: white;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
    border: 1px solid white;
}

.view-profile-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.carousel-control {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #ff4281 0%, #004caf 100%);
    border-radius: 50%;
    margin: 0 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.carousel-control i {
    font-size: 3rem;
    color: white;
}

.carousel-control:hover {
    background: var(--text-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(0, 179, 255, 0.3);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--main-color);
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .testimonial-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .testimonial-content {
        padding: 2rem;
    }
    
    .profile-img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .view-profile-btn {
        align-self: center;
    }
}

marquee {
    background: rgba(255, 255, 255, 0.589);
    color: #00b3ff;
    font-size: 2rem;
    margin-top: 9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-shadow: 1px 1px 2px rgba(0, 217, 255, 0.274);
}