/* ========================================
   NEW SECTIONS CSS - LOGISTICS LAYOUT
   Complete styling for all new homepage sections
   ======================================== */

/* ========================================
   GLOBAL SECTION UTILITIES
   ======================================== */

#services {
    scroll-margin-top: 150px; /* Offset for sticky header visibility */
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 163, 255, 0.1); /* Blue glow background */
    color: var(--corporate-blue); /* Corporate Blue text */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 700px;
    margin: 0 auto;
}


/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    padding: 6rem 0;
    background: white;
}

.testimonials-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.testimonial-card {
    background: #F8FAFC;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    flex: 1;
}

.quote-icon {
    font-size: 4rem;
    color: var(--corporate-blue); /* Blue quote icon */
    font-family: Georgia, serif;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.testimonial-quote p {
    font-size: 1.125rem;
    color: var(--slate-700);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0055FF 0%, #0033CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1rem;
}

.author-company {
    font-size: 0.875rem;
    color: var(--slate-600);
}

.testimonial-rating {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--corporate-blue); /* Strategic: Consistent Corporate Palette */
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 6rem 0;
    background: #F8FAFC;
}

.faq-container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-content-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .faq-content-wrapper {
        padding: 4rem;
    }
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--corporate-blue);
}

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

.faq-question:hover {
    background: #F8FAFC;
}

.faq-icon {
    color: var(--corporate-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--slate-600);
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   FOOTER CTA BANNER
   ======================================== */

.footer-cta-banner {
    background: #FFFFFF;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--slate-200);
}

.footer-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 163, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-cta-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .footer-cta-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
    }
}

.footer-cta-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-cta-content {
        text-align: left;
    }
}

.footer-cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.footer-cta-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .footer-cta-actions {
        justify-content: flex-start;
    }
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-whatsapp-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 36px;
    background: transparent;
    color: var(--slate-900);
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--slate-200);
    transition: all 0.3s ease;
}

.btn-whatsapp-outline:hover {
    border-color: #25D366;
    background: #25D366;
    color: white;
    transform: translateY(-3px);
}

.footer-cta-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.footer-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1023px) {
    .footer-cta-image {
        display: none;
    }
}


/* ========================================
   NEW ABOUT & STATS SECTION (Clean Style)
   ======================================== */
.about-stats-section {
    background-color: var(--bg-white);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.about-stats-container {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-stats-container {
        grid-template-columns: 0.8fr 1.2fr; /* Watermark left, Content right */
        gap: 6rem;
    }
}

/* Watermark Visual */
.about-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.5rem;
    background: transparent;
    box-shadow: none !important;
}

.about-logo-image {
    width: 80%;
    max-width: 500px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.15; /* Subtle watermark effect */
    object-fit: contain;
}

.about-video-iframe {
    width: 100%;
    max-width: 340px; /* Restrict width for vertical format */
    aspect-ratio: 9 / 16; /* Enforce vertical aspect ratio */
    height: auto;
    object-fit: cover;
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); /* Enhanced shadow for floating effect */
}

/* Content Side */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-tag {
    display: inline-block;
    background-color: rgba(0, 163, 255, 0.1); /* Light Blue Background */
    color: var(--corporate-blue);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
    border-left: 3px solid var(--corporate-blue); /* Technical accent */
}

.about-headline {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--slate-900);
    max-width: 50ch;
}

@media (min-width: 768px) {
    .about-headline {
        font-size: 2.5rem;
    }
}

.text-blue {
    color: var(--corporate-blue);
}

.about-divider {
    width: 100%;
    height: 1px;
    background-color: var(--slate-200);
    margin: 1rem 0;
}

/* Stats Grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
}

@media (min-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.clean-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-main {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: nowrap; /* Force single line */
}

.stat-value {
    font-size: 3rem; /* Larger, more impactful */
    font-weight: 800;
    color: var(--corporate-blue); /* Blue branding */
    line-height: 1;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-400); /* Lighter gray for unit */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.4;
    max-width: 16ch;
}

/* ========================================
   SOLUTION CARDS OVERRIDES - SQUARE REFERENCE STYLE
   ======================================== */

.premium-solutions-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important; /* Minimal gap */
    width: 100% !important; /* Full edge-to-edge width */
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0.25rem !important; /* Micro padding to safely touch walls */
}

@media (max-width: 640px) {
    .premium-solutions-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        padding: 0 1rem !important;
    }
    .solution-card {
        aspect-ratio: auto !important;
        min-height: 300px;
    }
}

.solution-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important; /* Vertical format like "Vision" */
    background: #FFFFFF !important;
    border-radius: 40px !important; /* Smooth modern curve */
    /* Z-Axis Simulation via GPU Matrix */
    transform: perspective(1000px) translate3d(0, 0, 0); 
    will-change: transform;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4) !important; /* Deep depth shadow */
    overflow: hidden !important; /* Strictly enforce clipping */
    border: none !important; /* Remove border to enhance "floating" */
    position: relative !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* TRANSFORM FIX: Force border-radius clipping for GPU layers */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.solution-card:hover {
    transform: perspective(1000px) translate3d(0, -10px, 20px) !important; /* Active approach on hover */
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5) !important;
    border-radius: 40px !important; /* Force maintain rounded corners */
    z-index: 10 !important;
}

.solution-card__background {
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100% !important;
    border-radius: 40px !important;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.solution-card__content {
    position: relative !important;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 60%) !important; /* deeper gradient for legibility */
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 2.5rem 2rem !important; /* Larger internal padding */
    align-items: flex-start !important;
}

.solution-card__title {
    color: white !important;
    font-family: 'Outfit', sans-serif !important; /* Modern premium font */
    font-weight: 700 !important;
    font-size: 2.5rem !important; /* Larger title */
    margin-bottom: 0.5rem !important;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
    line-height: 1.1 !important;
    width: 100%;
}

.solution-card__subtitle {
    color: rgba(255, 255, 255, 0.9) !important; /* Lighter white */
    font-size: 1rem !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    margin-bottom: 0.5rem !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
    width: 100%;
}

.solution-card__overlay {
    display: none !important;
}




.solution-card__icon-wrapper {
    display: none !important;
}



.solution-card__header {
    display: none !important; /* Hide completely to remove spacing */
}

.solution-card__body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Remove internal gap, controlled by margins */
    margin-bottom: 0.5rem !important; /* Minimal space before button */
    width: 100% !important;
    padding: 0 !important;
}



/* Button Full Width at Bottom */
.solution-card__cta {
    display: flex !important;
    position: relative !important; /* Part of flow */
    bottom: auto !important;
    right: auto !important;
    width: 100% !important; /* Occupy full last row */
    background: #f1f5f9 !important; /* Slate 100 - Light Grey Pill */
    color: #0f172a !important; /* Slate 900 - Dark Text */
    padding: 1rem 1.5rem !important;
    border-radius: 9999px !important; /* Full Pill */
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    align-items: center;
    justify-content: center; /* Center content in full width button */
    gap: 0.5rem;
    transition: all 0.2s ease !important;
    margin-top: 0 !important;
}

.solution-card__cta:hover {
    background: #e2e8f0 !important; /* Darker grey on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1) !important;
}

.solution-card__cta .cta-arrow {
    font-size: 1.1em !important;
    color: black !important;
}

.solution-card__cta span {
    font-size: 0.8rem !important;
}


/* ========================================
   HERO CAROUSEL ANIMATION
   ======================================== */
/* ========================================
   HERO CAROUSEL ANIMATION
   ======================================== */
/* Removed hero-background override to allow app.css absolute positioning to work */



/* ========================================
   MODERN HERO TYPOGRAPHY
   ======================================== */
.hero-title-modern {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    text-transform: none !important; /* Enforce Title Case */
    letter-spacing: -0.02em;
}

.hero-subtitle-modern {
    font-size: 1.125rem;
    color: var(--slate-100);
    max-width: 65ch;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--corporate-blue); /* Updated to match corporate blue */
    border-radius: 50%;
    box-shadow: 0 0 8px var(--corporate-blue);
}

.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-industrial {
    background: var(--corporate-blue); /* Consistent Blue */
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px; /* Pill Shape */
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary-industrial:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    background: var(--primary-dark);
}

.btn-ghost-industrial {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px; /* Pill Shape */
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ghost-industrial:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-color: #000; /* Fallback */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 20s infinite linear;
}

/* Sequential Delays (5s per slide) */
.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 5s; }
.carousel-slide:nth-child(3) { animation-delay: 10s; }
.carousel-slide:nth-child(4) { animation-delay: 15s; }

@keyframes fadeSlide {
    0% { opacity: 0; }
    5% { opacity: 1; }      /* 1s Fade In */
    30% { opacity: 1; }     /* Hold until overlap complete (6s total) */
    35% { opacity: 0; }     /* Fade Out */
    100% { opacity: 0; }
}

/* ========================================
   FULL WIDTH LAYOUT OVERRIDES
   ======================================== */
.services-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.services-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
}
