@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --nav-height: 90px;
    --footer-height: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #111;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: var(--footer-height);
}

/* ================= LIVE BACKGROUND ================= */
.live-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.65;
    mix-blend-mode: normal;
}

.s1 { background:#1e3a8a; top:10%; left:10%; animation:move1 14s linear infinite; }
.s2 { background:#7c2d12; top:60%; left:15%; animation:move2 16s linear infinite; }
.s3 { background:#4c1d95; top:20%; left:60%; animation:move3 18s linear infinite; }
.s4 { background:#065f46; top:65%; left:65%; animation:move4 20s linear infinite; }

@keyframes move1 {
    0% { transform: translate(0); }
    50% { transform: translate(260px,180px); }
    100% { transform: translate(0); }
}
@keyframes move2 {
    0% { transform: translate(0); }
    50% { transform: translate(-300px,-220px); }
    100% { transform: translate(0); }
}
@keyframes move3 {
    0% { transform: translate(0); }
    50% { transform: translate(220px,-260px); }
    100% { transform: translate(0); }
}
@keyframes move4 {
    0% { transform: translate(0); }
    50% { transform: translate(-260px,200px); }
    100% { transform: translate(0); }
}

/* ================= POP ANIMATION ================= */
.pop {
    opacity: 0;
    transform: scale(0.95) translateY(18px);
    animation: popUp 0.8s ease-out forwards;
}

@keyframes popUp {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ================= LAYER FIX ================= */
section,
.navbar,
footer {
    position: relative;
    z-index: 2;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 20px;
    inset-inline: 0;
    margin-inline: auto;

    width: min(1200px, calc(100% - 40px));
    padding: 14px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 22px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 1000;
}

/* LOGO */
.logo a {
    display: inline-flex;
    align-items: center;
    padding: 10px;
    border-radius: 999px;
    transition: 0.35s ease;
}

.logo img {
    height: 34px;
    transform: scale(1.25);
}

.logo a:hover {
    background: linear-gradient(
        135deg,
        rgba(76,29,149,0.18),
        rgba(30,58,138,0.18)
    );
}

/* NAV LINKS */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 14px;
}

.navbar ul li a {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    transition: 0.35s ease;
}

.navbar ul li a:hover {
    background: linear-gradient(
        135deg,
        rgba(30,58,138,0.18),
        rgba(76,29,149,0.18)
    );
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* ================= MENUBAR BUTTON (SVG ONLY) ================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: background 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    background: rgba(30, 58, 138, 0.1);
}

.menu-toggle:active {
    transform: scale(0.92);
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle.active .icon-menu {
    display: none;
}

.menu-toggle.active .icon-close {
    display: block;
    animation: menuIconFade 0.25s ease-out;
}

@keyframes menuIconFade {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* ================= SECTION OFFSET ================= */
section {
    scroll-margin-top: var(--nav-height);
}

.home,
.about,
.contact,
.brands {
    padding-top: calc(var(--nav-height) + 40px);
}

/* ================= HOME ================= */
.home {
    text-align: center;
    padding-bottom: 90px;
}

.home h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
}

.home p {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
}

/* ================= SERVICES ================= */
.cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.card {
    width: min(280px, 100%);
    padding: 35px 28px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 45px 90px rgba(0,0,0,0.28);
}

/* ================= BRANDS (INLINE ICONS) ================= */
.brands {
    padding: 100px 20px;
    text-align: center;
}

.brands h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 40px;
}

.brand-group {
    margin-bottom: 40px;
}

.brand-group h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.brand-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.brand-inline img {
    width: 90px;
    height: 90px;
    padding: 10px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-inline img:hover {
    transform: scale(1.15);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

/* ================= ABOUT ================= */
.about {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 90px;
    text-align: center;
}

.about h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 20px;
}

/* ================= CONTACT ================= */
.contact {
    padding: 100px 20px;
}

.contact h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-wrapper {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info,
.map {
    width: min(520px, 100%);
    background: rgba(255,255,255,0.85);
    padding: 30px;
    border-radius: 20px;
}

.map iframe {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    border: none;
}

/* ================= FOOTER ================= */
footer {
    position: fixed;
    bottom: 16px;
    inset-inline: 0;
    margin-inline: auto;

    width: min(1200px, calc(100% - 40px));
    padding: 14px;

    text-align: center;
    font-size: 14px;
    color: #555;

    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    border-radius: 18px;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */

/* --- TABLET VIEW (Up to 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --nav-height: 76px;
    }

    /* Menubar SVG toggle visible on tablet */
    .menu-toggle {
        display: inline-flex;
    }

    .navbar {
        width: calc(100% - 32px);
        top: 16px;
        padding: 12px 20px;
    }

    /* Collapsible navigation menu */
    .navbar ul {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 8px;
        border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
        display: none;
    }

    .navbar ul.active {
        display: flex;
        animation: menuSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 12px;
    }

    .home,
    .about,
    .contact,
    .brands {
        padding-top: calc(var(--nav-height) + 30px);
    }

    .cards {
        gap: 24px;
        padding: 50px 20px;
    }

    .brand-inline img {
        width: 72px;
        height: 72px;
        padding: 9px;
    }

    .contact-wrapper {
        gap: 24px;
    }
}

/* --- MOBILE VIEW (Up to 768px) --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
        --footer-height: auto;
    }

    body {
        padding-bottom: 24px;
    }

    /* Reduce live-bg shapes for better mobile performance */
    .shape {
        width: 260px;
        height: 260px;
        filter: blur(70px);
        opacity: 0.5;
    }

    /* Navbar on mobile */
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        padding: 10px 16px;
        border-radius: 16px;
    }

    .logo a {
        padding: 4px 6px;
    }

    .logo img {
        height: 28px;
        transform: scale(1.15);
    }

    .menu-toggle {
        padding: 6px;
    }

    .menu-toggle svg {
        width: 26px;
        height: 26px;
    }

    .navbar ul {
        top: calc(100% + 10px);
        padding: 12px;
        border-radius: 16px;
        gap: 6px;
    }

    .navbar ul li a {
        padding: 11px 16px;
        font-size: 15px;
    }

    /* Home section */
    .home {
        padding-top: calc(var(--nav-height) + 24px);
        padding-bottom: 45px;
        padding-inline: 16px;
    }

    .home h1 {
        font-size: clamp(28px, 7.5vw, 40px);
        line-height: 1.22;
    }

    .home p {
        font-size: 15px;
        margin-top: 8px;
    }

    /* Services / Cards */
    .cards {
        padding: 35px 16px;
        gap: 18px;
    }

    .card {
        width: 100%;
        max-width: 380px;
        padding: 26px 20px;
        border-radius: 18px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    }

    .card h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .card p {
        font-size: 14px;
    }

    /* About section */
    .about {
        padding: 45px 16px 55px;
    }

    .about h2 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .about p {
        font-size: 14.5px;
        line-height: 1.7;
    }

    /* Brands section */
    .brands {
        padding: 45px 16px 55px;
    }

    .brands h2 {
        font-size: 26px;
        margin-bottom: 26px;
    }

    .brand-group {
        margin-bottom: 30px;
    }

    .brand-group h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .brand-inline {
        gap: 10px;
    }

    .brand-inline img {
        width: 62px;
        height: 62px;
        padding: 7px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

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

    .brand-note {
        font-size: 13.5px;
        margin-top: 15px;
        padding-inline: 10px;
    }

    /* Contact section */
    .contact {
        padding: 45px 16px 55px;
    }

    .contact h2 {
        font-size: 26px;
        margin-bottom: 22px;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-info,
    .map {
        width: 100%;
        max-width: 520px;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .contact-info p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .contact-info p:last-child {
        margin-bottom: 0;
    }

    .map iframe {
        height: 260px;
        border-radius: 14px;
    }

    /* Footer for mobile */
    footer {
        position: static;
        width: calc(100% - 24px);
        margin: 30px auto 16px auto;
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 14px;
    }
}

/* --- SMALL MOBILE VIEW (Up to 480px) --- */
@media (max-width: 480px) {
    .navbar {
        top: 8px;
        width: calc(100% - 16px);
        padding: 8px 12px;
    }

    .logo img {
        height: 25px;
    }

    .menu-toggle {
        padding: 4px;
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    .home h1 {
        font-size: 25px;
    }

    .home p {
        font-size: 13.5px;
    }

    .cards {
        padding: 25px 12px;
    }

    .card {
        padding: 22px 16px;
    }

    .brand-inline {
        gap: 8px;
    }

    .brand-inline img {
        width: 54px;
        height: 54px;
        padding: 6px;
    }

    .contact-info,
    .map {
        padding: 18px 14px;
    }

    .map iframe {
        height: 220px;
    }

    footer {
        width: calc(100% - 16px);
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* --- ULTRA SMALL DEVICES (Up to 360px) --- */
@media (max-width: 360px) {
    .brand-inline img {
        width: 48px;
        height: 48px;
        padding: 5px;
    }

    .home h1 {
        font-size: 22px;
    }
}

/* --- MENU SLIDE ANIMATION --- */
@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}