/* ============================================================
   ROBOBOT – style.css
   Palette: Slate Grey #1E2535 | Electric Blue #3B82F6 | White #F8FAFC
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0D1117;
    --bg-2: #141B27;
    --bg-3: #1A2236;
    --slate: #1E2535;
    --slate-2: #2A3450;
    --blue: #3B82F6;
    --blue-light: #60A5FA;
    --blue-dark: #1D4ED8;
    --white: #F8FAFC;
    --muted: #8B98B8;
    --border: rgba(59, 130, 246, 0.15);

    --font: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-blue: 0 0 40px rgba(59, 130, 246, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-dark);
    border-radius: 3px;
}

/* ── Typography Helpers ───────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-label {
    display: inline-flex;
}

.section-header .section-sub {
    margin: 0 auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(248, 250, 252, 0.25);
}

.btn--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo__text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, var(--white), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.nav__list {
    display: flex;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: 6px;
    transition: all 0.25s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    border-radius: 1px;
    transition: transform 0.3s var(--transition);
}

.nav__link:hover {
    color: var(--white);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

/* Lang Switcher */
.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 12px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: var(--muted);
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--blue);
}

.lang-divider {
    color: var(--border);
    font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(13, 17, 23, 0.90) 0%,
            rgba(13, 17, 23, 0.70) 50%,
            rgba(29, 78, 216, 0.20) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1180px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 28px;
    animation: fadeUp 0.8s var(--transition) forwards;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s infinite;
}

.hero__title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__title .line {
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) forwards;
}

.hero__title .line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero__title .line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero__title--accent {
    background: linear-gradient(90deg, var(--blue-light), #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 0.6s forwards;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 0.8s forwards;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 1s forwards;
}

.stat {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.stat__num {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1;
}

.stat__plus {
    color: var(--blue);
    font-weight: 900;
    font-size: 1.5rem;
    vertical-align: super;
}

.stat__label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-content: center;
}

.stat__sep {
    width: 1px;
    height: 48px;
    background: var(--border);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--blue), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Services ─────────────────────────────────────────────── */
.services {
    padding: 120px 0;
    background: var(--bg-2);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-blue);
}

.service-card__img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.service-card:hover .service-card__img {
    transform: scale(1.06);
}

.service-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-3));
}

.service-card__body {
    padding: 28px;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.service-card:hover .service-card__icon {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.service-card__list li::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ── About ────────────────────────────────────────────────── */
.about {
    padding: 120px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about__badge-float {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue-light);
    line-height: 1;
}

.badge-lbl {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

.about__text p {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 32px 0 36px;
}

.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s;
}

.pillar:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.pillar__icon {
    font-size: 1.6rem;
}

.pillar__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
    padding: 120px 0;
    background: var(--bg-2);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact__info p {
    color: var(--muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact__item a {
    color: var(--muted);
    transition: color 0.2s;
}

.contact__item a:hover {
    color: var(--blue);
}

/* Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
    transition: color 0.2s;
}

.form-group:focus-within label {
    color: var(--blue-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 13px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--white);
    outline: none;
    transition: all 0.25s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--bg-3);
    color: var(--white);
}

.form-error {
    font-size: 0.78rem;
    color: #F87171;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.form-group.invalid .form-error {
    opacity: 1;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #F87171;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #86EFAC;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding: 60px 0 48px;
}

.footer__brand p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 16px;
    max-width: 260px;
}

.footer__brand .logo {
    margin-bottom: 0;
}

.footer__links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--blue-light);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 0.5;
    }
}

/* Reveal animation for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__img {
        height: 400px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .about__pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(20, 27, 39, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.4s var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .hamburger {
        display: flex;
        z-index: 1000;
        position: relative;
    }

    .hero__stats {
        gap: 24px;
    }

    .stat__sep {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero__cta {
        flex-direction: column;
        width: fit-content;
    }
}

@media (max-width: 500px) {
    .contact__form {
        padding: 24px;
    }

    .about__pillars {
        grid-template-columns: repeat(4, 1fr);
        font-size: 0.7rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }
}