/* =====================================================
   RESTOK - INDUSTRIAL B2B MARKETPLACE STYLES
   premium dark mode | industrial teal
   ===================================================== */

:root {
    /* Color Palette - Teal Industrial */
    --primary-50: #E4F9F8;
    --primary-100: #BCEEEB;
    --primary-200: #8EE1DC;
    --primary-300: #5DD3CC;
    --primary-400: #36C8BE;
    --primary-500: #04C7BD;
    /* Main Teal */
    --primary-600: #03B0A7;
    --primary-700: #028C84;
    /* Darker Teal */
    --primary-800: #016862;
    --primary-900: #014A46;

    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --bg-glass: rgba(255, 255, 255, 0.6);

    /* Text */
    --text-primary: #000000;
    --text-secondary: #374151;
    --text-tertiary: #6B7280;
    --text-quaternary: #9CA3AF;

    /* Accents */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 4rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =====================================================
   COMPONENTS
   ===================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-700);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
}

.btn-secondary:hover {
    background: var(--primary-500);
    color: #000;
    transform: translateY(-2px);
}

/* Carousel & Flat Cards */
.carousel-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 300px;
}

/* Quad-Grid Layout for Companies */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .companies-grid {
        grid-template-columns: 1fr;
    }
}

/* Flat Card Variation (No Flip) */
.service-card-flat {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card-flat:hover {
    transform: translateY(-10px);
    border-color: var(--primary-500);
}

.service-card-flat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Default position */
    filter: brightness(0.7);
    /* Slightly brighter than before (0.6) */
    transition: transform 0.8s ease;
}

.service-card-flat:hover img {
    transform: scale(1.1);
}

.service-card-flat .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 1.5rem;
    /* More compact padding */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    transition: all 0.4s ease;
}

.service-card-flat:hover .card-content {
    padding-bottom: 2rem;
    /* Expand slightly on hover */
}

.service-card-flat h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card-flat p {
    color: #ccc;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-container {
        padding: 0 10px;
    }
}


/* Glassmorphism Card */
.glass-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Glow Effects */
.glow-text {
    text-shadow:
        0 0 10px rgba(4, 199, 189, 0.5),
        0 0 20px rgba(4, 199, 189, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, #FFFFFF, var(--primary-400));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

/* =====================================================
   HEADER & NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar #loginBtn {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled #loginBtn {
    opacity: 1;
    visibility: visible;
    position: static;
    pointer-events: auto;
    transform: translateX(0);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-container > [data-lang-slot] {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.logo img {
    width: 135px;
    height: auto;
    object-fit: contain;
}

.nav-container:has(.nav-tools) .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #FFFFFF;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-400);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

/* Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(4, 199, 189, 0.08), transparent 70%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    width: 100%;
}

.hero-text {
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(4, 199, 189, 0.1);
    border: 1px solid rgba(4, 199, 189, 0.2);
    color: var(--primary-500);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.25rem;
    color: #E4E4E7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 3rem;
    max-width: 90%;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards;
    opacity: 0;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
    /* Darken so white text is legible */
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.social-proof {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    opacity: 0.6;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.logo-item:hover {
    color: var(--primary-500);
    opacity: 1;
}

/* =====================================================
   SERVICES FLIP CARDS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--primary-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card-flip {
    height: 480px;
    /* Fixed height for consistency */
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 24px;
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.is-flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

/* Front Side */
.service-card-front {
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.8);
}

/* Specific Styles for Modern Benefit Section */
.beneficios-section {
    background-color: #FFFFFF;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.beneficios-section .section-title {
    color: #000;
}

/* Clean Modern Benefits Grid */
.benefits-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 2rem auto 0;
    max-width: 1000px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #FFF;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(4, 199, 189, 0.2);
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .benefits-clean-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .benefits-clean-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.service-card-flip:hover .service-image {
    transform: scale(1.1);
}


.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: left;
}

.service-title-front {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Back Side */
.service-card-back {
    background: var(--bg-secondary);
    transform: rotateY(180deg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--primary-500);
    box-shadow: 0 0 30px rgba(4, 199, 189, 0.15);
}

.service-title-back {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-500);
}

.service-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-tag {
    background: rgba(4, 199, 189, 0.1);
    color: var(--primary-400);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* =====================================================
   SHOWCASE / ABOUT (Custom Layout for Industrial)
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image img {
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: none;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    position: relative;
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(to top, rgba(4, 199, 189, 0.05), transparent);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: #000000;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #A1A1AA;
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #A1A1AA;
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #71717A;
    font-size: 0.875rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =====================================================
   MODAL
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fade-in 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    z-index: 10000;
    animation: scale-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-500);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.modal-subtitle {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* =====================================================
   FORM STYLES
   ===================================================== */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(4, 199, 189, 0.05);
    box-shadow: 0 0 0 3px rgba(4, 199, 189, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.registration-form .btn-primary {
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border: 2px solid var(--primary-500);
    animation: none;
    box-shadow: none;
    font-weight: 700;
}

.registration-form .btn-primary:hover {
    background: rgba(4, 199, 189, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(4, 199, 189, 0.2);
}

.form-group.has-error .form-input {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   HOW IT WORKS TIMELINE
   ===================================================== */
.how-it-works {
    background-color: #FAFAFA;
    padding: 2rem 0 4rem;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #E5E7EB;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6rem;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 38%;
    padding: 0;
}

.timeline-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.timeline-content p {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.7;
}

.timeline-image {
    width: 38%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    background: #F9FAFB;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.03);
}

.timeline-dot {
    width: 48px;
    height: 48px;
    background: var(--primary-500);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 8px #FFFFFF, 0 4px 20px rgba(4, 199, 189, 0.3);
}

/* Zig-zag text alignment and spacing */
.timeline-item .timeline-content {
    margin-left: auto;
    /* Push odd steps content to the far right */
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    /* Push even steps content to the far left */
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content .result-list li {
    flex-direction: row-reverse;
}

/* Scroll Animations */
.reveal-item {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item[data-side="left"] {
    transform: translateX(-60px);
}

.reveal-item[data-side="right"] {
    transform: translateX(60px);
}

.reveal-item.active {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Result Box for Step 3 */
.result-box-clean {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #F3F4F6;
}

.result-box-clean span {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.result-list {
    list-style: none;
    padding: 0;
}

.result-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #4B5563;
}

.result-list li i {
    color: var(--primary-500);
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .timeline::before {
        left: 22px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding-left: 60px;
        margin-bottom: 8rem;
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
        padding: 0;
    }

    .timeline-content {
        margin-top: 2rem;
    }

    .timeline-dot {
        left: 22px;
    }



    .reveal-item[data-side="left"],
    .reveal-item[data-side="right"] {
        transform: translateY(40px);
    }
}

/* =====================================================
   ABOUT US SECTION
   ===================================================== */
.about-section {
    background-color: #F9FAFB;
    padding: 6rem 0;
    overflow: hidden;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Centered About Content */
.about-content.centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content.centered .section-title {
    text-align: center;
    margin: 1rem 0 2rem;
}

/* Slider Styles */
.about-slider {
    position: relative;
    margin-top: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.about-slide {
    display: none;
    font-size: 1.5rem !important;
    /* Larger text as requested */
    color: #374151;
    line-height: 1.6;
    animation: fadeIn 0.5s ease forwards;
}

.about-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.slider-controls {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slide-indicator {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slider-next-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-500);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(4, 199, 189, 0.3);
}

.slider-next-btn:hover {
    background: var(--primary-600);
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(4, 199, 189, 0.4);
}

@media (max-width: 768px) {
    .about-slider {
        padding: 2rem;
        min-height: 350px;
    }

    .about-slide {
        font-size: 1.125rem !important;
    }
}


/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    background-color: #FFFFFF;
    padding: 3rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 4rem;
}

.faq-item {
    border-bottom: 1px solid #E5E7EB;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question span {
    padding-right: 1.5rem;
}

.faq-question i {
    color: var(--primary-500);
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
}

.faq-answer-inner {
    padding-bottom: 2rem;
    color: #4B5563;
    line-height: 1.6;
    font-size: 1rem;
}

.lang-switch {
    position: relative;
    flex-shrink: 0;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f4f4f5;
    color: #111111;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.lang-switch-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.15s ease;
}

.lang-switch.is-open .lang-switch-btn svg {
    transform: rotate(180deg);
}

.lang-switch-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    color: #111111;
    border-radius: 8px;
    min-width: 4.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 0.25rem;
    z-index: 30;
}

.lang-switch-menu[hidden] {
    display: none;
}

.lang-switch-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.5rem 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 6px;
    color: #111111;
    font-family: inherit;
}

.lang-switch-menu button[aria-current="true"],
.lang-switch-menu button:hover {
    background: #f4f4f5;
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}