/* ==========================================================================
   TRIPLA — Simplified, Commented, "Cosmic" UI
   Notes:
   - Duplicates removed (.btn--primary, .icon-btn, .hero, body.cosmic::before).
   - Section headings fixed to render gradient text correctly.
   - One hover/elevation system for cards, forms, and primary buttons.
   - Keep this file as single source of truth.
   ========================================================================== */


/* === 1) DESIGN TOKENS ===================================================== */
:root {
    /* Surfaces */
    --bg: #ffffff;
    /* page background */
    --panel: #ffffff;
    /* header / nav / panels */
    --surface: #ffffff;
    /* inputs / tiles / cards */
    --border: #e6ebf1;
    /* subtle lines */

    /* Typography */
    --text: #0b1220;
    /* primary text */
    --muted: #52616f;
    /* secondary text */

    /* Accents (brand gradient) */
    --accent: #6EC1FF;
    /* light blue (logo nodes) */
    --accent-2: #2EA6FF;
    /* primary blue (tagline) */
    --accent-3: #1F7AE0;
    /* deeper blue for gradients */

    /* Focus ring / depth */
    --ring: rgba(20, 184, 166, 0.25);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    /* was '---shadow' */

    /* Layout */
    --header-h: 72px;
}


/* === 2) BASE =============================================================== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin-top: var(--header-h);
    scroll-padding-top: var(--header-h);
    scroll-behavior: smooth;
    transition: background-color .6s, color .6s, border-color .6s, filter .6s;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: clamp(48px, 6vw, 120px);
    padding-right: clamp(48px, 6vw, 120px);
}

.section {
    padding: 88px 0;
    /* generous vertical rhythm */
    scroll-margin-top: var(--header-h);
    width: 90%;
}

main>section.section {
    position: relative;
    background: transparent !important;
}

/* glowing divider line between sections */
main>section.section:not(:first-of-type)::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(46, 166, 255, .25) 20%,
            /* was rgba(34,211,238,.25) */
            rgba(110, 193, 255, .45) 50%,
            /* was rgba(20,184,166,.45) */
            rgba(31, 122, 224, .25) 80%,
            /* was rgba(96,165,250,.25) */
            transparent 100%);
    box-shadow: 0 0 22px rgba(34, 211, 238, .25);
    pointer-events: none;
}

/* subtle alternating panels */
main>section.section:nth-of-type(even) {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
}


/* === 3) COSMIC BACKGROUND (single definition) ============================= */
#bgNet {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 12% 18%, rgba(46, 166, 255, .10), transparent 60%),
        /* was rgba(34,211,238,.10) */
        radial-gradient(1100px 650px at 88% 26%, rgba(110, 193, 255, .10), transparent 60%);
    /* was rgba(20,184,166,.10) */
    opacity: .9;
    /* canvas itself controls line opacity */
}

@media (prefers-reduced-motion: reduce) {
    #bgNet {
        display: none;
    }
}


/* === 4) HEADER / NAV ====================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(48px, 6vw, 120px);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    transition: background-color .6s, color .6s, border-color .6s, filter .6s;
}

.brand {
    font: 700 1.25rem/1 Inter, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    height: 60px;
    width: auto;
    display: block;
}

.brand-logo {
    filter: drop-shadow(0 0 25px rgba(46, 166, 255, .55));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s;
    transform-style: preserve-3d;
    animation: pulse-glow 3s ease-in-out infinite;
}

.brand-logo:hover {
    transform: perspective(800px) rotateX(6deg) rotateY(-6deg) scale(1.03);
    filter: drop-shadow(0 0 28px rgba(34, 211, 238, .55));
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 16px rgba(46, 166, 255, .30));
    }

    50% {
        filter: drop-shadow(0 0 28px rgba(110, 193, 255, .55));
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .3px;
    transition: color .2s;
}

.nav__menu a:hover {
    color: var(--accent);
}

.nav__menu a:focus-visible,
.nav__toggle:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 10px;
}

/* Mobile menu */
.nav__toggle {
    display: none;
    font-size: 1.4rem;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

@media (max-width:900px) {
    .nav__toggle {
        display: inline-flex;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 8px 10px;
        color: var(--text);
    }

    .nav__menu {
        position: absolute;
        right: 4%;
        top: 64px;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px;
        display: none;
        flex-direction: column;
        gap: 8px;
        box-shadow: var(--shadow);
    }

    .nav__menu.show {
        display: flex;
    }
}


/* === 5) CONTROLS (single source of truth) ================================= */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Primary gradient button (shimmer on hover) */
.btn--primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #031016;
    border-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-100%);
    transition: transform .6s ease;
}

.btn--primary:hover::before {
    transform: translateX(100%);
}

/* Ghost button */
.btn--ghost {
    background: transparent;
    color: var(--text);
}

.btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.btn--primary[target="_blank"]::after {
    content: "↗";
    margin-left: 6px;
    font-weight: 600;
    font-size: .9em;
    opacity: .6;
}

/* Icon-only button (theme toggle) */
.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.icon-btn:hover {
    background: var(--accent);
    color: #031016;
}


/* === 6) HERO =============================================================== */
.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
    padding: 40px 0 24px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;

    /* single cosmic backdrop for depth */
    background:
        radial-gradient(1000px at 20% 30%, rgba(110, 193, 255, .12), transparent 60%),
        radial-gradient(1200px at 80% 20%, rgba(31, 122, 224, .10), transparent 60%);

}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent,
            rgba(46, 166, 255, .35),
            rgba(110, 193, 255, .45),
            rgba(31, 122, 224, .35),
            transparent);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
    margin: 0 0 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 22px rgba(34, 211, 238, .25);
}

/* badges & ctas */
.hero__cta {
    display: flex;
    gap: 12px;
    margin: 16px 0 8px;
}

.hero__badges {
    list-style: none;
    display: flex;
    gap: 14px;
    padding: 0;
    margin: 16px 0 0;
    color: var(--muted);
    flex-wrap: wrap;
}

/* kpis */
.hero__card {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    animation: floatUp 10s ease-in-out infinite alternate;
}

@keyframes floatUp {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-10px)
    }
}

.kpi {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(110, 193, 255, 0.25);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 4px 20px rgba(110, 193, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(110, 193, 255, 0.25);
}

.kpi__value {
    font-size: 2rem;
    font-weight: 700;
}

.kpi__label {
    color: var(--muted);
}


/* === 7) TYPOGRAPHY & SECTION HEADINGS ===================================== */
/* Gradient section titles — ensure gradient is visible on all browsers */
.section h2 {
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(34, 211, 238, .25);
    background-size: 300% 100%;
    animation: gradient-flow 10s ease infinite !important;
}

.section h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    background-size: 300% 100%;
    box-shadow: 0 0 14px rgba(34, 211, 238, .35);
    animation: gradient-flow 8s ease infinite;
}

@keyframes gradient-flow {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}


/* === 8) LAYOUT: GRIDS, CARDS, TIMELINE, STEPS ============================= */
.grid {
    display: grid;
    gap: 18px;
}

.grid--3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px 60px;
    /* wider vertical & horizontal spacing */
    align-items: start;
    margin-top: 32px;
}

.card {
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform .35s, box-shadow .35s;
    backdrop-filter: blur(4px);
}

.card h3 {
    margin-top: 4px;
}

.card ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

/* timeline */
.timeline {
    display: grid;
    gap: 16px;
}

.timeline__item {
    border-left: 3px solid var(--accent-2);
    padding-left: 14px;
}

/* steps */
.steps {
    display: grid;
    gap: 8px;
    counter-reset: step;
}

.steps li {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}


/* === 9) CONTACT / FORM ===================================================== */
.contact__wrap {
    display: grid;
    grid-template-columns: 1fr .6fr;
    gap: 24px;
}

.form {
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform .35s, box-shadow .35s, border-color .35s;
}

.form__row {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.form__row input,
.form__row textarea {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
}

.form__row input:focus,
.form__row textarea:focus {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.form__row--actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error {
    color: #ef476f;
    font-size: .9rem;
    min-height: 1.2em;
}


/* === 10) FOOTER ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    position: relative;
    overflow: hidden;
    transition: background-color .6s, color .6s, border-color .6s, filter .6s;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -40% -10% -10% -10%;
    background:
        repeating-linear-gradient(90deg, rgba(96, 165, 250, .05) 0 2px, transparent 2px 40px),
        repeating-linear-gradient(0deg, rgba(34, 211, 238, .05) 0 2px, transparent 2px 40px);
    transform: translateY(0);
    animation: gridShift 40s linear infinite;
    pointer-events: none;
}

@keyframes gridShift {
    to {
        transform: translateY(-10%);
    }
}

.site-footer::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    opacity: .5;
}


/* === 11) UTILITY: ANIMATE-IN ============================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s, transform .7s;
}

[data-animate].visible {
    opacity: 1;
    transform: none;
}

/* unified hover/elevation system */
.card:hover,
.btn--primary:hover,
.form:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(110, 193, 255, 0.18);
}

/* progress bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 2000;
    box-shadow: 0 0 12px rgba(34, 211, 238, .45);
    background-image: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    background-size: 300% 100%;
    animation: gradient-flow 6s ease infinite;
}

/* micro tagline */
.microtagline {
    font-size: .95rem;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: .4px;
}


/* === 12) RESPONSIVE ======================================================== */
@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid--3 {
        grid-template-columns: 1fr;
    }

    .contact__wrap {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced motion everywhere important */
@media (prefers-reduced-motion: reduce) {

    [data-animate],
    .hero__card {
        animation: none !important;
    }
}


/* === 13) ABOUT - PILL STYLE ======================================================== */
#about ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
}

#about ul li {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: var(--shadow);
}


/* === 14) SERVICE IMAGE ======================================================== */
.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0 14px;
    box-shadow: 0 2px 12px rgba(110, 193, 255, 0.15);
}