/* =========== BASE / RESET =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --white-color: #fff;
    --dark-color: #534c9c;
    --primary-color: #282973;
    --secondary-color: #2f67b2;
    --light-pink-color: #faf4f5;
    --medium-gray-color: #ccc;

    --font-size-s:   0.9rem;
    --font-size-n:   1rem;
    --font-size-m:   1.12rem;
    --font-size-l:   1.5rem;
    --font-size-xl:  2rem;
    --font-size-xxl: 2.3rem;

    --font-weight-normal:   400;
    --font-weight-medium:   500;
    --font-weight-semibold: 600;
    --font-weight-bold:     700;

    --border-radius-s:      8px;
    --border-radius-m:      30px;
    --border-radius-circle: 50%;

    --site-max-width: 1300px;
    --navbar-height: 90px;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #2f67b2 #1a1a4e;
    scrollbar-width: thin;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a4e; }
::-webkit-scrollbar-thumb { background: #2f67b2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3d7ad4; }

body {
    animation: pageIn 0.6s ease;
}

@keyframes pageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

ul { list-style: none; }
a  { text-decoration: none; }

img { width: 100%; height: auto; }

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =========== ACCESSIBILITY =========== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    transition: top 0.3s ease;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* =========== HEADER / NAVBAR =========== */
header {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: var(--primary-color);
    left: 0;
    right: 0;
    top: 0;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background: rgba(40, 41, 115, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-img {
    height: 50px;
    width: auto;
    display: block;
    max-width: none;
    margin-top: 5px;
    transition: transform 0.3s ease;
}

.navbar .nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
    position: relative;
}

.navbar .nav-menu .nav-link:hover,
.navbar .nav-menu .nav-link.active {
    color: var(--white-color);
    background: rgba(47, 103, 178, 0.35);
}

/* =========== HERO SECTION =========== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(-45deg, #1a1a4e, #282973, #2f3d8f, #1e2a6e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

/* Floating background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: #6c63ff;
    bottom: 10%;
    left: -50px;
    animation: float2 25s ease-in-out infinite;
}

.hero-bg-shapes .shape-3 {
    width: 180px;
    height: 180px;
    background: var(--secondary-color);
    top: 50%;
    right: 30%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -40px) scale(1.15); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--navbar-height);
    color: var(--white-color);
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-section .hero-details .title {
    font-family: "arial", sans-serif;
}

.hero-section .hero-details .brand-name {
    display: block;
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
}

.hero-section .hero-details .tagline {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-top: 8px;
    max-width: 70%;
    min-height: 1.4em;
}

/* Typed cursor */
#typed-subtitle::after {
    content: '|';
    animation: blink 0.75s step-end infinite;
    margin-left: 2px;
    color: var(--secondary-color);
}

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

.hero-section .hero-details .description {
    font-size: var(--font-size-m);
    margin: 24px 0 40px;
    max-width: 70%;
    opacity: 0.9;
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
}

.hero-section .hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-m);
    font-weight: var(--font-weight-medium);
    transition: 0.3s ease;
}

/* Contact Us — outlined white */
.hero-section .hero-details .contact-us {
    color: var(--white-color);
    border-color: var(--white-color);
    background: transparent;
}

.hero-section .hero-details .contact-us:hover {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

/* Learn More — filled secondary */
.hero-section .hero-details .learn-more {
    color: var(--white-color);
    background: linear-gradient(135deg, #2f67b2, #4a8fe6);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(47, 103, 178, 0.4);
}

.hero-section .hero-details .learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(47, 103, 178, 0.55);
}

.hero-section .hero-image-wrapper {
    max-width: 500px;
    flex-shrink: 0;
    animation: heroImageFloat 6s ease-in-out infinite;
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.3; transform: translateX(-50%) translateY(14px); }
}

/* =========== ABOUT SECTION =========== */
.about-section {
    padding: 120px 0;
    background: var(--light-pink-color);
}

.about-section .section-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.about-image-wrapper {
    flex-shrink: 0;
    max-width: 550px;
    width: 100%;
}

.about-section .about-image-wrapper .about-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-s);
}

.about-section .about-details .section-title {
    padding: 0;
}

.about-section .about-details {
    max-width: 60%;
}

.about-section .about-details .text {
    line-height: 30px;
    margin: 20px 0 0;
    text-align: left;
    font-size: var(--font-size-m);
    color: #333;
}

.about-section .about-details .text:first-of-type {
    margin-top: 50px;
}

.about-section .about-details .text strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-end;
    margin: 45px 0 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(40, 41, 115, 0.1);
    border-bottom: 1px solid rgba(40, 41, 115, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    font-weight: var(--font-weight-medium);
}

.about-section .social-link-list {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.about-section .social-link-list .social-link {
    color: var(--primary-color);
    font-size: var(--font-size-l);
    transition: 0.2s ease;
}

.about-section .social-link-list .social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* =========== SCROLL REVEAL =========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0.1s; }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.25s; }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.4s; }

.reveal.visible .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* =========== SERVICES (MENU) SECTION =========== */
.menu-section {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 50px 0 100px;
}

.menu-section .menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Service card entrance animation */
@keyframes serviceCardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-section .menu-list .menu-item {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: flex-start;
    width: calc(100% / 3 - 30px);
    /* Glassmorphism card */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 24px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* entrance animation */
    opacity: 0;
    animation: serviceCardIn 0.55s ease forwards;
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.menu-section .menu-list .menu-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Stagger each card */
.menu-section .menu-list .menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-section .menu-list .menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-section .menu-list .menu-item:nth-child(3) { animation-delay: 0.25s; }
.menu-section .menu-list .menu-item:nth-child(4) { animation-delay: 0.35s; }
.menu-section .menu-list .menu-item:nth-child(5) { animation-delay: 0.45s; }
.menu-section .menu-list .menu-item:nth-child(6) { animation-delay: 0.55s; }

/* Only animate when section is in view */
.menu-section .menu-list.animate-paused .menu-item {
    animation-play-state: paused;
}

.menu-section .menu-list .menu-item .menu-image {
    max-width: 75%;
    aspect-ratio: 1;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.menu-section .menu-list .menu-item:hover .menu-image {
    transform: translateY(-6px) scale(1.04);
    filter: brightness(1.08);
}

.menu-section .menu-list .menu-item .name {
    margin: 12px 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
    transition: color 0.25s ease;
}

.menu-section .menu-list .menu-item:hover .name {
    color: #b8caff;
}

.menu-section .menu-list .menu-item .text {
    font-size: var(--font-size-m);
    opacity: 0.85;
    line-height: 1.6;
}

/* =========== MEMBERS (TESTIMONIALS) SECTION =========== */
.testimonials-section {
    padding: 50px 0 100px;
    background: var(--light-pink-color);
}

.testimonials-section .testimonial {
    display: flex;
    padding: 35px;
    user-select: none;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

/* Member photo wrapper with LinkedIn overlay */
.member-photo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.testimonials-section .testimonial .user-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
    border: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-origin: border-box;
    background-clip: content-box, border-box;
    transition: transform 0.3s ease;
}

.testimonial:hover .user-image {
    transform: scale(1.05);
}

.member-linkedin {
    position: absolute;
    bottom: -5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: #0077b5;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.member-photo-wrapper:hover .member-linkedin {
    opacity: 1;
    transform: scale(1);
}

.member-linkedin:hover {
    background: #005a8c;
}

.testimonials-section .testimonial .name {
    margin-bottom: 16px;
    font-size: var(--font-size-m);
}

.testimonials-section .testimonial .user-about {
    line-height: 25px;
    font-style: italic;
    color: #555;
}

.testimonials-section .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    opacity: 1;
    background: var(--secondary-color);
}

.testimonials-section .swiper-slider-button {
    margin-top: -50px;
    color: var(--secondary-color);
    transition: 0.3s ease;
}

.testimonials-section .swiper-slider-button:hover {
    color: var(--primary-color);
}

.testimonials-section .slider-wrapper {
    overflow: hidden;
    margin: 0 60px 50px;
}

/* =========== GALLERY SECTION =========== */
.gallery-section {
    padding: 50px 0 100px;
    background-color: var(--light-pink-color);
}

.gallery-section .gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    overflow: hidden;
}

.gallery-section .gallery-list .gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-s);
    width: calc(100% / 3 - 22px);
    position: relative;
}

.gallery-section .gallery-item .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: 0.4s ease;
}

.gallery-section .gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery hover overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 41, 115, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: var(--border-radius-s);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* =========== LIGHTBOX =========== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 201;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========== CONTACT SECTION =========== */
.contact-section {
    background: var(--light-pink-color);
    padding: 50px 0 100px;
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .contact-info-list {
    flex: 1;
    min-width: 0;
}

.contact-section .contact-info-list .contact-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m);
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-section .contact-info-list .contact-info p {
    word-break: break-word;
    color: #333;
}

.contact-section .contact-info-list .contact-info p a {
    color: inherit;
    transition: color 0.2s ease;
}

.contact-section .contact-info-list .contact-info p a:hover {
    color: var(--secondary-color);
}

.contact-section .contact-form {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(40, 41, 115, 0.08);
}

.contact-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    outline: none;
    margin-bottom: 16px;
    background-color: var(--light-pink-color);
    border-radius: var(--border-radius-s);
    border: 1px solid var(--medium-gray-color);
    font-size: var(--font-size-n);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.contact-section .contact-form .form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(47, 103, 178, 0.15);
}

.contact-section .contact-form textarea.form-input {
    height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.contact-section .contact-form .submit-button {
    padding: 14px 40px;
    margin-top: 10px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: linear-gradient(135deg, #282973, #2f67b2);
    border-radius: var(--border-radius-m);
    border: none;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(47, 103, 178, 0.4);
    font-family: inherit;
}

.contact-section .contact-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(47, 103, 178, 0.55);
}

.contact-section .contact-form .submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form status messages */
.form-status {
    font-size: var(--font-size-s);
    margin-bottom: 8px;
    min-height: 20px;
    border-radius: var(--border-radius-s);
    padding: 0;
    transition: all 0.3s ease;
}

.form-status.success,
.form-status.form-status--success {
    color: #1a7f4b;
    background: #d4f7e7;
    padding: 10px 14px;
}

.form-status.error,
.form-status.form-status--error {
    color: #b91c1c;
    background: #fee2e2;
    padding: 10px 14px;
}

/* =========== FOOTER =========== */
.footer-section {
    padding: 30px 0;
    background-color: var(--dark-color);
    width: 100%;
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-section :where(.copyright-text, .social-link, .policy-link) {
    color: var(--white-color);
    transition: 0.3s ease;
}

.footer-section .copyright-text {
    font-size: var(--font-size-s);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-s);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-section .social-link-list {
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link {
    font-size: var(--font-size-l);
}

.footer-section .social-link-list .social-link:hover,
.footer-section .policy-text .policy-link:hover {
    color: var(--secondary-color);
}

.footer-section .policy-text .seperator {
    margin: 0 5px;
    color: var(--white-color);
}

/* =========== BACK TO TOP =========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 50;
    box-shadow: 0 4px 18px rgba(40, 41, 115, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 6px 25px rgba(40, 41, 115, 0.6);
    transform: translateY(-3px);
}

/* =========== POLICY MODALS =========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-overlay.active { display: block; }

.policy-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, 92vw);
    max-height: 82vh;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    z-index: 101;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.policy-modal.active { display: flex; }

.policy-modal .modal-header {
    padding: 28px 28px 0;
    flex-shrink: 0;
    position: relative;
}

.policy-modal .modal-header h2 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    padding-right: 40px;
}

.policy-modal .modal-date {
    padding: 6px 0 16px;
    font-size: var(--font-size-s);
    color: #888;
    border-bottom: 1px solid var(--medium-gray-color);
}

.modal-scroll-track {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-body {
    overflow-y: scroll;
    padding: 20px 20px 28px 28px;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-body::-webkit-scrollbar { display: none; }

.modal-body h3 {
    color: var(--primary-color);
    margin: 18px 0 6px;
    font-size: var(--font-size-m);
}

.modal-body p {
    line-height: 1.7;
    font-size: var(--font-size-s);
    color: #444;
}

.modal-body p a {
    color: var(--secondary-color);
}

.modal-scroll-bar-track {
    width: 6px;
    flex-shrink: 0;
    background: #e8e8e8;
    border-radius: 4px;
    margin: 12px 8px 12px 4px;
    position: relative;
    overflow: hidden;
}

.modal-scroll-bar-thumb {
    width: 100%;
    background: var(--secondary-color);
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    min-height: 30px;
    cursor: grab;
    transition: background 0.2s ease;
}

.modal-scroll-bar-thumb:hover,
.modal-scroll-bar-thumb:active {
    background: var(--primary-color);
    cursor: grabbing;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: var(--font-size-l);
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1;
}

.modal-close:hover { color: var(--primary-color); }

/* =========== REDUCED MOTION =========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-section {
        animation: none;
        background-size: 100% 100%;
    }
    .reveal { opacity: 1; transform: none; }
    .reveal-child { opacity: 1; transform: none; }
}

/* =========== RESPONSIVE: TABLET (max 1024px) =========== */
@media screen and (max-width: 1024px) {
    :root {
        --font-size-s:   0.85rem;
        --font-size-n:   0.95rem;
        --font-size-m:   1rem;
        --font-size-l:   1.3rem;
        --font-size-xl:  1.6rem;
        --font-size-xxl: 1.9rem;
    }

    body.show-mobile-menu { overflow: hidden; }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0; top: 0;
        height: 100vh; width: 100vw;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }

    .navbar :where(#menu-close-button, #menu-open-button) {
        font-size: var(--font-size-l);
        display: block;
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
        color: var(--dark-color);
    }

    .navbar #menu-open-button {
        color: var(--white-color);
    }

    .navbar .nav-menu {
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background-color: #ffffff !important;
        background: #ffffff !important;
        transition: left 0.3s ease;
        z-index: 999;
        gap: 0;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    }

    body.show-mobile-menu .navbar .nav-menu { left: 0; }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .navbar .nav-menu .nav-link:hover {
        color: var(--white-color);
        background: var(--secondary-color);
    }

    .navbar .nav-menu .nav-link.active {
        background: rgba(47, 103, 178, 0.15);
        color: var(--primary-color);
    }

    /* Hero */
    .hero-section .section-content {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding: 120px 20px 60px;
        gap: 30px;
    }

    .hero-section .hero-image-wrapper { max-width: 300px; }

    .hero-section .hero-details .tagline,
    .hero-section .hero-details .description {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons { justify-content: center; }

    /* About */
    .about-section .section-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .about-section .about-details { max-width: 100%; }

    .about-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .about-image {
        width: 100%;
        height: auto;
    }

    .stats-row {
        gap: 30px;
    }

    /* Services */
    .menu-section .menu-list .menu-item {
        width: calc(50% - 24px);
    }

    /* Gallery */
    .gallery-section .gallery-list .gallery-item {
        width: calc(50% - 16px);
    }

    /* Contact */
    .contact-section .section-content {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer */
    .footer-section .section-content {
        justify-content: center;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Swiper */
    .testimonials-section .swiper-slider-button { display: none; }
    .testimonials-section .slider-wrapper { margin: 0 0 30px; }
}

/* =========== RESPONSIVE: MOBILE (max 640px) =========== */
@media screen and (max-width: 640px) {
    :root {
        --font-size-s:   0.8rem;
        --font-size-n:   0.9rem;
        --font-size-m:   0.95rem;
        --font-size-l:   1.2rem;
        --font-size-xl:  1.4rem;
        --font-size-xxl: 1.6rem;
    }

    header,
    .footer-section {
        width: 100%;
        left: 0;
        right: 0;
    }

    .section-title { padding: 40px 0 60px; }

    /* Hero */
    .hero-section .section-content {
        padding: 100px 20px 50px;
        gap: 20px;
    }

    .hero-section .hero-image-wrapper { max-width: 220px; }

    .hero-section .hero-details .buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-section .hero-details .button {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    /* About */
    .about-section { padding: 60px 0; }

    .about-image-wrapper {
        flex-shrink: 0;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .about-section .about-image-wrapper .about-image {
        width: 100%;
        height: auto;
    }

    .about-section .about-details .text {
        margin: 16px 0 0;
        font-size: var(--font-size-n);
        line-height: 1.8;
    }

    .about-section .about-details .text:first-of-type {
        margin-top: 24px;
    }

    .stats-row {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-suffix {
        font-size: 1.6rem;
    }

    /* Services — single column */
    .menu-section .menu-list .menu-item {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    /* Members */
    .testimonials-section .testimonial .user-image {
        width: 130px;
        height: 130px;
    }

    .member-photo-wrapper {
        margin-bottom: 24px;
    }

    /* Gallery */
    .gallery-section .gallery-list .gallery-item {
        width: 100%;
    }

    /* Contact */
    .contact-section .section-content {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .contact-section .contact-info-list { order: 1; }
    .contact-section .contact-form { order: 2; padding: 24px 20px; }

    .contact-section .contact-info-list .contact-info { gap: 12px; }

    .contact-section .contact-form .form-input {
        font-size: var(--font-size-n);
    }

    .contact-section .contact-form .submit-button {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-section .section-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Lightbox */
    .lightbox { padding: 20px; }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}
