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

/* COLOR SYSTEM */
:root {
    --color-main: #4F84F9;
    --color-light: #7BA5FA;
    --color-orange-light: #fac37b;
    --color-dark: #2C5DD7;
    --text-light: #ffffff;
    --text-dark: #0a0a0a;
    --hero-dim-opacity: 0;
    --orange-color: #ee894b;
    --orange-light: color-mix(in srgb, var(--orange-color) 70%, white);
}

html,
body {
    font-size: 19px;
    height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    backdrop-filter: blur(var(--text-light, 0px));
    background: rgba(255, 255, 255, 0.1);
    color: #1e3a5f;

    user-select: none;            /* standard */
    -webkit-user-select: none;    /* Safari/Chrome */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* IE/Edge */
    outline: none;       
}

.color-orange {
    color: var(--orange-color);
    -webkit-text-stroke: 0.3px black;


    padding: 4px 10px;
    border-radius: 10px;

    background: rgba(63, 62, 62, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(8px);
    /* Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);

}

.color-orange-light {
    color: var(--orange-light);
}

.pt-14 {
    padding-top: 14px;
}

.b {
    font-weight: bold;
}

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    height: auto;
    /* full height of header */
    overflow: hidden;/
}

.logo-img {
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.08);
}

.header-img {
    height: 150px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    /* background: rgba(79, 132, 249, 0.9); */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background: rgba(44, 93, 215, 0.95);
    /* darker main shade */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
}



nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}


nav a:hover {
    color: var(--background-light);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/ads.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    will-change: filter;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--hero-dim-opacity));
    transition: background-color 0.3s ease-out;
    pointer-events: none;
    z-index: 1;
}

.hero {
    position: relative;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
    transition: filter 0.2s ease-out;
}

/* Blurring overlay layer */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(var(--hero-blur, 0px));
    background: rgba(255, 255, 255, 0.1);
    /* adds that frosted glass glow */
    transition: backdrop-filter 0.3s ease-out, background 0.3s ease-out;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 20px;
    will-change: transform;
    /* help GPU accelerate */
    transition: transform 0.1s ease-out;
}


@keyframes wave {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -1000px;
    }
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.btn {
    background: var(--text-light);
    color: var(--color-main);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: large;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background: var(--background-light);
    color: var(--color-dark);
    transform: scale(1.05);
}

/* Scroll Hint */
.scroll-down {
    margin-top: 40px;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* SECTIONS BASE STYLE */
section {
    padding: 100px 50px;
    text-align: left;
    position: relative; 
    overflow: hidden; 
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}


/* SERVICES */
#services {
    background: linear-gradient(to bottom, var(--color-light), var(--color-dark));
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
}


.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    backdrop-filter: blur(var(--hero-blur, 0px));
    background: rgba(255, 255, 255, 0.1);
    transition: backdrop-filter 0.3s ease-out, background 0.3s ease-out;
    border-radius: 15px;
    padding: 25px;
    width: 280px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* IMAGE */
#image_section {
    background: linear-gradient(to bottom, var(--color-orange-light), var(--color-light));
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
    display: grid;
    gap: 12px; 
}

#image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px; /* small spacing below h2 */
}
 
.library-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;      /* remove default focus outline */
    user-select: none;  /* prevent text/image selection highlight */
} 

.library-img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    margin-bottom: 100px; 
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 5px;
}

.lightbox .prev { left: 5px; }
.lightbox .next { right: 5px; }

/* Thumbnails */
.thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
    max-width: 90%;
}


.thumbnails img {
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    object-fit: cover;
}

.thumbnails img.active {
    border-color: #fff; /* highlight current image */
}


/* ABOUT */
#about {
    background: linear-gradient(to bottom, var(--color-dark), var(--color-main));
    background-color: var(--color-dark);
    color: var(--text-light);
}

/* FOOTER */
footer {
    background-color: var(--color-main);
    color: var(--text-light);
    padding: 100px 50px;
    text-align: center;
    padding-bottom: calc(50px + env(safe-area-inset-bottom));
}

footer h2 {
    text-align: left;
}

/* ==========================
   📍 GOOGLE MAP EMBED
========================== */

.map-container {
    width: 100%;
    max-width: 800px;
    height: 350px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) brightness(1.05);
    transition: filter 0.3s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%) brightness(1.1);
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* MOBILE MENU */
@media (max-width: 900px) {
    .logo-img {
        height: 40px;
        max-width: 120px;
    }

    .logo-container {
        justify-content: flex-start;
        height: auto;
        padding: 5px 0;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    header {
        padding: 15px 25px;
    }

    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--text-light);
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        min-width: 160px;
        background: #fff;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border-radius: 10px;
        padding: 10px;
        z-index: 1100;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 10px 12px;
        color: #1e3a5f;
        text-decoration: none;
    }

    nav a+a {
        border-top: 1px solid rgba(30, 58, 95, 0.06);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 80px 20px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
        max-width: 350px;
    }

    footer {
        font-size: 0.9rem;
        padding: 50px 15px;
    }
}

@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}


[data-speed] {
    will-change: transform;
}


.section-content,
.hero-content {
    /* Improves performance by telling the browser this property will change */
    will-change: transform;
    /* Ensures content has a stacking context above any potential background layers */
    position: relative;
    z-index: 2;
}