/* =========================
   VARIABLES (COLOR PALETTE, SHADOWS)
   ========================= */
:root {
    --main-bg: #F4F6F8;
    --deep-teal: #008080;
    --sky-blue: #00B1F2;
    --slate-gray: #708090;
    --gold: #00B1F2;
    --gold-hover: #008080;
    --soft-grey: #F4F6F8;
    --text-main: #2C2C2C;
    --text-alt: #708090;
    --white: #ffffff;
    --highlight: #F4F6F8;
    --shadow-lg: 0 8px 32px rgba(0, 177, 242, 0.15), 0 2px 4px rgba(0, 177, 242, 0.05);
}


/* =========================
   GLOBAL RESET / SAFEGUARDS
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    /* background: var(--main-bg); */
    /* color: var(--text-main); */
    margin: 0;
    min-height: 100vh;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}



img,
picture,
video,
iframe {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    cursor: pointer;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
}

/* =========================
   CONTAINER UTILITY
   ========================= */
.container {
    /* width: min(95%, 1200px); */
    padding-inline: 1rem;
    margin-inline: auto;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    backdrop-filter: blur(14px);
    background: rgba(49, 46, 129, 0.94);
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.09);
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 3%;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo img {
    height: auto;
    max-width: clamp(100px, 25vw, 150px);
    object-fit: contain;
    vertical-align: middle;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2.3rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--text-main);
    font-weight: 600;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    transition: color 0.2s;
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a:focus {
    color: var(--gold);
}

/* =========================
   DROPDOWN DESKTOP
   ========================= */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(82, 78, 110, 0.98);
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 99;

    list-style: none;
    /* remove bullets */
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    padding: 0;
    text-align: left;
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* =========================
   MOBILE NAVBAR
   ========================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(24, 19, 58, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.33s ease;
        backdrop-filter: blur(10px);
        z-index: 99;
        padding: 0 0.5rem;
    }

    .nav-links.open {
        max-height: 480px;
        padding-bottom: 1rem;
    }

    .nav-links li {
        margin: 0.9rem 0;
        text-align: center;
    }

    .nav-links li a {
        color: #ffffff;
        font-size: 1.15rem;
        font-weight: 600;
        display: block;
        padding: 0.3rem 0;
    }

    /* Dropdown in mobile: click-to-open */
    .dropdown-content {
        position: relative;
        display: none;
        background: none;
        box-shadow: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }
}

/* =========================
   GLASSMORPHISM EFFECT
   ========================= */
.glass {
    background: rgba(255, 255, 255, 0.665);
    backdrop-filter: blur(11px);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5%;
    min-height: 100dvh;
    background-image: url('photo/hero_img.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
    text-align: right;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero-content .accent {
    color: var(--gold);
    /* highlight keyword */
}

.hero-content p {
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    color: var(--text-alt);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: 0;
    max-width: 560px;
}

/* Call To Action Button */
.cta-btn {
    /* background: linear-gradient(90deg, var(--gold), var(--purple)); */
    background: #57C5C0;
    color: var(--white);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 5vw, 2.5rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 18px rgba(0, 177, 242, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    min-width: 160px;
    text-align: center;
}

.cta-btn:hover,
.cta-btn:focus {
    /* background: linear-gradient(90deg, var(--purple), var(--gold)); */
    background: #57C5C0;
    transform: translateY(-3px) scale(1.03);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 480px;

    }
}

@media (max-width: 768px) {
    .hero {
        display: flow;
        justify-content: center;
        padding: 3rem 1.5rem;
        text-align: center;
        /* background-position: left; */
        background-image: url(/photo/mobile_hero.jpeg);
    }

    .hero-content {
        text-align: left;
        max-width: 90%;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        color: white;
    }

    .hero-content p {
        font-size: 1rem;
        color: white;
    }

    .cta-btn {
        width: 100%;
        padding: 0.9rem;
        background-color: cadetblue;
    }
}

/* =========================
   SECTION HEADINGS
   ========================= */
section h2 {
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.accent {
    color: var(--sky-blue);
}

/* =========================
   SERVICES SECTION
   ========================= */
.services {
    padding: clamp(3rem, 5vw, 4rem) 2vw;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 2rem;
}

.service-card {
    flex: 1 1 calc(25% - 2rem);
    /* 4 per row */
    max-width: calc(25% - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background: var(--white);
    box-shadow: 0 2px 6px var(--soft-grey);
}

.service-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--deep-teal);
    margin-top: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.service-card p {
    font-size: clamp(0.9rem, 2.3vw, 1rem);
    color: var(--text-alt);
}

/* Tablet - 2 cards per row */
@media screen and (max-width: 992px) {
    .service-card {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

/* Mobile - 1 card per row */
@media screen and (max-width: 576px) {
    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* =========================
   MISSION SECTION
   ========================= */
.mission {
    /* background: linear-gradient(122deg, #f3f0ff 60%, var(--main-bg) 100%); */
    color: var(--deep-teal);
    margin: 2.4rem 2vw;
    padding: 3.5rem 2vw;
    border-radius: 28px;
    /* box-shadow: var(--shadow-lg); */
}

.mission p {
    text-align: center;
    font-size: clamp(1rem, 2.3vw, 1.21rem);
    line-height: 1.7;
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================
   CLIENTS SECTION (LOGO CAROUSEL)
   ========================= */
.clients {
    background: linear-gradient(85deg, #f3f3fa 35%, #e0e7ff 120%);
    padding: clamp(3rem, 5vw, 4rem) 2vw;
}

.clients h2 {
    color: var(--deep-teal);
}

.carousel {
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 2.7rem;
    animation: scroll 17s linear infinite;
    align-items: center;
    flex-wrap: nowrap;
    /* keep smooth scroll on narrow */
    justify-content: flex-start;
}

.carousel-track img {
    max-height: 120px;
    min-width: 120px;
    /* filter: grayscale(85%) contrast(1.1) brightness(1.05) drop-shadow(0 2px 4px rgba(96, 65, 152, 0.13)); */
    transition: filter 0.23s, transform 0.18s;
    border-radius: 12px;
    background: var(--white);
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 9px 0 #9ca3af32;
}

/* .carousel-track img:hover {
    filter: none;
    transform: scale(1.09);
} */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2.7rem));
    }
}

/* =========================
   WHY CHOOSE US SECTION
   ========================= */
.why-us {
    /* background: linear-gradient(112deg, #ede9fe 35%, #fff 100%); */
    margin: 2.6rem 2vw;
    padding: 4rem 2vw;
    border-radius: 24px;
    /* box-shadow: var(--shadow-lg); */
}

.why-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.2rem;
}

.why-feature {
    background: var(--white);
    box-shadow: 0 3px 16px 0 var(--slate-gray);
    border-radius: 16px;
    padding: 1.7rem 1rem;
    text-align: center;
    flex: 1 1 calc(33.33% - 1rem);
    min-width: 220px;
    max-width: 300px;
    transition: transform 0.19s;
}

.why-feature:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 2px 10px 0 var(--gold);
}

.why-icon {
    margin: 0 auto 1rem;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    box-shadow: 0 2px 5px #7c3aed12;
    background: var(--soft-grey);
}

.why-icon img {
    width: 25px;
    height: 25px;
}

.why-feature h4 {
    margin: 0.5rem 0;
    color: var(--deep-teal);
    font-size: clamp(1rem, 2.5vw, 1.07rem);
    font-weight: 700;
}

.why-feature p {
    color: var(--text-alt);
    font-size: clamp(0.85rem, 2vw, 0.97rem);
}

/* =========================
   FOOTER
   ========================= */
/* Root footer styles */
footer {
    background-color: #152c40;
    color: var(--white, #fff);
    letter-spacing: 1px;
    /* border-top-left-radius: 17px; */
    /* border-top-right-radius: 17px; */
    padding: 2.8rem 1rem 2rem;
    /* extra bottom for bottom section */
}

/* Container to align logo, links, and social icons */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Left logo */
.footer-logo img {
    width: 130px;
    height: auto;
    /* filter: brightness(0) invert(1); */
    transition: filter 0.3s ease;
}


/* Navigation links */
.footer-nav {
    flex: 1 1 50%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 1rem 1.5rem;
}

.footer-links li a {
    color: var(--white, #fff);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover,
.footer-links li a:focus {
    color: #ffd700;
    /* Gold highlight */
    outline: none;
}

/* Social media links to the right or below */
.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex: 1 1 20%;
}

/* Social icons */
.footer-social a {
    color: var(--white, #fff);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

}

.footer-social a:hover,
.footer-social a:focus {
    color: #ffd700;
    transform: scale(1.1);
    outline-offset: 3px;
    outline: none;
    cursor: pointer;
}

/* Bottom copyright section */
.footer-bottom {
    max-width: 1200px;
    margin: 0.8rem auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.8rem;
    text-align: center;
}

.footer-copy {
    margin: 0;
    color: #ccc;
    font-weight: 500;
    user-select: none;
    font-size: 0.9rem;
}

/* Responsive adjustments */

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        text-align: center;
    }

    .footer-nav {
        flex: 1 1 100%;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
        flex: 1 1 100%;
    }

    .footer-logo {
        margin-bottom: 0.8rem;
    }
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */
@media (max-width: 1080px) {

    .service-cards,
    .why-features {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .why-feature {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* @media (max-width: 900px) {
  .navbar .container {
    padding: 20px 10px 20px 65px;
  }
} */

@media (max-width: 650px) {
    .hero-content {
        padding: 2.3rem 1vw;
    }

    .hero-content h1 {
        font-size: clamp(1.3rem, 5vw, 1.9rem);
    }

    .hero-content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    footer {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .carousel-track img {
        min-width: 90px;
        max-height: 55px;
    }

    .why-feature {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.85rem;
        padding: 0.9rem 0;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.1rem;
    }

    .logo img {
        max-width: 100px;
    }

    .nav-links li a {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.6rem;
    }
}


/* =========================
   About Us Page
   ========================= */
/* Shared layout improvements */
.section-box {
    margin: 0;
    padding: 4rem 1rem;
    border-radius: 0;
    text-align: center;
}

/* About Banner */
.about-banner {
    padding: 4rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.about-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.about-banner p {
    font-size: 1.2rem;
    /* max-width: 700px; */
    margin: 1rem auto 0;
    color: #2C2C2C;
    text-align: justify;
}

/* Mission */
.mission p {
    max-width: 800px;
    margin: 1rem auto 0;
    font-size: 1.15rem;
    color: #2C2C2C;
}

/* Core Values Grid */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.value-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 177, 242, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 177, 242, 0.2);
}

.value-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.value-box p {
    font-size: 1rem;
    font-weight: 500;
    color: #2C2C2C;
}

/* Accent Color */
.accent {
    color: #00B1F2;
    /* Sky Blue (Primary Color) */
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .about-banner h1 {
        font-size: 2rem;
    }

    .about-banner p,
    .mission p {
        font-size: 1rem;
        text-align: justify;

    }
}



.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgb(0 0 0 / 0.1);
}

.feature-slide {
    perspective: 1000px;
    height: 350px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.feature-slide:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.flip-card-back {
    background: #007bff;
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    padding: 20px;
    box-shadow: inset 0 0 40px #0056b3aa;
}

.flip-card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .feature-slide {
        height: 300px;
    }

    .flip-card-back h3 {
        font-size: 1.25rem;
    }
}

/*  */
/*  */
/*  */
.client-logo {
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;

}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}


/*  */
/*  */
/*  */
/* Blog container and posts */
.blog-container {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 6px 25px rgb(0 0 0 / 0.1);
}

.blog-post img {
    width: 40%;
    max-width: 100%;
    border-radius: 8px;
    /* object-fit: cover; */
    user-select: none;
    flex-shrink: 0;
    height: 256px;
}

.blog-post-content {
    flex: 1;
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #152c40;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    user-select: none;
}

.blog-post-excerpt {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-post-fullcontent {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: none;
    /* hidden by default */
}

/* Read More toggle link */
.blog-post-toggle {
    cursor: pointer;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    user-select: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.blog-post-toggle:hover,
.blog-post-toggle:focus {
    color: #ffd700;
    outline: none;
}

@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }

    .blog-post img {
        width: 100%;
        max-height: 180px;
        object-fit: cover;
        margin-bottom: 1rem;
    }
}

.back-btn {
    /* Already inline styles above, but place here if better */
    user-select: none;
}

.blog-post.single-view {
    flex-direction: column;
    /* Full width content */
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
    padding: 2rem;
    margin-bottom: 4rem;
}

.blog-post.single-view img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
}
.floats {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 85px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
}

.blog-post.single-view .blog-post-excerpt {
    display: none;
    /* hide excerpt in full view */
}

.blog-post.single-view .blog-post-fullcontent {
    display: block !important;
    /* show full content */
    margin-bottom: 2rem;
}