﻿/* =========================================
   CLYNTEC LANDING PAGE - MOBILE FIXED CSS
   ========================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --whatsapp: #25d366;
}

/* CRITICAL FIX: Prevent horizontal scrolling */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Override Bootstrap container to prevent fixed width overflow */
.container {
    width: 100% !important;
    max-width: 1200px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   NAVBAR & HAMBURGER MENU
   ========================================= */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    color: #2563eb !important;
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

    .nav-links a:not(.btn-primary-custom) {
        color: #0f172a !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s;
    }

        .nav-links a:not(.btn-primary-custom):hover {
            color: #2563eb !important;
        }

/* Hamburger Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #0f172a !important;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

    .mobile-menu.active {
        display: flex; /* Shown when Blazor adds .active */
    }

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a !important;
    text-decoration: none;
    transition: color 0.2s;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
}

    .mobile-menu a:hover {
        color: #2563eb !important;
        background: rgba(37, 99, 235, 0.05);
    }

.mobile-menu .btn-primary-custom {
    width: 100%;
    justify-content: center;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
        color: white !important;
    }

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #0f172a !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-secondary-custom:hover {
        border-color: #2563eb;
        color: #2563eb !important;
    }

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.w-100 {
    width: 100% !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

/* =========================================
   HERO SECTION (Fixed Overflow)
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 15px 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden; /* Prevents bg shape from causing scroll */
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-custom {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a !important;
    word-wrap: break-word;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b !important;
    margin-bottom: 2.5rem;
}

/* FIX: Hero Stats wrapping */
.hero-stats {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%;
}

.stat-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

    .stat-item h3 {
        font-size: 1.75rem;
        font-weight: 800;
        color: #0f172a !important;
        margin-bottom: 0.25rem;
    }

    .stat-item p {
        font-size: 0.85rem;
        color: #64748b !important;
        margin: 0;
    }

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    overflow: hidden;
}

.card-header-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #0f172a !important;
    flex-wrap: wrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #0f172a !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .metric-row:last-child {
        border-bottom: none;
    }

.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

/* =========================================
   SECTIONS & CARDS
   ========================================= */
.section-padding {
    padding: 80px 15px;
}

.bg-light-custom {
    background-color: #f8fafc;
}

.bg-dark-custom {
    background-color: #0f172a;
}

.text-white {
    color: white !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: #2563eb !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a !important;
    word-wrap: break-word;
}

.section-header p {
    color: #64748b !important;
    font-size: 1.1rem;
}

.gradient-text-light {
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Generic Card Styles */
.service-card, .sector-card, .location-card, .contact-card, .diff-card, .value-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
}

    .service-card:hover, .sector-card:hover, .location-card:hover, .contact-card:hover, .diff-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .service-card h3, .sector-card h3, .location-card h3, .contact-card h4, .diff-card h4 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 1rem 0;
        color: #0f172a !important;
        word-wrap: break-word;
    }

    .service-card p, .sector-list li, .location-address, .location-phone, .contact-card p, .diff-card p {
        color: #64748b !important;
        font-size: 0.95rem;
        word-wrap: break-word;
    }

.icon-box, .sector-icon, .location-icon, .contact-icon, .diff-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2563eb !important;
    margin-bottom: 1.5rem;
}

.contact-icon, .diff-icon {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white !important;
}

.sector-list {
    list-style: none;
    padding: 0;
}

    .sector-list li {
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .sector-list li i {
            color: #10b981 !important;
        }

.location-card {
    text-align: center;
    position: relative;
}

.location-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white !important;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

    .location-badge.secondary {
        background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    }

.location-icon {
    margin: 0 auto 1.5rem;
}

.location-address, .location-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Value Cards (Dark Background) */
.value-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .value-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
    }

    .value-card i {
        font-size: 2rem;
        color: #06b6d4 !important;
        margin-bottom: 1rem;
    }

    .value-card h4 {
        color: white !important;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .value-card p {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.9rem;
        margin: 0;
    }

/* Mission & Vision */
.mission-vision {
    margin-top: 2rem;
}

.mv-item {
    margin-bottom: 1.5rem;
}

    .mv-item h5 {
        color: white !important;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .mv-item h5 i {
            color: #06b6d4 !important;
        }

    .mv-item p {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.95rem;
        margin: 0;
    }

/* =========================================
   FOOTER
   ========================================= */
.footer-custom {
    background: #1e293b;
    color: white !important;
    padding: 3rem 15px 1.5rem;
}

    .footer-custom h4 {
        color: white !important;
        font-weight: 800;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .footer-custom h4 i {
            color: #2563eb !important;
        }

    .footer-custom h5 {
        color: white !important;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .footer-custom p {
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 0.5rem;
    }

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.small {
    font-size: 0.875rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: #2563eb !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: white !important;
        }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        color: white !important;
    }

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   CRITICAL RESPONSIVE FIXES (MOBILE)
   ========================================= */
@media (max-width: 991px) {
    /* Show Hamburger, Hide Desktop Links */
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important; /* Forces the compress icon to appear */
    }

    /* Stack Hero Content */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    /* Fix Hero Stats for Mobile */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-divider {
        display: none; /* Hide dividers when stacked */
    }

    .hero-actions {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 15px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
