/* ============================================================
   RoboSpati — Home page
   ============================================================ */

/* ============================================================
   HERO (video background preserved)
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(4rem, 7vw, 6rem);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--dark);
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 27, 58, .94) 0%, rgba(3, 27, 58, .82) 45%, rgba(8, 44, 90, .55) 100%);
    z-index: 1;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .55;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    z-index: 1;
    pointer-events: none;
    animation: floatOrb 9s ease-in-out infinite;
}
.hero-orb-1 { width: 360px; height: 360px; background: var(--cta); top: -80px; right: 6%; }
.hero-orb-2 { width: 280px; height: 280px; background: var(--dark-blue); bottom: -80px; left: -60px; animation-delay: -4s; }

.hero > .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: .5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.4rem;
}
.hero-badge i { color: #6CC3FF; }

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 1.2rem;
}

.hero-lead {
    color: rgba(255, 255, 255, .8);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 560px;
    margin: 0;
}

.hero-trust { font-size: var(--fs-small); color: rgba(255, 255, 255, .85); }
.hero-trust div { display: flex; align-items: center; gap: .45rem; }
.hero-trust i { font-size: 1.05rem; }

/* Thin divider line below hero content */
.hero-divider {
    margin-top: clamp(2rem, 4vw, 2.6rem);
    height: 1px;
    max-width: 560px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 80%);
}

/* Decorative right-side number indicator */
.hero-number-wrap { text-align: right; }
.hero-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .4);
}
.hero-number-caption {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #6CC3FF;
    margin-top: .75rem;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg { display: block; width: 100%; }
.hero-wave path { fill: var(--white); }
[data-bs-theme="dark"] .hero-wave path { fill: var(--body-bg, #0e1d3c); }

/* ============================================================
   INTRO
   ============================================================ */
.intro-section { background: var(--white); }
.intro-feature {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
}
.intro-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 143, 234, .4);
}
.intro-feature i {
    font-size: 1.5rem;
    color: var(--cta);
    background: rgba(11, 143, 234, .1);
    border-radius: var(--radius-md);
    padding: .5rem;
    flex-shrink: 0;
}
.intro-feature strong { font-family: var(--font-heading); color: var(--heading-color); }

.about-card-stack { position: relative; padding: 2rem 0 2rem 2rem; }
.about-card-main {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-card-main img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.about-card-main-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem 1.7rem 1.5rem;
    background: linear-gradient(to top, rgba(3, 27, 58, .92), transparent);
    color: #fff;
}
.about-card-main-caption i { font-size: 1.6rem; color: #6CC3FF; }
.about-card-main-caption h3 { color: #fff; font-size: 1.25rem; margin: .5rem 0 .25rem; }
.about-card-main-caption p { color: rgba(255, 255, 255, .82); font-size: .9rem; margin: 0; }
.about-card-float {
    position: absolute;
    bottom: 0;
    left: -8%;
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1rem 1.4rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: floatY 5s ease-in-out infinite;
}
.about-card-float i { font-size: 1.5rem; color: var(--cta); }
.about-card-float strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--heading-color); }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
    background: var(--section-dark, var(--dark));
    position: relative;
    color: #fff;
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background-image: linear-gradient(135deg, #082C5A 0%, #005CB8 100%);
    overflow: hidden;
}
.stats-section .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: var(--fw-black);
    color: #fff;
}
.stats-section .stat-suffix {
    font-size: 1.8rem;
    font-weight: var(--fw-bold);
    color: #6CC3FF;
}
.stats-section .stat-label {
    color: rgba(255, 255, 255, .72);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    margin-top: .4rem;
}
.stat-item { color: #fff; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    border-radius: 0 0 4px 4px;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 143, 234, .45);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service-card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    transition: transform .3s;
}
.service-card:hover .service-card-icon { transform: scale(1.1) rotate(-6deg); }
.service-card-number {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(3, 27, 58, .25);
    letter-spacing: .02em;
}
.service-card-title { font-family: var(--font-heading); font-size: var(--fs-card); font-weight: var(--fw-bold); color: var(--heading-color); margin-bottom: .6rem; }
.service-card-text { font-size: var(--fs-small); color: var(--body-color); margin-bottom: 1rem; }
.service-card-link {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-small);
    color: var(--cta);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.service-card-link:hover { color: var(--navy); }
.service-card-link i { transition: transform .25s; }
.service-card-link:hover i { transform: translateX(5px); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: var(--gray); }
.why-list { margin-top: 1.6rem; }
.why-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: none; }
.why-number {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    font-size: 1.3rem;
    color: var(--cta);
    flex-shrink: 0;
}
.why-item h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: var(--fw-bold); color: var(--heading-color); margin: 0 0 .3rem; }
.why-item p { font-size: var(--fs-small); color: var(--body-color); margin: 0; }

.why-visual { position: relative; min-height: 520px; }
.why-photo {
    position: absolute;
    top: 0;
    left: 8%;
    right: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why-photo img { width: 100%; display: block; aspect-ratio: 4/4.2; object-fit: cover; }
.why-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 27, 58, .55), transparent 45%);
}
.why-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.7rem;
    box-shadow: var(--shadow-lg);
    position: absolute;
    width: 60%;
    z-index: 2;
    transition: transform var(--transition);
}
.why-card:first-of-type { top: 4%; left: 0; }
.why-card:last-of-type { bottom: 4%; right: 0; }
.why-card:hover { transform: scale(1.04) rotate(-1deg); }
.why-card h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: var(--fw-bold); color: var(--heading-color); margin: .4rem 0; }
.why-card p { font-size: var(--fs-small); color: var(--body-color); margin: 0; }
.why-card .big { font-size: 2rem; color: var(--cta); margin-bottom: .4rem; }
.why-visual-badge {
    position: absolute;
    z-index: 3;
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-pill);
    padding: .55rem 1.2rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    box-shadow: var(--shadow-md);
    animation: floatY 5s ease-in-out infinite;
}
.why-visual-badge-1 { top: 2%; right: 4%; color: var(--heading-color); }
.why-visual-badge-2 { bottom: 22%; left: -2%; animation-delay: -2s; color: var(--heading-color); }

/* ============================================================
   DELIVERY INTELLIGENCE
   ============================================================ */
.delivery-section { background: var(--white); }
.delivery-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.delivery-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-blue);
}
.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 143, 234, .45);
}
.delivery-card i {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(11, 143, 234, .1);
    color: var(--cta);
}
.delivery-card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: var(--fw-bold); color: var(--heading-color); margin: 0; }
.delivery-card p { font-size: var(--fs-small); color: var(--body-color); margin: 0; }

/* ============================================================
   TECHNOLOGIES (tabbed)
   ============================================================ */
.tech-section { background: var(--white); }
.tech-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2.5rem;
}
.tech-tab-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--muted);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-small);
    padding: .6rem 1.3rem;
    transition: all var(--transition);
}
.tech-tab-btn:hover { color: var(--accent); border-color: var(--cta); }
.tech-tab-btn.active {
    background: var(--gradient-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 148, 255, .3);
}
.tech-panel { display: none; }
.tech-panel.active { display: block; animation: fadeUp .45s var(--ease); }
.tech-item {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.4rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tech-item i { font-size: 2rem; color: var(--cta); }
.tech-item span { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--body-color); }
.tech-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 143, 234, .4);
}

/* ============================================================
   FEATURED PROJECTS
   ============================================================ */
.project-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 143, 234, .45);
}
.project-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #F1F8FE;
}
.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover .project-card-media img { transform: scale(1.08); }
.project-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cta);
    background: linear-gradient(135deg, rgba(11, 143, 234, .12), rgba(0, 148, 255, .16));
}
.project-category {
    position: absolute;
    top: .9rem;
    left: .9rem;
    background: rgba(3, 27, 58, .88);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-pill);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .4rem .9rem;
}
.project-card-number {
    position: absolute;
    top: .6rem;
    right: .9rem;
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    font-size: 1.6rem;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 10px rgba(3, 27, 58, .5);
}
.project-card-body { padding: 1.4rem; }
.project-card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: var(--fw-bold); margin-bottom: .4rem; }
.project-card-title a { color: var(--heading-color); }
.project-card-title a:hover { color: var(--cta); }
.project-date { color: var(--muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--gray); }
.testimonial-carousel .row { align-items: stretch; }
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.9rem;
    position: relative;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-quote-icon { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.8rem; color: var(--cta); opacity: .14; }
.testimonial-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: .9rem; }
.testimonial-text { font-size: var(--fs-small); color: var(--body-color); font-style: italic; margin-bottom: 0; line-height: 1.7; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-bold);
}
.testimonial-name { font-family: var(--font-heading); font-weight: var(--fw-bold); color: var(--heading-color); }
.testimonial-role { font-size: var(--fs-xs); color: var(--muted); }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partner-item {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--muted);
    display: flex;
    align-items: center;
    transition: all var(--transition);
    min-width: 160px;
    justify-content: center;
    filter: grayscale(1);
    opacity: .7;
}
.partner-item img { max-height: 44px; }
.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--cta);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .hero { padding: 7.5rem 0 4rem; }
    .hero-number-wrap { display: none; }
    .why-visual { min-height: 380px; }
    .about-card-float { left: 0; }
}
@media (max-width: 575.98px) {
    .why-visual-badge-2 { left: 0; }
    .hero-badge { font-size: .72rem; }
}
