/* Ambaloos home — crystal / glass theme */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ink: #0e1230;
    --navy: #1a1858;
    --navy-deep: #12103f;
    --violet: #2b287f;
    --coral: #e85a4f;
    --coral-deep: #cc4843;
    --glass: rgba(255, 255, 255, 0.12);
    --glass-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.28);
    --text: #f4f6ff;
    --muted: rgba(244, 246, 255, 0.72);
    --panel: rgba(255, 255, 255, 0.82);
    --shadow: 0 18px 50px rgba(10, 12, 40, 0.35);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--navy-deep);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* Liquid background atmosphere */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(120, 90, 255, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(232, 90, 79, 0.28), transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(64, 180, 255, 0.2), transparent 55%),
        linear-gradient(160deg, #0f0e2e 0%, #1a1858 45%, #12103f 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: float 18s ease-in-out infinite;
}

.blob-a {
    width: min(52vw, 480px);
    height: min(52vw, 480px);
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, rgba(140, 120, 255, 0.7), transparent 70%);
}

.blob-b {
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    top: 35%;
    right: -10%;
    background: radial-gradient(circle, rgba(232, 90, 79, 0.55), transparent 70%);
    animation-delay: -6s;
}

.blob-c {
    width: min(40vw, 380px);
    height: min(40vw, 380px);
    bottom: 5%;
    left: 30%;
    background: radial-gradient(circle, rgba(80, 200, 255, 0.45), transparent 70%);
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(4%, 6%) scale(1.08); }
    66% { transform: translate(-5%, 3%) scale(0.94); }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card,
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ——— Nav ——— */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 40px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
}

.glass-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.logo {
    order: 2;
    flex-shrink: 0;
}

.logo img {
    height: 22px;
    width: auto;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 110;
    order: 1;
    background: none;
    border: none;
    padding: 4px;
}

.navbar-toggle span {
    background-color: white;
    height: 2px;
    margin: 3px 0;
    width: 22px;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex: 1;
    order: 3;
    transform: none;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
    background: var(--glass-strong);
}

.btn-contact {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    order: 4;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(204, 72, 67, 0.35);
}

.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(204, 72, 67, 0.45);
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }

    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        order: 2;
    }

    .navbar-toggle {
        display: flex;
        order: 3;
        position: relative;
        top: auto;
        right: auto;
    }

    .btn-contact {
        order: 1;
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(280px, 85vw);
        background: rgba(14, 18, 48, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        z-index: 105;
        padding: 80px 24px 24px;
        gap: 8px;
        justify-content: flex-start;
        flex: none;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 16px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ——— Hero ——— */
.hero {
    position: relative;
    color: white;
    padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 48px) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-glow {
    position: absolute;
    inset: 10% 20% auto;
    height: 40%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.14), transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.hero-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    animation: rise-in 0.8s ease both;
}

.hero-text {
    text-align: center;
    margin-bottom: 28px;
}

.brand-mark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6.5vw, 3.6rem);
    letter-spacing: -0.04em;
    margin: 0 0 12px;
    background: linear-gradient(120deg, #fff 15%, #e8e6ff 55%, #ffc9c3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.08;
}

.hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-sub {
    margin: 0 auto;
    max-width: 36ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    animation: rise-in 0.9s ease 0.12s both;
}

.btn-secondary,
.btn-primary {
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 999px;
    min-width: 140px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 28px rgba(204, 72, 67, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(204, 72, 67, 0.5);
}

.hero-image {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    position: relative;
    z-index: 1;
    animation: rise-in 1s ease 0.2s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ——— Services ——— */
.services {
    padding: clamp(48px, 8vw, 88px) clamp(16px, 5vw, 48px);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.section-head {
    max-width: 520px;
    margin: 0 auto 36px;
    animation: rise-in 0.7s ease both;
}

.section-head h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.services-row {
    display: contents;
}

.service-box {
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    background: rgba(255, 255, 255, 0.9);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--coral), #ff9a8b) 1;
    border-image: none;
    border-top: 3px solid var(--coral);
}

.service-box img {
    max-width: 64px;
    margin: 8px auto 16px;
}

.service-box h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: var(--ink);
    font-weight: 700;
}

.service-box p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3a3d66;
    margin: 0;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(10, 12, 40, 0.28);
    background: rgba(255, 255, 255, 0.98);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Partnership ——— */
.partnership {
    padding: clamp(40px, 7vw, 72px) clamp(16px, 5vw, 48px);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.partnership-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    margin: 0 auto 40px;
    padding: clamp(24px, 4vw, 40px);
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.card-content {
    text-align: center;
    padding: 12px;
    color: var(--text);
}

.card-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 20px;
    color: var(--muted);
}

.card-content .btn-primary {
    background: linear-gradient(135deg, #4a47b8 0%, #2b287f 100%);
    box-shadow: 0 10px 28px rgba(43, 40, 127, 0.45);
}

.card-content .btn-primary:hover {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
}

.card-image {
    width: min(70%, 420px);
    margin-top: 20px;
}

.card-image img,
.image-2 {
    width: 100%;
    border-radius: 16px;
}

.partnership-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 12px;
    max-width: 100%;
}

.partnership-logos img {
    max-width: 120px;
    width: auto;
    opacity: 0.55;
    filter: brightness(1.1);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.partnership-logos img.center {
    transform: scale(1.15);
    opacity: 1;
}

@media (min-width: 768px) {
    .partnership-card {
        flex-direction: row;
        text-align: left;
        gap: 32px;
    }

    .card-content {
        text-align: left;
        flex: 1;
    }

    .card-image {
        margin-top: 0;
        flex: 1;
    }
}

/* ——— How it works ——— */
.instruction {
    padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 48px);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.instruction-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.instruction-image img {
    width: min(100%, 280px);
    border-radius: 16px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.instruction-steps {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.step {
    border-radius: 20px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, background 0.25s ease;
}

.step:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.16);
}

.step-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: white;
    font-weight: 700;
}

.step-text p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

.instruction-slider {
    display: none;
    width: 100%;
    max-width: 100%;
}

.slider-item {
    border-radius: 16px;
    padding: 20px;
    margin: 0 8px;
    flex: 0 0 calc(100% - 16px);
    background: rgba(255, 255, 255, 0.92);
}

.slider-item .step-number {
    color: var(--coral-deep);
    text-align: center;
}

.slider-item .step-text h3 {
    color: var(--ink);
    text-align: center;
}

.slider-item .step-text p {
    color: #3a3d66;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .instruction {
        flex-direction: column;
        padding: 40px 16px;
    }

    .instruction-steps {
        display: none;
    }

    .instruction-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    .slider-item {
        scroll-snap-align: center;
    }
}

/* ——— Subscribe ——— */
.subscribe-section {
    padding: clamp(40px, 6vw, 64px) clamp(16px, 5vw, 48px);
    width: 100%;
    max-width: 100%;
}

.subscribe-section .container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.subscribe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: calc(var(--radius) + 4px);
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.subscribe-text {
    flex: 1;
    min-width: 0;
}

.subscribe-text h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subscribe-text p {
    color: #4a4d70;
    margin: 0 0 22px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.input-group input[type="email"] {
    padding: 12px 18px;
    border: 1px solid rgba(33, 31, 96, 0.2);
    border-radius: 999px;
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 1rem;
}

.input-group button {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
    color: #fff;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    flex-shrink: 0;
}

.subscribe-image {
    flex: 0 1 280px;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.subscribe-image img {
    width: 100%;
    max-width: 260px;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }

    .input-group {
        justify-content: center;
    }
}

/* ——— Footer ——— */
.footer {
    background: rgba(10, 12, 40, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    color: white;
    padding: clamp(40px, 6vw, 64px) clamp(16px, 5vw, 40px);
    width: 100%;
    max-width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    width: 100%;
}

.footer-left {
    flex: 1 1 200px;
    min-width: 0;
}

.footer-logo img {
    max-width: 140px;
    margin-top: 0;
}

.footer-text {
    margin: 14px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-images img {
    width: 110px;
}

.footer-right {
    flex: 2 1 280px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
}

.footer-link-category {
    flex: 1 1 100px;
    min-width: 100px;
    margin-bottom: 8px;
}

.footer-link-category h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.footer-link-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-category li {
    margin-bottom: 8px;
}

.footer-link-category a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-link-category a:hover {
    color: white;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        text-align: center;
    }

    .footer-link-category {
        min-width: 0;
        margin: 12px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
