:root{
    --primary-blue: #3c74a9;
    --secondary-blue: #42a5f5;

    --primary-green: #4caf50;
    --secondary-green: #81c784;

    --primary-red: #f44336;
    --secondary-red: #e57373;

    --primary-pink: #db638b;
    --secondary-pink: #f06292;

    --primary-yellow: #ffeb3b;
    --secondary-yellow: #fff176;

    --primary-black: #212121;
    --secondary-black: #424242;

    --primary-orange: #ff9800;
    --secondary-orange: #ffb74d;


    --dark-background: #181818;
    --light-gray-text: #d9d9d9;
    --primary-text: #181818;
    --highlight-green: #e9ff32;
    --primary-background: #f7f7f7;
    --light-gray-background: #e1e1e1;

}

/*MODIFY BELOW ONLY*/

body{
    background-color: var(--primary-background);
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.gap-4rem{
    gap: 4rem;
}

.gap-2rem{
    gap: 2rem;
}

.gap-5rem{
    gap: 5rem;
}

.preloader-wrapper {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-text); /* Background color for preloader */ 
    z-index: 9999; /* Ensure it covers everything */
    pointer-events: none; /* Prevent interaction with preloader */  
    
    
}

.preloader-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    text-transform: uppercase;
    font-size: 3em;
    color: white; /* Text color for preloader */
    text-align: center; /* Center the text */
}

.preloader-subtext{
    font-family: 'Jura', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.5em;
    color: white; /* Text color for preloader */
    text-align: center; /* Center the text */
    margin-top: 10px;
}



.container{
    width: 90%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4rem;

}
.hide-cursor {
    cursor: none;
}
.nav-wrapper{
    background-color: var(--primary-background);
    box-shadow:none;

}

.primary-text{
    color: var(--primary-text);
    font-size: 24px;
    font-weight: 600;
    font-family: "Jura", sans-serif;
}


.primary-text-white{
    color: var(--primary-background);
    font-size: 24px;
    font-weight: 600;
    font-family: "Jura", sans-serif;
}

.primary-highlighted-text{
    color: var(--light-gray-text);
    background-color: var(--primary-text);
    font-size: 24px;
    font-weight: 600;
    font-family: "Jura", sans-serif;
}

.primary-highlighted-text-white{
    color: var(--primary-black);
    background-color: var(--primary-background);
    font-size: 24px;
    font-weight: 600;
    font-family: "Jura", sans-serif;
}


.main-title{
    font-size: 9rem;
    font-weight: 600;
    margin: 0;
    line-height: 0.8;
    padding: 0;
    color: var(--primary-text);
    font-family: "Anuphan", sans-serif;
}

.subtitle{
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: var(--secondary-black);
    font-family: "Jura", sans-serif;
    text-transform: uppercase;
}

.subtitle-white{
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: var(--primary-background);
    font-family: "Jura", sans-serif;
    text-transform: uppercase;
}

.section-title{
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 0.8;
    margin: 0;
    padding: 0;
    z-index: 100;
    color: var(--primary-text);
    font-family: "Amiko", sans-serif;
    text-transform: uppercase;
}

.section-title-white{
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 0.8;
    margin: 0;
    padding: 0;
    z-index: 100;
    color: var(--primary-background);
    font-family: "Amiko", sans-serif;
    text-transform: uppercase;
}
.contact-me-btn{
    background-color: var(--highlight-green);
    color: var(--primary-text);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Jura", sans-serif;
    padding: 12px 24px;
    border: none;
    transition: background-color 0.3s ease;
    justify-self: center;
    text-transform: uppercase;
    position: sticky;
}

.contact-me-btn:hover, .contact-me-btn:focus, .contact-me-btn:active{
    background-color: var(--highlight-green);
    color: var(--primary-text);
    transform: scale(1.05);

}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px; 
    height: 15px;
    background-color: var(--primary-green);
    border-radius: 50%; 
    transform: translate(-50%, -50%); /* Centers the dot on the cursor */
    pointer-events: none; /* Allows clicks to pass through the dot */
    transition: transform 0.1s ease;
    z-index: 1000; /* Ensures the dot is on top of other elements */

}



.cursor-dot-white{
    position: fixed;
    top: 0;
    left: 0;
    width: 15px; 
    height: 15px;
    background-color: var(--primary-text);
    border-radius: 50%; 
    transform: translate(-50%, -50%); /* Centers the dot on the cursor */
    pointer-events: none; /* Allows clicks to pass through the dot */
    transition: transform 0.1s ease;
    z-index: 1000; /* Ensures the dot is on top of other elements */
}

.hero{
    justify-content: flex-end;
    align-self: flex-start;
    height: 95vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 2vw;
}

.hero-pretitle{
    color: var(--secondary-black);
    font-size: 24px;
    font-weight: 600;
    font-family: "Jura", sans-serif;
}

.about-me{
    display: flex;
    flex-direction: column;
    height: auto ;
    margin-bottom: 5rem ;
}   

.random-square-black{
    width: 50px;
    height: 10px;
    background-color: var(--primary-text);
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.random-square-white{
    width: 30px;
    height: 10px;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 1;
    background-color: var(--primary-background);
}

.random-square-green{
    background-color: var(--highlight-green);
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 1;
}

.social-proof-section{
    background-color: var(--light-gray-background);
    width: 100%;
    align-items: center;
    color: var(--primary-text);
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    padding: 2vw;
}

.social-proof-card{
    background-color: var(--primary-background);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    width: 70vw;
}

.social-proof-quote{
    font-family: "Jura", sans-serif;
    color: var(--primary-text);
    font-size: 1.4rem;
    margin: 20px 0;
    font-weight: 600;
    line-height: 1.5;
    padding: 0;
}

.social-proof-author{
    font-family: "Jura", sans-serif;
    color: var(--primary-text);
    font-size: 1.2rem;
    margin: 0;
    font-weight:800;
    line-height: 1.5;
    padding: 0;
    margin-top: 1rem;
}

.social-proof-autor-credits{
    font-family: "Jura", sans-serif;
    color: var(--primary-text);
    font-size: 1rem;
    margin: 0;
    font-weight:400;
    line-height: 1.5;
    padding: 0;
}

.testimonal-select-field{
    display: inline-block;
    padding-top: 20px;
}

/* Make the checked (selected) radio button black */
.testimonal-select-field [type="radio"]:checked + span::after,
.testimonal-select-field [type="radio"].with-gap:checked + span::after {
    background-color: black !important;
    border-color: black !important;
}

/* Also change the border of the outer circle */
.testimonal-select-field [type="radio"]:checked + span::before,
.testimonal-select-field [type="radio"].with-gap:checked + span::before {
    border-color: black !important;
    background-color: black !important;
}

/* Optional: make hover or focus effects black as well */
.testimonal-select-field [type="radio"]:not(:checked) + span:hover::before {
    border-color: black !important;
    background-color: black !important;
}


.project-section{
    background-color: var(--dark-background);
    color: var(--primary-background) !important;
    width: 100%;
    align-items: center;
    color: var(--primary-text);
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    padding: 2vw;
}

.project-left{
    display: flex;
    flex-direction: column;
    gap: 1rem;


}
.project-image-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.project-image{
    width: 100%;
    height: auto;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-right{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    text-align: right;
}

.project-button, .project-button a{
    background-color: var(--highlight-green);
    color: var(--primary-text);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Jura", sans-serif;
    padding: 12px 24px;
    border: none;
    transition: background-color 0.3s ease;
    justify-self: center;
    text-transform: uppercase;
    position: sticky;
}

.project-button:hover, .project-button:focus, .project-button:active{
    background-color: var(--highlight-green);
    color: var(--primary-text);
    transform: scale(1.05);

}

.project-after{
    margin-top: 5rem;
    align-items: center;
}

.contact-me{
    background-color: var(--dark-background);
    height: auto;
    width: 100%;
    color: var(--primary-background);
    padding: 5vw 5vw 2vw 5vw;
}

.contact-me p{
    color: var(--primary-background);
}

.flexicons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap : 0.5%;
}

.flexicon {
    background: var(--dark-background);
    color: var(--primary-off-white);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center icon by default */
    transition: all 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
    
    padding-left: 0px; /* No padding when not hovered */
}


.flexicon-icon {
    font-size: 24px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content:justify;

    height: 24px;
    transition: color 0.2s;
}

.flexicon-icon i {
    color: var(--primary-off-white);
}


.flexicon-text{
    margin-left: 10px;
    font-size: 1.5rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--primary-off-white);
    }


.flexicon-text a{
    text-decoration: none;
    color: var(--primary-off-white);
}


.flexicon:hover {
    width: 200px;
    height: 64px;
    border-radius: 0px;
    
    .flexicon-icon {
        translate: 0px;
        visibility: hidden;
    }

    .flexicon-text {
        opacity: 1;
    
    }
}

.input-field{
    font-family: "Jura", sans-serif;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.input-field input,
.input-field textarea {
    font-family: "Jura", sans-serif;
    box-sizing: border-box;
    color: var(--light-gray-text);
    margin-bottom: 16px;
}

.input-field-label{
    font-family: "Jura", sans-serif;
    
}

.footer-links, .footer-title{
    color: var(--light-gray-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: "Jura", sans-serif;
    text-align: right;
}


.footer-title{
    font-weight: 600;
    margin-bottom: 0.5rem;
    color:white;
    
}

.footer-links a{
    color: var(--light-gray-text);
    text-decoration: none;
}
.footer-links a:hover{
    color: var(--highlight-green);
}

.footer-footer{
    color: var(--light-gray-text);
    font-size: 1rem;
    font-family: "Jura", sans-serif;
    text-align: right;
    margin-top: 1rem;
}

.work-education-left{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}

.work-education-right{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    text-align: right;
}

.work-education-text{
    font-family: "Jura", sans-serif;
    color: var(--primary-text);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    line-height: 0.9;
    padding: 0;
}

.resume-button{
    background-color: var(--highlight-green);
    color: var(--primary-text);
    font-size: 1.2rem;
    width: fit-content;
    justify-content: center;
    align-self: center;
    font-weight: 600;
    font-family: "Jura", sans-serif;
    padding: 12px 24px;
    border: none;
    transition: background-color 0.3s ease;
    justify-self: center;
    text-transform: uppercase;
    margin-top: 2rem;
}


.resume-button:hover, .resume-button:focus, .resume-button:active{
    background-color: var(--primary-black);
    color: var(--light-gray-text);
    transform: scale(1.05);

}

/* SPLIT SCROLLING SECTION STYLES for PROJECT PAGE */
/* Wrapper */
.split-scroll {
    display: flex;
    position: relative;
    min-height: 100vh; /* enough space for right-side scroll */
}

/* LEFT — frozen panel */
.split-scroll .left {
    width: 20%;
    padding: 60px 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--primary-background);
    display: flex;
    z-index: 2;
}

/* RIGHT SCROLLING AREA */
.split-scroll .projright {
    width: 80%;
    padding: 60px 40px;
    background: var(--primary-background);
}

/* CONTENT INSIDE RIGHT SIDE */
.right-content {
    display: flex;
    flex-direction: column;
    gap:80px;
}

/* Each scroll box */
    .right-content .box {
        background: var(--primary-text);
        color: var(--primary-background);
        padding: 20px;
        font-size: 2rem;
        border-radius: 16px;
        opacity: 0;
        transform: translateY(50px);
    }

.right-content .title{
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: "Amiko", sans-serif;
    text-transform: uppercase;
}

.right-content .main-text{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    font-family: "Jura", sans-serif;
}

.right-content .tech-stack{
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    font-family: "Jura", sans-serif;
    text-transform: uppercase;
    color: var(--light-gray-text)
}

.project-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-button{
    background-color: var(--highlight-green);
    color: var(--primary-text);
    font-size: 1.2rem;
    width: fit-content;
    justify-content: center;
    align-self: center;
    font-weight: 600;
    font-family: "Jura", sans-serif;
    padding: 12px 24px;
    border: none;
    transition: background-color 0.3s ease;
    justify-self: center;
    text-transform: uppercase;
    margin-top: 2rem;
}



@media only screen and (max-width: 768px) {
    .main-title{
        font-size: 4rem;
    }

    .hero{
        height: 80vh;
    }

    .section-title{
        font-size: 2.5rem;
    }

    .social-proof-section{
        text-align: center;
    }

    .work-education-right{
        align-items: flex-start;
        text-align: left;
    }

    .social-proof-card{
        width: 100vw;
    }
    
    .contact-me{
        height: auto;
    }

    .footer-footer{
        text-align: center;
    }

    .primary-text-white{
        text-align: center;
    }

    .project-section{
        align-items: center;
        text-align: left;
        
    }

    .project-button{
        align-self: center;
        height: auto;
        
        
    }
    


}

/* MOBILE FIX FOR SPLIT SCROLL */
@media (max-width: 900px) {
    .split-scroll {
        flex-direction: column;
    }

    .split-scroll .left,
    .split-scroll .projright {
        width: 100%;
        position: relative;
        height: auto;
    }

    .split-scroll .projright {
        width: 100%;
        padding: 20px;
    }

 
}