@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
    /* Color Palette based on brief */
    --blue-primary: #0056b3;
    /* Azul frío - ID */
    --blue-ice: #e0f2fe;
    /* Azul hielo */
    --blue-dark: #003366;
    --blue-accent: #0ea5e9;

    --white: #ffffff;
    --white-off: #f8fafc;

    --grey-light: #e2e8f0;
    --grey: #64748b;
    --black: #0f172a;
    /* Fuerza industrial */
    --black-alt: #1e293b;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.5);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--black-alt);
    background-color: var(--white-off);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--blue-primary);
    color: var(--blue-primary);
}

.btn-outline:hover {
    background: var(--blue-primary);
    color: var(--white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--black);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--blue-primary);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 1rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--black) !important;
}

.dropdown-menu a::after {
    display: none;
    /* No underline on dropdown items */
}

.dropdown-menu a:hover {
    background: var(--blue-ice);
    color: var(--blue-primary) !important;
}

.nav-links a.btn-primary {
    color: var(--white) !important;
}

.nav-links a.btn-primary:hover {
    color: var(--white) !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white-off);
}

/* Mesh Gradient Background */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: var(--blue-ice);
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlobs 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--blue-primary);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blue-accent);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--white);
    animation-delay: -10s;
}

@keyframes floatBlobs {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-5%, -10%) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--grey);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Trust Badges - Floating below hero */
.trust-badges {
    position: relative;
    z-index: 2;
    margin-top: -50px;
    padding: 0 2rem;
}

.badges-container {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-ice);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    font-size: 1.5rem;
}

.badge-text h4 {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.badge-text p {
    font-size: 0.875rem;
    color: var(--grey);
}

/* Services Bento Grid */
.services-section {
    background: var(--white);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--white-off);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--grey-light);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-accent);
}

/* Defining sizes for Bento items */
.card-1 {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--black), var(--black-alt));
    color: white;
}

.card-2 {
    grid-column: span 1;
    grid-row: span 1;
}

.card-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.card-4 {
    grid-column: span 2;
    grid-row: span 1;
}

.card-5 {
    grid-column: span 1;
    grid-row: span 1;
}

.card-6 {
    grid-column: span 1;
    grid-row: span 1;
}

.card-7 {
    grid-column: span 4;
    grid-row: span 1;
    background: var(--blue-ice);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--blue-primary);
}

.card-1 .bento-icon {
    color: var(--blue-accent);
    font-size: 3.5rem;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-1 h3 {
    font-size: 2rem;
}

.bento-card p {
    color: var(--grey);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-1 p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.card-7 p {
    flex-grow: 0;
    max-width: 600px;
}

/* About / Industrial Section */
.about-section {
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--blue-accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #e2e8f0;
    font-weight: 500;
    margin: 0;
}

/* Character Graphic Styling */
.character-wrapper {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.character-bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blue-primary) 0%, transparent 70%);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.character-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: floatCharacter 6s ease-in-out infinite;
}

@keyframes floatCharacter {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Floating Character Widget (Sticky) */
.floating-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.assistant-message {
    background: var(--white);
    color: var(--black);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border-bottom-right-radius: 5px;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: var(--transition);
    max-width: 250px;
    pointer-events: auto;
}

.floating-assistant:hover .assistant-message,
.floating-assistant.show-message .assistant-message {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.assistant-avatar {
    width: 70px;
    height: 70px;
    background: var(--blue-ice);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
    overflow: hidden;
}

.assistant-avatar img {
    width: 120%;
    height: auto;
    margin-top: 10px;
}

.assistant-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, var(--white), var(--blue-ice));
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--white);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--grey);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--black);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--blue-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* Service Pages specific classes */
.service-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    transition: var(--transition-slow);
}

.service-img:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.15);
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--blue-accent);
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial p {
    font-style: italic;
    color: var(--grey);
    margin-bottom: 1rem !important;
}

.testimonial h5 {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonial-rating {
    color: #f59e0b;
    /* Gold star color */
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-banner p {
    color: var(--blue-ice);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.cta-banner .btn {
    position: relative;
    z-index: 2;
    background: var(--white);
    color: var(--blue-primary);
}

/* Advanced Service Page Layout */
.service-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    background: var(--white-off);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Header offset */
}

/* Service left column */
.service-hero-content {
    padding: 6rem 4rem 4rem 10vw;
    position: relative;
    z-index: 2;
}

.service-hero-content .service-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--blue-ice), var(--white));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.service-hero-content .service-icon-box i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--black);
    line-height: 1.1;
}

.service-hero-content p.lead {
    font-size: 1.25rem;
    color: var(--grey);
    margin-bottom: 3rem;
    max-width: 550px;
}

/* Service features grid */
.service-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-pill {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--blue-accent);
    transition: var(--transition);
}

.feature-pill:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-primary);
}

.feature-pill i {
    color: var(--blue-primary);
    font-size: 1.5rem;
}

.feature-pill span {
    font-weight: 600;
    color: var(--black-alt);
    font-size: 0.95rem;
}

/* Service right image column */
.service-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 45vw;
    height: 100vh;
    z-index: 1;
}

.service-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--white-off) 0%, transparent 20%, rgba(0, 86, 179, 0.3) 100%);
    pointer-events: none;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Premium Floating Testimonial */
.premium-testimonial {
    position: absolute;
    bottom: 50px;
    left: -100px;
    /* Overlaps image edge */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    width: 450px;
    z-index: 3;
    transition: var(--transition-slow);
}

.premium-testimonial:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 86, 179, 0.2);
}

.premium-testimonial .quote-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 4rem;
    color: var(--blue-ice);
    opacity: 0.8;
    z-index: -1;
}

.premium-testimonial p {
    font-size: 1.1rem;
    color: var(--black-alt);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.premium-testimonial .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--grey);
}

/* --- Additional Premium Sections --- */

/* Process Steps */
.process-section {
    padding: 6rem 5vw;
    background: var(--white);
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    background: var(--white-off);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    border-color: rgba(0, 86, 179, 0.1);
}

.process-step-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--blue-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 15px rgba(0, 86, 179, 0.3);
}

.process-card h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--black);
}

.process-card p {
    font-size: 0.95rem;
    color: var(--grey);
}

/* Brands Marquee */
.brands-marquee {
    overflow: hidden;
    padding: 3rem 0;
    background: var(--black);
    color: var(--white-off);
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 3rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.marquee-content span:hover {
    color: var(--white);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials Slider (CSS Scroll Snap) */
.testimonials-section {
    padding: 6rem 5vw;
    background: var(--white-off);
    text-align: center;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-slide {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    border-top: 5px solid var(--blue-primary);
    transition: var(--transition);
}

.testimonial-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.slide-stars i {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.testimonial-slide p {
    font-style: italic;
    color: var(--grey);
    margin-bottom: 1.5rem !important;
    font-size: 1rem;
}

/* FAQ Details/Summary */
.faq-section {
    padding: 6rem 5vw;
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

details.faq-item {
    background: var(--white-off);
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

details.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

summary.faq-question {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    list-style: none;
    /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '\25BC';
    /* simple arrow */
    font-size: 0.8rem;
    color: var(--blue-primary);
    transition: transform 0.3s ease;
}

details.faq-item[open] summary.faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content block below hero (if needed) */
.service-details {
    padding: 4rem 10vw;
    background: transparent;
    position: relative;
    z-index: 5;
}

/* Responsive Overrides for Service Layout */
@media (max-width: 1024px) {
    .service-hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .service-hero-content {
        padding: 4rem 5vw;
    }

    .service-image-wrapper {
        position: relative;
        width: 100%;
        height: 50vh;
        margin-top: 2rem;
    }

    .premium-testimonial {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 600px;
        margin: -80px auto 4rem;
        transform: none !important;
    }

    .service-features-grid {
        grid-template-columns: 1fr;
    }
}

.cta-banner .btn:hover {
    background: var(--blue-ice);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-4 {
        grid-column: span 2;
    }

    .card-7 {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .badges-container {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-container,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .character-wrapper {
        height: 400px;
        order: -1;
    }

    .badges-container {
        margin-top: -20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-1,
    .card-4,
    .card-7 {
        grid-column: span 1;
    }

    .contact-container {
        padding: 2rem;
    }
}

/* Mascot Widget */
.mascot-widget {
    position: fixed;
    bottom: -150px;
    right: 20px;
    z-index: 999;
    width: 140px;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.mascot-widget.show {
    bottom: 20px;
    animation: floatMascot 4s ease-in-out infinite;
}

.mascot-widget img {
    width: 100%;
    height: auto;
}

.mascot-speech {
    position: absolute;
    top: -50px;
    right: 80px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 20px;
    box-shadow: var(--shadow-lg);
    font-size: 1rem;
    color: var(--blue-primary);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    transform-origin: bottom right;
    transition: var(--transition);
    pointer-events: none;
}

.mascot-widget:hover .mascot-speech {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}