/* 
   WheelersApp | The Mother of Corporate Sites
   Global Stylesheet v3.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-blue: #1e3a8a;
    --brand-blue-light: #3b82f6;
    --brand-orange: #ff6b00;
    --brand-orange-light: #ff9d00;
    --brand-cyan: #06b6d4;
    --brand-dark: #000000;
    --brand-slate: #1e293b;
    --brand-emerald: #10b981;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

section {
    background: #000;
}

.bg-white {
    background: #000 !important;
}

.bg-dark {
    background: #000 !important;
}

.bg-slate-50 {
    background: #000 !important;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.text-glow {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.grid { 
    display: grid; 
    gap: 2rem; 
}

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

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}

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

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Cinematic Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navigation Styles */
.glass-nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-inner {
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled .nav-inner {
    height: 4rem;
}

.logo img {
    height: 3rem;
    width: auto;
    display: block;
    transition: all 0.4s ease;
}

.glass-nav.scrolled .logo img {
    height: 2rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light));
    transition: width 0.3s ease;
}

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

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

.nav-cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-toggle {
    display: none !important;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-orange);
}

.nav-cta {
    background: var(--brand-orange);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.nav-cta:hover {
    background: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

/* Hero Section */
.gradient-hero {
    background: radial-gradient(circle at top right, #0f172a, #000000);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-16-9 {
    min-height: calc(100vw * 9 / 16);
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-16-9 h1 { color: white; }
.hero-16-9 p { color: rgba(255, 255, 255, 0.7) !important; }

.carbon-pattern {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
}

/* Hero Ecosystem Slider */
.hero-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.hero-slider-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.hero-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-slider-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    transition: all 0.3s ease;
}

.hero-slider-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--brand-orange);
}

.hero-slider-card h4 {
    color: var(--brand-orange);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.hero-slider-card p {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Infinite Logo Slider */
.logo-slider {
    padding: 4rem 0;
    background: #000;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-slider-track {
    display: flex;
    width: calc(250px * 14);
    animation: logoScroll 30s linear infinite;
    gap: 5rem;
    align-items: center;
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.logo-slide {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-slide:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Horizontal Content Slider (Product/Service Showcase) */
.content-slider-wrapper {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
    width: 100%;
    overflow: hidden;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--brand-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-nav-btn:hover {
    background: var(--brand-orange);
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.slider-nav-btn.prev { left: -25px; }
.slider-nav-btn.next { right: -25px; }

@media (max-width: 768px) {
    .slider-nav-btn { display: none; }
}

.content-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding-bottom: 2rem;
    width: 100%;
}

.content-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

@media (max-width: 768px) {
    .content-slide {
        flex: 0 0 90vw !important;
        margin-right: 1rem;
    }
}

.content-slide {
    flex: 0 0 450px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2.5rem;
    padding: 3rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.content-slide .icon-box {
    flex-shrink: 0;
}

.content-slide h3 {
    flex-shrink: 0;
}

.content-slide p {
    flex-grow: 1;
}

.content-slide ul {
    flex-shrink: 0;
    margin-top: auto;
}

.content-slide a {
    flex-shrink: 0;
    margin-top: 2rem;
}

.content-slide:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--brand-orange);
    transform: translateY(-10px);
}

/* Cinematic Hero Slider Overlay (Alternative for Hero Slide) */
/* Split Hero Section */
.split-hero {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

@media (max-width: 992px) {
    .split-hero {
        flex-direction: column;
        height: auto;
    }
    
    .hero-column {
        min-height: 60vh;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-column:hover {
        flex: 1; /* Disable hover expansion on mobile */
    }

    .column-content {
        padding: 4rem 1.5rem !important;
    }
    
    .column-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }

    .column-desc {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }
}

.hero-column {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-column:last-child {
    border-right: none;
}

.hero-column:hover {
    flex: 1.5;
}

.column-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.6s ease;
    z-index: 1;
}

.hero-column:hover .column-bg {
    filter: grayscale(0%);
    opacity: 0.6;
    transform: scale(1.05);
}

.column-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.column-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    border: 1px solid currentColor;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.column-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: white;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.column-title .small-text {
    display: block;
    font-size: 0.4em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.column-title .main-text {
    display: block;
}

.column-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 380px;
    width: 100%;
    min-height: 3.2em; /* Ensure consistent spacing for 2 lines */
}

@media (max-width: 768px) {
    .column-desc {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-blue-light);
    color: var(--white);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(8px);
}

/* Cards */
.card {
    background: var(--white);
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.icon-box {
    width: 4rem;
    height: 4rem;
    background: var(--bg-light);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--brand-blue-light);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 80px;
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-12 { margin-top: 3rem; }
.bg-dark { background-color: var(--brand-dark); color: var(--white); }

/* Responsive Overrides (At the end) */
@media (max-width: 768px) {
    .content-slide {
        flex: 0 0 85vw;
        padding: 2rem;
    }
    
    .logo-slider-track {
        width: calc(150px * 14);
        gap: 2rem;
    }
    
    @keyframes logoScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 7)); }
    }
    
    .logo-slide {
        width: 120px;
    }
}

/* Mobile Alignment Fixes */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
    
    .flex-center-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .flex-center-mobile > div {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .flex-center-mobile ul {
        text-align: left !important;
        display: inline-block !important;
        margin: 0 auto !important;
    }
}

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

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important;
    }
    
    [style*="gap: 8rem"], [style*="gap: 4rem"] {
        gap: 2rem !important;
    }
    
    [style*="margin-bottom: 15rem"], [style*="margin-bottom: 10rem"] {
        margin-bottom: 5rem !important;
    }
    
    [style*="padding: 10rem 8rem"] {
        padding: 4rem 1.5rem !important;
    }

    .container {
        padding: 0 1.5rem !important;
    }

    .nav-inner {
        height: 4rem !important;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
    }

    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.25rem !important; }
    .logo img { height: 2rem !important; position: relative; z-index: 2100; }

    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        position: relative;
        z-index: 2100;
    }

    .nav-cta-group { display: none !important; }
    .nav-links .nav-cta { display: block; margin-top: 1rem; }
    
    section { padding: 5rem 0 !important; }
    h1 { font-size: 3rem !important; }
    h2 { font-size: 2.5rem !important; }
    
    .hero-16-9 { height: auto; min-height: 100vh; padding: 8rem 0 4rem; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-grid div { display: flex; flex-direction: column; align-items: center; }
    .footer-grid p { margin: 0 auto 2rem; }
}
