
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: white;
}

body, html {
    font-family: "Kanit";
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* background: linear-gradient(90deg, #5574FC, #71B3F6, #5574FC); */
    background: #000;
}


header {
    padding: 10px 40px;
    text-align: left;
    z-index: 3;
}

.header-logo {
    height: 80px;
    filter: drop-shadow(4px 4px 3px rgb(0 0 0 / 0.5));

}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center; /* Centers content vertically */
    align-items: center;
    padding: 20px;
}

.content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    z-index: 1;
}

.text {
    padding: 40px;
    color: #fff;
}

.large-text {
    font-size: 50px;
}

footer {
    align-self: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 90%;
    z-index: 1;
}

.logo-container {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Remove fixed width/height to allow shrinking */
    width: 350px;
    height: 350px;
    max-width: 100%; /* Prevent overflow */
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 40px;
    padding: 10px;
    margin: 20px auto; /* Center on mobile */
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.large-text {
    font-size: 50px;
}



.contact-container {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Align items vertically */
    gap: 10px; /* Add spacing between the logo and text */
    margin-bottom: 10px; /* Add spacing between contact rows */
}

/* Ensure the text next to the icon stays aligned */
.contact-container h3 {
    margin: 0; /* Remove default margin */
    color: #fff; /* Ensure text color remains consistent */
    font-size: 16px; /* Adjust text size if needed */
}


/* Image styling */
.contact-container img {
    width: 50px;
    transition: transform 0.05s ease-in-out; /* Smooth scaling effect */
    transform-origin: center;
}

/* Image hover effect */
.contact-container img:hover {
    transform: scale(1.2); /* Increases size by 50% */
    animation: shake-rotate 0.9s ease-in-out infinite; /* Adds the shaking effect */
}

@keyframes shake-rotate {
    0%, 100% {
        transform: scale(1.2) rotate(0deg); /* Default state */
    }
    25% {
        transform: scale(1.2) rotate(-5deg); /* Rotate left */
    }
    50% {
        transform: scale(1.2) rotate(5deg); /* Rotate right */
    }
    75% {
        transform: scale(1.2) rotate(-5deg); /* Rotate left again */
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* Adjust scale for more/less pulse */
    }
}

@keyframes pan {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}

#bg-scroll {
    background-image: url("assets/bg.svg");
    background-size: 10%;
    position: absolute;
    left: 50%;
    top: 0px;
    translate: -50% 0%;
    z-index: 0;
    height: 100%;
    width: 100%;
    opacity: 0.10;
    animation: pan 180s linear infinite;
    will-change: background-position;

}

#gradient-overlay {
    background: radial-gradient(circle, transparent 70%, #5574fc35);
    /* background: radial-gradient(circle, transparent 50%, #5574FC); */
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    z-index: 0;
}

.logo-part {
    position: absolute;
    width: auto;
    height: auto;
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;

}

.logo-part-1 {
    bottom: -73px; /* Start position for bottom-left slide */
    left: -65px;
    z-index: 2;
}

.logo-part-2 {
    top: -72px; /* Start position for top-right slide */
    right: -80px;
    z-index: 1;
}

.logo-part-3 {
    bottom: -73px; /* Start position for bottom-left slide */
    left: -65px;
    z-index: 0;
}

.logo-full {
    display: none; /* Initially hidden */
    position:absolute; /* Position in the same container */
    animation: pulse 3s infinite ease-in-out;
    width: auto;
    height: auto;
    left: 34px;
}

.logo-neg {
    display: none; /* Initially hidden */
    position:absolute; /* Position in the same container */
    width: auto;
    height: auto;
    clip-path: circle(0px at 0 0); /* Initially hidden */
    transition: clip-path 0.1s ease-out; /* Smooth animation */
    left: 34px;
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .content {
        flex-direction: column; /* Stack vertically */
        align-items: center;
        width: 100%;
        padding: 10px;
    }

    .text {
        padding: 20px 10px;
        text-align: center; /* Center text on mobile */
        width: 100%;
    }

    .large-text {
        font-size: 32px; /* Smaller font for mobile */
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .logo-container {
        width: 250px; /* Smaller logo on mobile */
        height: 250px;
        margin-top: 20px;
    }

    /* Ensure contact icons stay visible and aligned */
    .contact-container {
        justify-content: center; /* Center items */
        width: 100%;
    }

    .contact-container img {
        width: 40px; /* Slightly smaller icons on mobile */
    }

    .popup-button {
        width: 100%; /* Full width button on mobile */
        margin-top: 15px;
    }

    #popup-content {
        width: 95%;
        height: 85%;
    }
}

@media (max-width: 480px) {
    .large-text {
        font-size: 24px;
    }

    .logo-container {
        width: 200px;
        height: 200px;
    }

    .contact-container img {
        width: 35px;
    }
}

h1 {
    font-weight: normal;
    font-style: normal;
}

h3 {
    font-weight: normal;
    font-style: normal;
}

/* Popup container */
#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure it appears above other elements */
}

/* Popup content */
#popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    height: 80%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

/* iframe styling */
#popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Popup button */
.popup-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #5574FC;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-button:hover {
    background-color: #71B3F6;
}

