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

/* ─── CSS Custom Properties (Design Tokens) ────────────────────────────────── */
:root {
    --background: 0 0% 100%;
    --foreground: 210 20% 12%;
    --card: 0 0% 100%;
    --card-foreground: 210 20% 12%;
    --popover: 0 0% 100%;
    --popover-foreground: 210 20% 12%;
    --primary: 202 100% 40%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 15% 95%;
    --secondary-foreground: 210 20% 12%;
    --muted: 210 15% 96%;
    --muted-foreground: 210 10% 45%;
    --accent: 202 100% 40%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 210 15% 90%;
    --input: 210 15% 90%;
    --ring: 202 100% 40%;
    --radius: 0.5rem;

    /* Ample brand tokens */
    --ample-blue: 202 100% 40%;
    --ample-blue-light: 202 80% 55%;
    --ample-blue-dark: 210 80% 28%;
    --ample-silver: 210 5% 65%;
    --ample-dark: 210 25% 8%;
    --ample-gray: 210 10% 40%;
    --ample-light: 210 20% 97%;
}

/* ─── Base Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; }

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Container ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ─── Gradient Utilities ────────────────────────────────────────────────────── */
.text-gradient-blue {
    background: linear-gradient(135deg, hsl(202, 100%, 40%), hsl(202, 80%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, hsl(202, 100%, 40%), hsl(210, 80%, 28%));
}

.bg-gradient-blue-light {
    background: linear-gradient(135deg, hsl(202, 100%, 40%), hsl(202, 80%, 55%));
}

/* ─── Color Utilities ───────────────────────────────────────────────────────── */
.bg-ample-dark    { background-color: hsl(210, 25%, 8%); }
.bg-ample-light   { background-color: hsl(210, 20%, 97%); }
.bg-muted         { background-color: hsl(var(--muted)); }
.bg-background    { background-color: hsl(var(--background)); }
.bg-card          { background-color: hsl(var(--card)); }

.text-primary          { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-foreground       { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-ample-silver     { color: hsl(210, 5%, 65%); }

/* ─── Shadow Utilities ──────────────────────────────────────────────────────── */
.shadow-blue       { box-shadow: 0 4px 30px -5px hsl(202 100% 40% / 0.25); }
.shadow-card-hover { box-shadow: 0 20px 40px -15px hsl(210 25% 8% / 0.12); }

/* ─── Border Utilities ──────────────────────────────────────────────────────── */
.border        { border: 1px solid hsl(var(--border)); }
.border-t      { border-top: 1px solid hsl(var(--border)); }
.border-b      { border-bottom: 1px solid hsl(var(--border)); }
.border-l      { border-left: 1px solid hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }

/* ─── Typography Utilities ──────────────────────────────────────────────────── */
.font-display  { font-family: 'Poppins', sans-serif; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.uppercase     { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.italic        { font-style: italic; }
.line-clamp-2  { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.animate-slide-up  { animation: slideUp 0.6s ease-out forwards; }
.animate-fade-in   { animation: fadeIn 0.8s ease-out forwards; }

/* ─── AOS (Animate on Scroll) override defaults ─────────────────────────────── */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: ease-out;
}

[data-aos="fade-up"]   { transform: translateY(30px); }
[data-aos="fade-left"] { transform: translateX(-40px); }
[data-aos="fade-right"]{ transform: translateX(40px); }
[data-aos="scale-in"]  { transform: scale(0.95); }

[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: hsl(var(--background));
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px hsl(210 25% 8% / 0.08);
}

/* Mega dropdown */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    padding-top: 0.5rem;
    z-index: 100;
}

.nav-item:hover .mega-dropdown,
.mega-dropdown:hover {
    display: block;
    animation: fadeSlideUp 0.2s ease-out;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ─── Process Steps ──────────────────────────────────────────────────────────── */
.process-step-btn.active .step-circle {
    background: linear-gradient(135deg, hsl(202, 100%, 40%), hsl(202, 80%, 55%));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: scale(1.15);
    box-shadow: 0 0 25px hsl(202 100% 40% / 0.5);
}

.process-step-btn.past .step-circle {
    background-color: hsl(var(--primary) / 0.2);
    border-color: hsl(var(--primary) / 0.4);
    color: hsl(var(--primary));
}

.step-circle {
    transition: all 0.4s ease;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid hsl(var(--primary));
    animation: pulse-ring 1.5s ease-out infinite;
}

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: hsl(var(--foreground) / 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px hsl(210 25% 8% / 0.25);
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ─── WhatsApp float ─────────────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px hsl(145 60% 40% / 0.4);
    transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.08); }

@media (min-width: 1024px) { .whatsapp-float { display: none; } }

/* ─── Mobile: gap between credentials strip and hero ─────────────────────── */
@media (max-width: 1024px) {
    .credentials-strip {
        margin-bottom: 0.75rem;
    }
}

/* ─── Mobile menu ────────────────────────────────────────────────────────────── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 80vh;
    overflow-y: auto;
}

/* Sub-menu accordions */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.open {
    max-height: 400px;
}

/* ─── Product / Solution cards hover effects ─────────────────────────────────── */
.product-card { transition: border-color 0.3s, box-shadow 0.3s; }
.product-card:hover { border-color: hsl(var(--primary) / 0.4); }
.product-card img { transition: transform 0.7s ease; }
.product-card:hover img { transform: scale(1.05); }

/* ─── Progress bar (extrusion process) ──────────────────────────────────────── */
#process-progress-bar {
    transition: width 0.8s ease;
}

/* ─── Input styles ───────────────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    outline: none;
    transition: ring 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input::placeholder { color: hsl(var(--muted-foreground)); }

/* ─── Loading Screen ─────────────────────────────────────────────────────── */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: hsl(210, 25%, 8%);
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

    #loading-screen.fade-out {
        opacity: 0;
        pointer-events: none;
    }

    #loading-screen.hidden {
        display: none;
    }

/* Brand block — scales in */
#loading-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: scale(0.85);
    animation: loadingBrandIn 0.5s ease-out 0.1s forwards;
}

@keyframes loadingBrandIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Heading slides up */
#loading-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(20px);
    animation: loadingTitleIn 0.5s ease-out 0.3s forwards;
}

    #loading-title .accent {
        color: hsl(202, 100%, 40%);
    }

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

/* Tagline fades in */
#loading-tagline {
    font-size: 0.85rem;
    color: hsl(210, 5%, 65%);
    font-style: italic;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: loadingFadeIn 0.5s ease-out 0.6s forwards;
}

@keyframes loadingFadeIn {
    to {
        opacity: 1;
    }
}

/* Progress bar track + fill */
#loading-bar-wrap {
    width: 12rem;
    height: 2px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
    opacity: 0;
    animation: loadingFadeIn 0.3s ease-out 0.7s forwards;
}

#loading-bar-fill {
    height: 100%;
    width: 0%;
    background-color: hsl(202, 100%, 40%);
    border-radius: 9999px;
    animation: loadingBarGrow 1.5s ease-in-out 0.8s forwards;
}

@keyframes loadingBarGrow {
    to {
        width: 100%;
    }
}
