@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@400;700&family=Roboto+Condensed:wght@700&display=swap');

:root {
    --brand-orange: #EB690A;
    --brand-dark: #1A1A1A;
    --whatsapp-green: #25D366;
}

html {
    background-color: #ffffff;
    
    
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background: transparent;
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Global Mobile Sanity & Overflow Fixes */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    position: relative;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Responsive Scaling for Small Screens (360px Targeted) */
@media (max-width: 480px) {
    h1 { font-size: 1.85rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.6rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.4rem !important; }
    
    .text-6xl, .text-7xl { font-size: 2.25rem !important; }
    .text-5xl { font-size: 1.85rem !important; }
    .text-4xl { font-size: 1.6rem !important; }

    /* Space Management - tighter for mobile to maximize content area */
    .px-6, .px-8, .px-12 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .py-[60px], .py-[80px], .py-[100px] { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .gap-10, .gap-12, .gap-16 { gap: 1.75rem !important; }
    
    /* Remove horizontal specific paddings causing misalignment */
    .pr-8, .pr-12, .pl-8, .pl-12 { padding-right: 0 !important; padding-left: 0 !important; }
    
    /* Scale containers */
    .max-w-7xl, .max-w-6xl, .max-w-5xl { width: 100% !important; padding-left: 1rem !important; padding-right: 1rem !important; }
}

@media (max-width: 380px) {
    /* Extreme small screen optimizations (e.g. iPhone SE, old Androids) */
    .px-6, .px-4, .px-12, .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
    h1 { font-size: 1.65rem !important; }
    h2 { font-size: 1.45rem !important; }
    .nav-container { padding: 0.5rem 1rem !important; }
    .btn-orange, .btn-orange-premium { width: 100% !important; padding-left: 1rem !important; padding-right: 1rem !important; }
}

.glass-nav {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 140px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.glass-nav.scrolled {
    height: 100px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-pill-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.5s ease;
}

.glass-nav.scrolled .nav-pill-wrapper {
    background: transparent;
    box-shadow: none;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1.25rem;
    }
}

.glass-nav img {
    display: block;
    flex-shrink: 0;
    height: 112px; /* Equivalent to h-28 */
    width: auto;
    object-fit: contain;
    margin: 5px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled img {
    height: 80px; /* Equivalent to h-20 */
}

@media (max-width: 1024px) {
    .glass-nav img {
        height: 96px; /* Equivalent to h-24 */
    }
    .glass-nav.scrolled img {
        height: 72px;
    }
}

@media (max-width: 768px) {
    .glass-nav img {
        height: 80px; /* Equivalent to h-20 */
    }
    .glass-nav.scrolled img {
        height: 64px;
    }
}

@media (max-width: 480px) {
    .glass-nav img {
        height: 96px;
    }
    .glass-nav.scrolled img {
        height: 60px;
    }
}

/* NextGen Expansion - custom card styles */
.nextgen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.nextgen-card {
    position: relative;
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.nextgen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 0 8px;
    letter-spacing: 0.08em;
}

.nextgen-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-orange);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.nextgen-cta:hover,
.nextgen-cta:focus {
    filter: brightness(0.95);
    transform: translateY(-2px);
    outline: none;
}

.progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-orange), #ff9a3a);
    width: 0%;
    transition: width 0.8s ease;
}

/* Predefined progress widths to avoid inline styles */
.progress-fill.p80 { width: 80%; }
.progress-fill.p65 { width: 65%; }
.progress-fill.p30 { width: 30%; }

/* Small responsive tweaks for NextGen section */
@media (max-width: 900px) {
    .nextgen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nextgen-grid {
        grid-template-columns: 1fr;
    }
    .nextgen-card { padding: 1rem; }
}

/* Focus styles for keyboard users */
.nextgen-cta:focus-visible {
    box-shadow: 0 0 0 4px rgba(235, 105, 10, 0.12);
}


/* Pill Navigation Links */
.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(235, 105, 10, 0.08);
    border-radius: 99px;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.active::before {
    background: var(--brand-orange);
    box-shadow: 0 4px 15px rgba(235, 105, 10, 0.2);
}

.nav-link:hover {
    color: var(--brand-orange);
}

.nav-link.active {
    color: #ffffff !important;
}

.btn-orange-premium {
    background: linear-gradient(135deg, #EB690A 0%, #FF8A3D 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(235, 105, 10, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-orange-premium:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(235, 105, 10, 0.6);
    filter: brightness(1.1);
}

.btn-orange-premium:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(235, 105, 10, 0.3);
}

/* Mobile Menu Enhancements */
#mobile-menu {
    position: fixed;
    top: 140px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu.active {
    height: calc(100vh - 100px);
    opacity: 1;
    visibility: visible;
}

.glass-nav.scrolled #mobile-menu {
    top: 100px;
}

.glass-nav.scrolled #mobile-menu.active {
    height: calc(100vh - 100px);
}

#mobile-menu .nav-link-mobile {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f2937;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

#mobile-menu .nav-link-mobile:hover,
#mobile-menu .nav-link-mobile.active {
    color: var(--brand-orange);
    padding-left: 0.5rem;
}

/* Global Transition Pattern */
a, button, .group, .nextgen-card, .industrial-card, .portfolio-item, .hover-trigger {
    transition: all 0.3s ease !important;
}

/* Hover Accessibility & Contrast Utilities */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.hover-bright:hover {
    filter: brightness(1.1);
}

.hover-darken:hover {
    filter: brightness(0.9);
}

/* Force high contrast text on hover when background changes - Removed text color change */
.hover-orange:hover {
    background-color: var(--brand-orange) !important;
}

/* Hover effects handled by above nav-link rules */

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.2) 100%);
}

.btn-orange {
    background-color: var(--brand-orange);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-orange:hover {
    background-color: #c2410c; /* High-contrast dark orange */
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(194, 65, 12, 0.4);
}

.btn-orange:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.9);
}

.btn-orange:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(235, 105, 10, 0.4);
}

/* Global Focus Ring for Links/Buttons */
a:focus-visible, 
button:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 4px;
}

/* Tactile feedback for all buttons */
button:active {
    transform: scale(0.97);
}

.industrial-card {
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

.industrial-card:hover {
    border-left-color: var(--brand-orange);
    background: #f9fafb;
}

.stat-border {
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .stat-border {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1rem;
    }
}

#mobile-menu a {
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-pulse {
    display: none;
}

/* LinkedIn Floating Button Styles */
.linkedin-float {
    position: fixed;
    bottom: 92px;
    right: 30px;
    z-index: 100;
    transition: all 0.3s ease;
}

.linkedin-float:hover {
    transform: scale(1.1);
}

.linkedin-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--linkedin-blue);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-blue 2s infinite;
    opacity: 0.5;
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ===================================================================
   COPY-PASTE FIX: Force selection text to dark color.
   Using selection:text-white (Tailwind) copies white text to clipboard —
   making pasted text invisible on white backgrounds in Word/Docs/etc.
   This override is the single source of truth for ::selection styling.
   =================================================================== */
::selection {
    background-color: var(--brand-orange);
    color: #1A1A1A;              /* dark charcoal — readable after paste */
    -webkit-text-fill-color: #1A1A1A;  /* prevent any inherited transparent fill */
}

::-moz-selection {
    background-color: var(--brand-orange);
    color: #1A1A1A;
}

.text-brand-orange {
    color: var(--brand-orange);
}

.bg-brand-orange {
    background-color: var(--brand-orange);
}

.border-brand-orange {
    border-color: var(--brand-orange);
}

iframe {
    border: none;
}

/* Partner & Customer Logos Section */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
}

.logo-card {
    flex: 0 0 calc(50% - 0.625rem);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2rem;
    height: 140px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .logo-grid {
        gap: 1.5rem;
    }
    .logo-card {
        flex: 0 0 calc(33.333% - 1rem);
        height: 180px;
        padding: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .logo-grid {
        gap: 2rem;
    }
    .logo-card {
        flex: 0 0 calc(20% - 1.6rem); /* 5 columns */
    }
    /* Both tier1 and end-customers now use 5 columns for better visual hierarchy */
    .logo-grid.tier1 .logo-card,
    .logo-grid.end-customers .logo-card {
        flex: 0 0 calc(20% - 1.6rem);
    }
}

.logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(255, 107, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: var(--brand-orange);
    background-color: #fff;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-card:hover img {
    transform: scale(1.05);
}

/* Adjustments for text-based logos in the grid */
.logo-card div, 
.logo-card span {
    transition: transform 0.4s ease;
}

.logo-card:hover div, 
.logo-card:hover span {
    transform: scale(1.05);
}

/* Tier 1 Logo Prominence Fix */
.logo-premium {
    transform: scale(1.2) !important;
    filter: brightness(1.02) contrast(1.02);
    opacity: 1 !important;
    will-change: transform;
}

.logo-boost-extra {
    transform: scale(1.7) !important;
    filter: brightness(1.05) contrast(1.1);
}

.logo-card:hover .logo-premium {
    transform: scale(1.28) !important;
}

.logo-card:hover .logo-boost-extra {
    transform: scale(1.8) !important;
}

/* High-Fidelity Refined Footer Design with Sharp Highlighter Effect */
footer {
    background: #ffffff;
    border-top: 1px solid #E2E8F0;
    padding: 100px 0 60px;
    position: relative;
}

.footer-section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brand-orange);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
}

.footer-nav-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-link:hover, .footer-nav-link-active {
    color: var(--brand-orange) !important;
    transform: translateX(4px);
}

.footer-nav-link-active {
    font-weight: 800 !important;
    position: relative;
}

.footer-nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 15px;
    height: 2px;
    background: var(--brand-orange);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(235, 105, 10, 0.3);
}

.footer-icon-circle {
    width: 42px;
    height: 42px;
    background: #fff8f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    flex-shrink: 0;
}

.footer-social-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.footer-social-block:hover {
    background: #f8fafc;
    transform: translateX(4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.footer-newsletter-box {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-newsletter-box:focus-within {
    background: #ffffff;
    border-color: var(--brand-orange);
    box-shadow: 0 10px 25px -5px rgba(235, 105, 10, 0.1);
}

.footer-newsletter-input {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.footer-bottom-dark {
    background: #ffffff;
    padding: 2.5rem 0;
    border-top: 1px solid #f1f5f9;
}

/* Mobile-Specific Refinements for 360px targeted views */
@media (max-width: 768px) {
    footer {
        padding: 60px 0 40px !important;
        text-align: center !important;
    }

    footer .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3.5rem !important;
        text-align: center !important;
    }

    /* Force all columns to be full-width and center-aligned */
    footer div[class*="lg:col-span-"] {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    footer h5.footer-section-title {
        text-align: center !important;
        margin-bottom: 2rem !important;
        position: relative !important;
        display: inline-block !important; /* Required for the accent line centering */
    }

    /* Centered accent line under headings */
    footer h5.footer-section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 24px;
        height: 3px;
        background: var(--brand-orange);
        border-radius: 99px;
    }

    footer img {
        margin: 0 auto 2rem !important;
        max-width: 260px !important;
        height: auto !important;
    }

    footer p {
        text-align: center !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        font-size: 14px !important;
    }

    footer ul {
        width: 100% !important;
        text-align: center !important;
    }

    footer ul li {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Connect Section Icons & Text - Horizontal stack centering */
    footer .flex.gap-4 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    footer .footer-icon-circle {
        margin: 0 auto !important;
    }

    /* Follow Us Section - Centered social blocks */
    footer .footer-social-block {
        max-width: 260px !important;
        justify-content: center !important;
        margin: 0 auto 0.75rem !important;
    }

    /* Bottom Bar - Vertical stack centered on mobile */
    .footer-bottom-dark .max-w-7xl {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .footer-bottom-dark .flex.items-center {
        flex-direction: column !important;
        gap: 1.25rem !important;
        justify-content: center !important;
    }

    .footer-bottom-dark .text-right {
        text-align: center !important;
    }
}


.section-premium-gray {
    background: #ffffff !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
