
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: white;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    overflow-x: hidden;
}


.aboutus-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 0;
}

.aboutus-background {
    display: block;
    width: 100%;
    max-width: 100vw;
    object-fit: cover;
}


.image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(to bottom, transparent 40%, rgba(42, 120, 189, 0.7) 100%);
    backdrop-filter: blur(15px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 40%, black 90%);
    mask-image: linear-gradient(to bottom, transparent 40%, black 90%);
}

.aboutus-text {
    position: absolute;
    bottom: 12%;
    left: 70%;
    transform: translateX(-50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.3vw;
    z-index: 10;
    width: 100%;
    color: white;
}

.about {
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 12vw;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.us {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 16vw;
    font-weight: 500;
    text-transform: lowercase;
    line-height: 1;
    margin-bottom: 2px;
}

.star {
    top: 60%;
    position: absolute;
    z-index: 11;
    pointer-events: none;
}

.big-star { width: 7%; bottom: 30%; left: 33%; }
.small-star { width: 4%; bottom: 36%; left: 30%; }


.welcome-section {
    margin: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome {
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    font-style: normal;
    text-align: center;
}

.emphasis {
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 2.5rem;
    font-style: normal;
    text-align: center;
}

.quote {
    font-family: serif;
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    margin-bottom: 5vh;
}

.welcome-section p {
    font-family: 'Kantumruy Pro', sans-serif;
    font-style: italic;
    width: 83%;
    max-width: 100%;
    font-size: 1.5rem;
    text-align: center;
}


.her-story {
    width: 100%;
    margin-top: 9%;
    margin-bottom: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.her-story-header {
    position: relative;
}

.her {
    font-family: 'Kantumruy Pro', sans-serif;
    color: #FD9AC8;
    font-size: 5.3rem;
    font-weight: 600;
    font-style: italic;
}

.story {
    font-family: 'Source Serif 4', serif;
    color: #1C2B4B;
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -3px;
}

.story-star-top {
    position: absolute;
    top: -25%;
    right: -30%;
    width: 30%;
    max-width: 100%;
}

.story-star-top2 {
    position: absolute;
    top: -45%;
    right: -40%;
    width: 20%;
    max-width: 100%;
}

.her-story-content {
    display: flex;
    width: 100%;
    align-items: center; 
}

.her-story-text {
    flex: 1;
    padding-left: 10%;
    padding-right: 5%;
}

.her-story-text p {
    text-align: justify;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 20px;
    width: 120%;
    font-style: normal;
}

.her-story-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.her-story-image img {
    width: 75%;
    max-width: 70%;
    height: auto;
    display: block; 
}


.star-banner {
    width: 100%;
    height: 310px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 23%; 
}

.star-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    filter: blur(4px);
    z-index: -1;
    background: #1C2B4B;
    background: linear-gradient(180deg, rgba(28, 43, 75, 0.91) 80%, rgba(255, 255, 255, 1) 100%);
}

.banner-title {
    color: white;
    font-family: 'Source Serif Pro', serif;
    font-style: oblique;
    font-weight: bold;
    padding-top: 6%;
    font-size: 3rem;
    z-index: 3;
}


.right-stars img:nth-child(1) { width: 4vw; transform: translate(28vw, -4vw); }  
.right-stars img:nth-child(2) { width: 5vw; transform: translate(22vw, -9vw); }
.right-stars img:nth-child(3) { width: 3.5vw; transform: translate(23vw, -7vw); }


.left-stars img:nth-child(1) { width: 5vw; transform: translate(-21vw, -9vw); }
.left-stars img:nth-child(2) { width: 3.5vw; transform: translate(-30vw, -13vw); }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.side { width: 23%; aspect-ratio: 3/4; }
.gallery-item.middle { width: 32%; aspect-ratio: 3/4; transform: scale(1.1); }


.carousel-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;         
    max-width: 100%;  
    margin: 80px auto 40px auto;
    text-align: center; 
}

.carousel-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    width: 100%; 
}
.contact-section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 3% 5%;
    max-width: 100%;
    margin: 0 auto;
}


.gallery {
    display: flex;       
    gap: 15px;
    flex: 1 1 480px;     
    max-width: 600px;
    min-width: 280px;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.gallery-wrapper-item {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-wrapper-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


.contact-form-section {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.partner-text {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
}

.email-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #1C2B4B;
    font-style: italic;
    margin-bottom: 30px;
}


.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    text-align: left; 
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #1C2B4B;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    outline: none;
}

.form-textarea {
    min-height: 160px;
    resize: none;
}


.submit-btn {
    background-color: #1C2B4B;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 14px 40px;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    background-color: #a7c7e7;
    color: #1C2B4B;
    box-shadow: 0 6px 16px rgba(167, 199, 231, 0.45);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.form-status {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.2em;
}

.form-status--success {
    color: #2e7d4f;
}

.form-status--error {
    color: #d1293d;
}


@media (max-width: 768px) {

    
    .aboutus-background { height: 70vh; object-fit: cover; } 
    .big-star { width: 14%; top: 68%; left: 27%; }
    .small-star { width: 10%; top: 63%; left: 22%; }
    .aboutus-text { left: 67%; }

    
    .welcome-section { margin: 5vh 0; }
    .welcome-section p { font-size: 1.2rem; width: 90%; }
    .emphasis { font-size: 2rem; }

    
    .her-story-content { flex-direction: column !important; padding: 0; gap: 0; width: 100%; align-items: center; }
    .her-story-header { position: relative; text-align: center; margin-bottom: 15px; }
    .her { font-size: 3.5rem !important;}
    .story { font-size: 4rem !important; letter-spacing: -2px; }
    .story-star-top { width: 15%; top: -35%; right: -27%; }
    .story-star-top2 { width: 24%; top: -17%; right: -22%; }
    .her-story-text { width: 100% !important; padding: 0 20px !important; margin-bottom: 40px;
         order: 1; display: flex; justify-content: center; 
        }
    .her-story-text p { font-size: 1.1rem !important; text-align: center !important; max-width: 90%; }
    .her-story-image { width: 100% !important; order: 2; }
    .her-story-image img { width: 100% !important; max-width: 100% !important; border-radius: 0; }

    
    .star-banner { height: 167px !important; overflow: visible !important; margin-bottom: 300px !important; }
    .image-gallery {
        position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; 
        top: 120% !important;
        }
    .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
    .banner-title { font-size: 1.8rem; padding-top: 15% ;}
    
    .right-stars img:nth-child(1) { width: 10vw; transform: translate(46vw, -17vw); }
    .right-stars img:nth-child(2) { width: 8vw; transform: translate(34vw, -7vw); }
    .right-stars img:nth-child(3) { width: 5vw; transform: translate(34vw, -13vw); }

    
    .left-stars img:nth-child(1) { width: 8vw; transform: translate(-35vw, -17vw); }
    .left-stars img:nth-child(2) { width: 6vw; transform: translate(-47vw, -25vw); }
    
    .carousel-text p { font-size: 1.2rem; width: 116%;}

    
    .gallery {
        flex: none !important;width: 100% !important; display: flex; flex-direction: row; gap: 12px; padding: 0 10px; }
    .gallery-column { gap: 12px; flex: 1; }

    .gallery-wrapper-item { border-radius: 15px; }

    
    .contact-section-container { flex-direction: column !important; align-items: center; padding: 40px 0; gap: 50px; }
    .contact-form-section { width: 100% !important; max-width: 90% !important; margin: 0 auto;
         display: flex; flex-direction: column; align-items: center; 
        }
    .contact-form { width: 100%; display: flex; flex-direction: column; align-items: center; }
    form { width: 100%; }
    .form-row { flex-direction: column; gap: 0; }
    .submit-btn { width: 100% !important; margin: 20px auto 0 auto; }
}

/* ==============================================================
   DESKTOP ONLY — hero, welcome and Her Story, laid out like the
   mockup. Phones keep their own layout from the block above.
   ============================================================== */
@media (min-width: 769px) {

    /* --- Hero: photo stays clear, soft blue fade only along the bottom --- */
    .image-wrapper { width: 100%; }
    .aboutus-background { width: 100%; max-width: none; height: min(52vw, 85vh); object-fit: cover; object-position: center 40%; }
    .image-wrapper::after {
        background: linear-gradient(to bottom, transparent 65%, rgba(42, 120, 189, 0.5) 100%);
        backdrop-filter: blur(8px);
        -webkit-mask-image: linear-gradient(to bottom, transparent 72%, black 100%);
        mask-image: linear-gradient(to bottom, transparent 72%, black 100%);
    }
    .aboutus-text { left: auto; right: 4%; bottom: 9%; transform: none; width: auto; }
    .star { top: auto; }
    .big-star { width: 11%; left: 7%; bottom: 12%; }
    .small-star { width: 7%; left: 3%; bottom: 40%; }

    /* --- Welcome --- */
    .welcome-section { margin: clamp(28px, 4vw, 56px) auto 0; }
    .welcome { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.2; }
    .emphasis { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.25; }
    .quote {
        font-family: 'Source Serif 4', serif;
        font-style: italic;
        font-size: clamp(1rem, 1.4vw, 1.3rem);
        letter-spacing: 0;
        margin-bottom: clamp(28px, 4vw, 56px);
    }
    .welcome-section p { width: 86%; max-width: 1150px; font-size: clamp(1.1rem, 1.7vw, 1.55rem); line-height: 1.45; }

    /* --- Her Story: heading, then text (left) beside a large photo (right) --- */
    .her-story { margin-top: clamp(70px, 9vw, 140px); }
    .her-story-header { margin-bottom: clamp(16px, 2.5vw, 36px); }
    .her { font-size: clamp(3.5rem, 7vw, 6.5rem); margin-right: 0.15em; }   /* "Her Story", not "HerStory" */
    .story { font-size: clamp(4rem, 8vw, 7.5rem); letter-spacing: -2px; }
    .story-star-top { width: 26%; top: -40%; right: -24%; }
    .story-star-top2 { width: 15%; top: -62%; right: -34%; }

    .her-story-content { align-items: center; }
    .her-story-text { flex: 1; padding: 0 3% 0 7%; }
    .her-story-text p {
        width: auto;
        max-width: 720px;
        font-family: 'Kantumruy Pro', sans-serif;
        font-style: italic;
        font-size: clamp(1.15rem, 2vw, 1.8rem);
        line-height: 1.45;
        margin: 0;
    }
    .her-story-image { flex: 0 0 45%; align-self: flex-end; }
    .her-story-image img { width: 100%; }
}


html.dark-mode body {
    background-color: #0f172a;
    color: #e5e7eb;
}

html.dark-mode .welcome-section p,
html.dark-mode .her-story-text p,
html.dark-mode .carousel-text p {
    color: #cbd5e1;
}

html.dark-mode .story {
    color: #e5e7eb;
}

html.dark-mode .form-input,
html.dark-mode .form-textarea {
    background-color: #1c2b4b;
    color: #ffffff;
    border-color: #3a5a82;
}

html.dark-mode .form-label,
html.dark-mode .partner-text {
    color: #cbd5e1;
}

/* --- Hover lift on the Submit button --- */
.submit-btn {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover:not(:disabled),
.submit-btn:focus-visible {
    transform: translateY(-2px);
}
