@font-face {
    font-family: "SpaceGroteskRegular";
    src: url(/font/Space_Grotesk/static/SpaceGrotesk-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "SpaceGroteskLight";
    src: url(/font/Space_Grotesk/static/SpaceGrotesk-Light.ttf) format("truetype");
}

@font-face {
    font-family: "SpaceGroteskMedium";
    src: url(/font/Space_Grotesk/static/SpaceGrotesk-Medium.ttf) format("truetype");
}

@font-face {
    font-family: "DMSansLight";
    src: url(/font/DM_Sans/static/DMSans-Light.ttf) format("truetype");
}

@font-face {
    font-family: "DMSansRegular";
    src: url(/font/DM_Sans/static/DMSans-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "LogoFont2";
    src: url(/font/jellyka_saint_andrew_s_queen/Saint-Andrews-Queen.ttf) format("truetype");
}

/* --------------------------------------------------------------------------------------------- */
/* default screen styles 1920x1080 */

.star {
    color: white;
    animation-name: blink;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

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

#logo-page {
    font-family: "LogoFont2", sans-serif;
    position: absolute;
    top: 10px;
    left: 45px;
    color: white;
    font-size: 39px;
}

/* Contact Form Styles */

.contact-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    padding: 0 100px;
}

.contact-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-title {
    font-family: "SpaceGroteskRegular", sans-serif;
    font-size: 48px;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 500px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-family: "SpaceGroteskRegular", sans-serif;
    font-size: 22px;
    color: #ffffff;
}

.message-label {
    font-family: "DMSansLight", sans-serif;
    font-size: 22px;
    color: #ffffff;
}

.form-input,
.form-textarea {
    border: none;
    border-bottom: 1px solid #ffffff;
    background: transparent;
    padding: 8px 0;
    font-family: "DMSansLight", sans-serif;
    font-size: 16px;
    color: #ffffff;
    outline: none;
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    border-bottom: 1px solid #ffffff;
}

.contact-button {
    background-color: #ffffff;
    color: #020202;
    border: none;
    padding: 15px 40px;
    font-family: "SpaceGroteskRegular", sans-serif;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    width: fit-content;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #333;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    align-self: flex-start;
}

.contact-form-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-family: "SpaceGroteskRegular", sans-serif;
    font-size: 22px;
    color: #ffffff;
    font-weight: bold;
}

.info-value {
    font-family: "DMSansLight", sans-serif;
    font-size: 16px;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    align-self: flex-end;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons img:hover {
    opacity: 1;
}

/* Responsive adjustments for contact form */
@media (max-width: 1536px) {
    .contact-container {
        width: 65%;
        padding: 0 80px;
    }
    
    .contact-title {
        font-size: 42px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #070610;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: "FahkwangRegular", sans-serif;
    opacity: 1;
    filter: blur(1);
    transition: opacity 150ms ease, filter 150ms ease;
}

body.preload {
    opacity: 1;
    filter: blur(14px);
}

body.page-transition {
    opacity: 0.25;
    filter: blur(16px);
}

/* Sidebar styles */
.sidebar {
    position: absolute;
    inset: 0 auto 0;
    left: 0;
    top: 0;
    width: 111px;
    height: 100%;
    background: linear-gradient(180deg, rgba(177, 141, 219, 0) 0%, rgba(121, 103, 161, 1) 100%);
    z-index: 1;
}


/* root-color variable */
.bg-root {
    position: relative;
    height: 100vh;
    background: #a98fe6;
    overflow: hidden; 
}

/* Top blur effect */
.blur-top {
    position: absolute;
    width: 566px;
    height: 811px;
    background: #9877BE;
    filter: blur(220px) brightness(1.5);
    transform: rotate(230deg);
    left: 228px;
    top: -520.46px;
    z-index: 999;
    rotate: 90deg;
    border-radius: 150%;
    pointer-events: none; /* allow clicks to pass through to elements below */
    box-shadow: 0 0 200px rgba(152, 119, 190, 0.3);
}



/* Bottom blur effect */
.blur-bottom-left {
    position: absolute;
    width: 625px;
    height: 800px;
    background: linear-gradient(180deg, #b4b1bb 0%, #756d88 100%);
    filter: blur(220px) brightness(1.2);
    left: 32px;
    top: 740px;
    z-index: 999;
    pointer-events: none; /* allow clicks to pass through to elements below */
}

/* Additional glow layer */
.blur-bottom-left::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle at center, rgba(110, 107, 131, 0.4) 0%, transparent 60%);
    filter: blur(100px) brightness(1.6);
    border-radius: 50%;
}

/* Bottom right blur effect */
.blur-bottom-right {
    position: absolute;
    width: 280px;
    height: 770px;
    background: radial-gradient(ellipse at center, rgba(91, 82, 114, 0.9) 0%, rgba(187, 180, 207, 0.5) 40%, rgba(46, 41, 57, 0.3) 100%);
    filter: blur(220px) brightness(1.2);
    left: 1333px;
    top: 538.14px;
    rotate: 303deg;
    z-index: 999;
    border-radius: 50%;
    pointer-events: none; /* allow clicks to pass through to elements below */
    box-shadow: 0 0 150px rgba(127, 115, 159, 0.4);

}

/* Additional atmospheric layer */
.blur-bottom-right::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at center, rgba(158, 100, 248, 0.3) 0%, transparent 70%);
    filter: blur(80px) brightness(1.4);
    border-radius: 50%;
}




/*logo styles*/
.logo {
    position: absolute;
    top: 10px;
    left: -30px;
    height: auto;
    z-index: 3; /* Above sidebar and blur effects */
}

.logo-icon {
    position: absolute;
    bottom: 50px;
    left: 30px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3; /* Above sidebar and blur effects */
}

/* Make sure anchor links and their images inside the logo bar are clickable
   even if there are blurred overlay elements nearby */
.logo-icon a,
.logo-icon a img,
.logo-icon img {
    pointer-events: auto;
    z-index: 3;
}

/* Navbar styles */
.navbar-collapse {
    position: absolute;
    top: 50px;
    left: 250px;
    z-index: 1001; /* Above sidebar and blur effects */
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 50px;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav a {
    color: white;
    text-decoration: none;
    font-family: "SpaceGroteskRegular", serif;
    font-size: 20px;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: #9877BE;
}

.navbar-nav .active a {
    color: #9877BE;
    font-weight: bold;
}



.ellipse-top {
    position: absolute;
    width: 1234px;
    height: 1234px;
    background-color: transparent;
    border: 0.1px solid #3f3f3f;
    top: -555px;
    right: -175px;
    z-index: 998;
    border-radius: 50% 50%;
    pointer-events: none; /* allow clicks to pass through to elements below */
}

.ellipse-bottom {
    position: absolute;
    width: 1345px;
    height: 1345px;
    background-color: transparent;
    border: 0.1px solid #3f3f3f;
    bottom: -666px;
    right: -50px;
    z-index: 998;
    border-radius: 50% 50%;
    pointer-events: none; /* allow clicks to pass through to elements below */
}

.big-star {
    position: absolute; 
    top: 50px;
    right: 125px;
    z-index: 999;
    filter: drop-shadow(0 0 10px rgba(184, 177, 229, 0.4));
}

.big-star img {
    width: 99px; /* Adjust size as needed */
    height: auto;
    pointer-events: none; /* allow clicks to pass through to elements below */
}

.small-star {
    position: absolute;
    top: 65px;
    right: -9px;
    filter: drop-shadow(0 0 8px rgba(158, 100, 248, 0.5));
}

.small-star img {
    width: 39px; /* Adjust size as needed */
    height: auto;
    pointer-events: none; /* allow clicks to pass through to elements below */
}

.sakura-pic {
    position: absolute;
    bottom: 350px;
    left: 250px;
    z-index: 1001;/* Above blur effects but below content */
}

.sakura-pic img {
    width: 450px; /* Adjust size as needed */
    height: auto;
    pointer-events: none; /* allow clicks to pass through to elements below */
}



.star-img {
    position: absolute; 
    bottom: 177px;
    right: 55px;
    z-index: 999;
}

.star-img img {
    width: 50px; /* Adjust size as needed */
    height: auto;
    pointer-events: none; /* allow clicks to pass through to elements below */
}


/*-------------------------------------------------------------------------------------------------------------*/

/* --------------------------------------------------------------------------------------------- */
/* for bigger screens */
@media (min-width: 2560px) {
    .sidebar {
        width: 150px;
    }

    .logo {
        left: -30px;
        top: -5px;
    }

    .logo img {
        width: 200px;
    }

    .logo-icon {
        left: 45px;
    }

    #logo-page {
        font-family: "LogoFont2", sans-serif;
        position: absolute;
        top: 30px;
        left: 60px;
        color: white;
        font-size: 39px;
    }

    .blur-bottom-left {
        top: 1010px;
    }


    .blur-bottom-right {
        width: 369px;
        height: 835px;
        left: 2069.98px;
        top: 768.14px;
        rotate: 309deg;

    }

    .navbar-nav {
        gap: 50px;

    }

    .navbar-nav a {
        font-size: 26px;
    }

    .navbar-collapse {
        top: 69px;
        left: 290px;
    }

    .intro-content {
        top: 250px;
        left: 290px;
    }

    .intro-content h1{
        font-size: 82px;
        letter-spacing: 9px;
        margin: 0 0 90px 0;
    }

    .intro-content p {
        font-size: 32px;
    }


    .ellipse-top {
        width: 1500px;
        height: 1500px;
    }

    .ellipse-bottom {
        width: 1600px;
        height: 1600px;
    }

    .big-star {
        right: 205px;
        top: 105px;
    }

    .big-star img {
        width: 110px;
    }

    .small-star img {
        width: 50px;
    }

    .sakura-pic {
        bottom: 365px;
        right: 370px;
    }

    .sakura-pic img {
        width: 595px;
    }

    .des-box {
        width: 565px;
        bottom: 135px;
        right: 290px;
    }

    .ellipse-top {
        width: 1500px;
        height: 1500px;
    }

    .ellipse-bottom {
        width: 1865px;
        height: 1865px;
        bottom: -937px;
        right: -55px;
    }

    .contact-title {
        font-size: 68px;
    }

    .form-label {
        font-size: 32px;
    }

    .info-label {
        font-size: 28px;
    }

    .info-value {
        font-size: 20px;
    }

    .contact-button {
        font-size: 25px;
        position: absolute;
        top: 450px;
        top: 1000px;
    }

    .contact-container {
        top: -150px;
        right: 130px;

    }

}


/* --------------------------------------------------------------------------------------------- */
/* for mac screens 1680x1050 */
@media (max-width: 1680px) {
    .contact-container {
        position: absolute;
        top: 0;
        left: 580px;
    }

    .sakura-pic {
        position: absolute;
        bottom: 320px;
    }
}


/* --------------------------------------------------------------------------------------------- */
/* for 15.3' laptop screens */
@media (max-width: 1664px) {
    .intro-content h1 {
        font-family: "AbhayaRegular", sans-serif;
        font-size: 60px;
        letter-spacing: 8px;
        margin: 0 0 80px 0;
        font-weight: lighter;
        color: #f5f5f5;
    }

    .intro-content p {
        font-family: "FahkwangLight", sans-serif;
        font-size: 25px;
        margin: 0;
        line-height: 1.9;
    }


    .sakura-pic img {
        width: 440px;
        height: auto;
        pointer-events: none;
    }



    .big-star {
        position: absolute;
        top: 110px;
        right: 825px;
        z-index: 999;
        filter: drop-shadow(0 0 10px rgba(184, 177, 229, 0.4));
    }

}


/* --------------------------------------------------------------------------------------------- */
/* for 14' laptop screens */
@media (max-width: 1536px) {
    

    .big-star {
        right: 775px;
    }


    .sakura-pic {
        position: absolute;
        bottom: 280px;
        right: 290px;
        z-index: 1001;
    }

    .sakura-pic img {
        width: 350px;
        height: auto;
        pointer-events: none;
    }


    .star-img img {
        width: 30px;
        height: auto;
        pointer-events: none;
    }

    .star-img {
        position: absolute;
        bottom: 87px;
        right: 25px;
        z-index: 999;
    }

    .big-star {
        right: 75px;
        top: 70px;
    }

    .big-star img {
        width: 80px;
    }

    .small-star img{
        width: 30px;
    }

    .contact-container {
        position: absolute;
        top: 0;
        left: 500px;
    }

}


/* --------------------------------------------------------------------------------------------- */
/* for iPad screens */
@media (max-width: 820px) {
    .navbar-collapse {
        top: 30px;
        left: 129px;
    }

    .intro-content {
        top: 150px;
        left: 150px;
    }

    .intro-content h1 {
        margin: 0 0 0 0;
        letter-spacing: 6px;
    }

    .intro-content p {
        font-size: 20px;
    }

    .star-img {
        bottom: 95px;
        right: 15px;
    }

    .star-img img {
        width: 29px;
    }

}



/* --------------------------------------------------------------------------------------------- */
/* for mobile screens */
@media (max-width: 480px) {

    .sidebar {
        background: none;
        z-index: 1003; /* Higher than contact-container */
    }

    .logo {
        top: -5px;
        left: -15px;
        z-index: 1004; /* Higher than contact-container */
    }

    .logo img {
        width: 111px;
    }

    #logo-page {
        font-family: "LogoFont2", sans-serif;
        position: absolute;
        top: 10px;
        left: 25px;
        color: white;
        font-size: 20px;
        z-index: 1004; /* Ensure logo text is visible and clickable */
        pointer-events: auto; /* Ensure clicks work */
    }

    .logo-icon {
        z-index: 1004; /* Ensure social icons are clickable */
        pointer-events: auto; /* Ensure clicks work */
    }

    #logo-bar.logo-icon {
        position: absolute;
        bottom: 10px;
        left: 20px;
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 20px;
        z-index: 3;
        flex-wrap: nowrap;
        align-content: flex-start;
        align-items: baseline;
    }

    .logo-icon a {
        pointer-events: auto;
        z-index: 1005;
    }

    .navbar-collapse {
        top: 20px;
        left: 80px;
        z-index: 1004; /* Higher than contact-container */
        pointer-events: auto; /* Ensure clicks work */
    }

    .navbar-nav {
        gap: 25px;
    }

    .navbar-nav a {
        font-size: 15px;
        pointer-events: auto; /* Ensure links are clickable */
        position: relative;
        z-index: 1005;
    }

    .sakura-pic {
        bottom: 10px;
        left: 225px;
    }

    .sakura-pic img {
        width: 200px;
    }


    .star-img {
        bottom: 73px;
        right: 17px;
    }

    .star-img img {
        width: 19px;
    }

    .big-star {
        right: 15px;
        top: 70px;
    }

    /* Ensure contact container doesn't block navbar/logo */
    .contact-container {
        z-index: 1000; /* Lower than navbar and logo */
    }

}



/* --------------------------------------------------------------------------------------------- */
/* for mobile screens */
@media (max-width: 375px) {

    .navbar-nav {
        gap: 11px;
    }


    .sakura-pic {
        bottom: 140px;
    }

    .sakura-pic img {
        width: 150px;
    }

    .star-img {
        bottom: 45px;
        right: 1px;
    }

    .star-img img {
        width: 15px;
    }

    .logo-icon img {
        width: 29px;
    }
}


/* --------------------------------------------------------------------------------------------- */
/* for mac screens 2800x1864 */
@media (min-width: 2600px) and (max-width: 2999px) {
    .blur-top {
        position: absolute;
        width: 1466px;
    }

    .blur-bottom-left {
        position: absolute;
        width: 825px;
        height: 1400px;
        background: linear-gradient(180deg, #7F739F 0%, #2E2939 100%);
        filter: blur(220px) brightness(1.2);
        left: 32px;
        top: 1340px;
        z-index: 999;
        pointer-events: none;
    }

    .blur-bottom-right {
        width: 1069px;
        height: 1135px;
        left: 2069.98px;
        top: 1068.14px;
        rotate: 309deg;
    }

    .ellipse-top {
        width: 2100px;
        height: 1800px;
    }

    .ellipse-bottom {
        width: 2105px;
        height: 2065px;
        bottom: -937px;
        right: -355px;
    }

    .sidebar {
        width: 250px;
    }

    .logo img {
        width: 300px;
    }

    .logo-icon a, .logo-icon a img, .logo-icon img {
        pointer-events: auto;
        z-index: 3;
        width: 80px;
    }

    .logo-icon {
        left: 75px;
    }


    .navbar-nav a {
        font-size: 50px;
    }

    .navbar-collapse {
        top: 109px;
        left: 400px;
    }


    .big-star {
        right: 205px;
        top: 165px;
    }

    .big-star img {
        width: 140px;
    }

    .small-star img {
        width: 80px;
    }

    .small-star {
        position: absolute;
        top: 85px;
        right: -39px;
        filter: drop-shadow(0 0 8px rgba(158, 100, 248, 0.5));
    }


    .sakura-pic img {
        width: 715px;
    }

    .sakura-pic {
        bottom: 595px;
        left: 410px;
    }

    .contact-container {
        top: -80px;
        left: 800px;
    }

    .contact-title {
        font-size: 88px;
    }

    .form-label {
        font-size: 45px;
    }

    .message-label {
        font-size: 45px;
    }

    .form-input {
        font-size: 40px; 
        width: 150%;
    }

    .form-textarea {
        width: 150%;
    }

    .info-label {
        font-size: 35px;
    }

    .info-value {
        font-size: 30px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        align-self: flex-start;
        position: absolute;
        left: 1400px;
    }

    .contact-button {
        font-size: 45px;
        margin-top: 300px;
    }

    #logo-page {
        font-family: "LogoFont2", sans-serif;
        position: absolute;
        top: 60px;
        left: 80px;
        color: white;
        font-size: 69px;
    }

    #logo-page {
        font-family: "LogoFont2", sans-serif;
        position: absolute;
        top: 10px;
        left: 90px;
        color: white;
        font-size: 82px;
    }



}

/* --------------------------------------------------------------------------------------------- */


/* =========================================================================*/
@media (max-width: 820px) {
    .contact-container {
        width: 100%;
        padding: 0 40px;
        left: 0;
    }
    
    .contact-title {
        font-size: 36px;
    }
    
    .contact-content {
        max-width: 100%;
    }
    
    .contact-form-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .social-icons {
        align-self: flex-start;
    }
}

/* =========================================================================*/

@media (max-width: 480px) {
    .contact-container {
        padding: 0 20px;
        z-index: 1000; /* Lower than navbar and logo to allow clicks */
        top: 0;
        left: 0;
        width: 100%;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-content {
        gap: 30px;
        margin-top: 80px; /* Add top margin to avoid navbar overlap */
    }
    
    .contact-form-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .form-label,
    .message-label,
    .info-label,
    .info-value {
        font-size: 14px;
    }
    
    .contact-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .social-icons {
        align-self: flex-start;
    }
}
