/* font awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/*text fonts */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Funnel+Display:wght@300..800&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Jost:ital,wght@0,100..900;1,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+Ahom&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Signika+Negative:wght@300..700&family=Signika:wght@300..700&family=Space+Grotesk:wght@300..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');    
    
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
.header{
    width: 100%;
    min-height: 81vh;
    background-image: linear-gradient(rgba(43, 39, 39, 0.8), rgba(50, 50, 50, 0.8)), url('../images/img1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    position: relative;
}

/* border box */
.topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px;
    background-color: white;
    max-width: 1100px;
    width: 90%;
    position: relative;
    top: 22px;
    margin: 0 auto;
}

.topbar h1{
   font-family: "Josefin Sans", sans-serif;
   font-size: clamp(18px, 3vw, 25px);
   font-weight: bold;
   transition: transform 0.2s ease-in-out;
}

.topbar h1:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
    75% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* navigation items */
.navbar ul{
    display: flex;
    gap: clamp(15px, 2vw, 25px);
    margin-top: 5px;
    list-style: none;
    font-family: "Host Grotesk", sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 600;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a{
    text-decoration: none;
    color:rgb(131, 129, 129);
    white-space: nowrap;
}

.navbar ul li a:hover {
    color: #000000;
}

.navbar ul li ul.dropdown{
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 0;
    list-style: none;
    min-width: 110px;
    z-index: 100;
    transform: translateX(-22%);
    text-align: center;
}

.navbar ul li:hover ul.dropdown {
    display: block;
}

.navbar ul li ul li a {
    display: block;
    color: #333333;
    padding: 8px 15px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.navbar ul li ul li:last-child a {
    border-bottom: none;
}

.navbar ul li ul li a:hover {
    background-color: #f0f2f3;
}

/* content info */
.content{
    margin-top: clamp(80px, 15vh, 180px);
    text-align: center;
    padding: 0 5%;
}

.intro h1{
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(28px, 5vw, 50px);
    color: #fff;
    margin-bottom: 10px;
}

.intro p{
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: bold;
    color: #fff;
}

.p_button{
    position: relative;
    padding: 21px;
    border-radius: 5px;
    background-color: rgb(101, 151, 232);
    max-width: 185px;
    min-height: 30px;
    margin: 30px auto 0;
    border: none;
    outline: none;
    transition: 1s all ease-in-out;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
 
.p_button a{
    position: relative;
    font-family: "Kanit", sans-serif;
    font-size: clamp(28px, 3vw, 34px);
    color: #000000;
    text-decoration: none;
    z-index: 10;
}

.p_button::before,
.p_button::after {
    content: "";
    position: absolute;
    background: #ffffff;
    width: 18rem;
    height: 15.2rem;
    border-radius: 40%;
    top: -12rem;
    left: -1.5rem;
    transition: 2s all ease-in-out;
    animation: wave 9s linear infinite;
    z-index: 1;
}

.p_button::after {
    opacity: 80%;
}

@keyframes wave{
    0%{rotate: 0deg;}
    100%{rotate: 360deg;}
}

.p_button:hover::before,
.p_button:hover::after {
    top: -30rem;
}

/* Waves */
.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
    overflow: hidden;
}

.parallax > use {
    animation: moveForever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes moveForever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Extra information section */
.extra-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    background-color: #fdfdfd;
    max-width: 950px;
    width: 90%;
    margin: -120px auto 0;
    padding: 40px 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.extra-info .container{
    flex: 1;
    text-align: center;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.extra-info .container:last-child {
    border-right: none;
}

.extra-info h1{
    font-size: clamp(35px, 5vw, 50px);
    font-family: 'Noto Serif Ahom', sans-serif;
    color: #2d2a2a;
}

.extra-info p{
    font-size: clamp(16px, 2vw, 20px);
    color: #666;
}

/* Insights section*/
.insights {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.insights h3{
    font-size: clamp(28px, 4vw, 35px);
    font-family: 'Ubuntu', sans-serif;
    padding: 20px;
    margin-top: 130px;
    text-align: center;
}

.insights h3 i{
    margin-right: 20px;
}

/* container1 */
.container1{
    padding-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.stat-list-left,
.stat-list-right {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-list-right {
    margin-top: 0;
    text-align: left;
}

.container1 .stat-item{
    padding: 20px;
    border: 1px solid #a39f9f;
    border-radius: 8px;
    background-color: #fff;
}

.stat-list-left i, .stat-list-right i{
    font-size: 25px;
    margin-bottom: 10px;
}

.stat-list-left h4, .stat-list-right h4{
    font-family: 'Jost', sans-serif;
    font-size: 20px;
}

.stat-list-left p, .stat-list-right p{
    font-family: 'Arial', sans-serif;
    font-size: 18px;
}

.img-card-left,
.img-card-right {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-top: 20px;
}

.stat-list-left .img-card-left{
    background-image: url('../images/img2.jpg');
}

.stat-list-right .img-card-right{
    background-image: url('../images/img3.jpg');
}

.section-container {
    max-width: 1200px;
    width: 90%;
    margin: 100px auto 0;
    padding: 50px 20px;
    text-align: center;
}

.section-container h1{
    font-family: 'figtree', sans-serif;
    font-size: clamp(35px, 5vw, 50px);
    margin-top: -5px;
}

/* Services Section */
#services {
    background-color: #f4f4f4;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-item {
    padding: 30px;
    min-height: 340px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #58b4df;
}

.service-item h3{
    font-family: 'Roboto', sans-serif;
    font-size: 23px;
    margin-top: 3px;
}

.service-item p{
    font-size: 18px;
    font-family: 'Hanken Grotesk', sans-serif;
    margin-top: 20px;
    text-align: inherit;
}

/* About Us Section */
.about-us h1{
    font-family: 'figtree', sans-serif;
    font-size: clamp(35px, 5vw, 50px);
    margin-top: -5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5186db;
}

.about-content {
    margin: 15px auto 0;
    padding: 10px;
    text-align: left;
    line-height: 1.6;
}

.about-content h4{
    margin-top: 30px;
    font-size: 19px;
    font-family: 'Host Grotesk', sans-serif;
    margin-bottom: 6px;
}

.about-content p{
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
}

.about-content p:first-of-type {
    margin-bottom: 20px;
}

.about-content h4 {
    margin-bottom: 10px;
}

.about-content p:last-of-type {
    margin-top: 30px;
}

.about-content ul li{
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
    margin-left: 40px;
    list-style: none;
}

/* Contact Us Section */
#contact-us {
    background-color: #f9f9f9;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: #58b4df;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #4a9bc1;
}

/*footer section*/
footer{
    margin-top: 100px;
    text-align: center;
    background-color: #314464;
    min-height: 90px;
    padding: 20px;
}

footer p{
    font-size: 19px;
    font-family: 'Kanit', sans-serif;
    color: whitesmoke;
}

footer p:first-of-type{
    padding-top: 20px;
    font-size: 18px;
    font-family: 'Kanit', sans-serif;
}

footer p:last-of-type{
    margin-bottom: 20px;
}

/* ===== MEDIA QUERIES FOR RESPONSIVE DESIGN ===== */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .topbar {
        width: 95%;
        padding: 10px 15px;
    }
    
    .container1 {
        gap: 30px;
    }
    
    .extra-info {
        margin-top: -100px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .content {
        padding: 0 3%;
    }
    
    .waves {
        height: 12vh;
        min-height: 90px;
    }
    
    .extra-info {
        flex-direction: column;
        width: 95%;
        margin-top: -80px;
    }
    
    .extra-info .container {
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
    
    .extra-info .container:last-child {
        border-bottom: none;
    }
    
    .container1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-list-right {
        text-align: left;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .header {
        min-height: 70vh;
    }
    
    .topbar h1 {
        font-size: 20px;
    }
    
    .navbar ul {
        font-size: 14px;
        gap: 10px;
    }
    
    .content {
        padding: 0 3%;
    }
    
    .intro h1 {
        font-size: 24px;
    }
    
    .intro p {
        font-size: 14px;
    }
    
    .p_button {
        max-width: 150px;
        padding: 15px;
    }
    
    .p_button a {
        font-size: 24px;
    }
    
    .waves {
        height: 10vh;
        min-height: 80px;
    }
    
    .extra-info {
        padding: 20px 10px;
        margin-top: -60px;
    }
    
    .insights {
        width: 95%;
    }
    
    .section-container {
        width: 95%;
        padding: 30px 10px;
    }
    
    .service-item {
        padding: 20px;
        min-height: auto;
    }
    
    .about-content ul li {
        margin-left: 20px;
    }
}