/* 
   Tech Flexa FZE LLC Custom Premium Stylesheet
   Design Philosophy: Apple Minimalist + Stripe Glassmorphism + Nike Performance
*/

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

:root {
    --primary: #0F62FE; /* Stripe Blue */
    --primary-hover: #0043CE;
    --primary-gradient: linear-gradient(135deg, #0F62FE 0%, #39D353 100%); /* Tech meets Sports */
    --tech-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%); /* Stripe tech vibe */
    --accent: #E01A4F; /* High-intensity sports red */
    --dark: #0A0F1D; /* Deep space dark (luxury) */
    --light-bg: #F8F9FA;
    --card-bg-light: rgba(255, 255, 255, 0.8);
    --card-bg-dark: rgba(10, 15, 29, 0.7);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-dark: rgba(255, 255, 255, 0.08);
    --text-primary: #1C1F2A;
    --text-muted: #6B7280;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-glowing: 0 15px 35px -5px rgba(15, 98, 254, 0.25);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Premium Glassmorphism Navbar */
.navbar-premium {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    z-index: 1050;
}

.navbar-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: min(220px, 55vw);
    object-fit: contain;
}

.footer-brand-logo {
    display: block;
    height: auto;
    width: auto;
    max-width: min(180px, 70vw);
    max-height: 110px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .navbar-brand-logo {
        height: 36px;
        max-width: min(180px, 60vw);
    }
}

.navbar-premium.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-premium);
}

.nav-link-premium {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-smooth);
}
.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}
.nav-link-premium:hover::after,
.nav-link-premium.active::after {
    width: 80%;
}

/* Mega Menu */
.megamenu {
    position: static;
}
.megamenu-dropdown {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: none;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    display: block;
}
.megamenu:hover .megamenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    background: #0B0F19; /* High-contrast Dark */
    color: #FFFFFF;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 98, 254, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 211, 83, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    left: -100px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #FFFFFF 30%, #A0BFFD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Buttons */
.btn-premium {
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-primary-premium {
    background: var(--tech-gradient);
    color: #FFFFFF;
}
.btn-primary-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glowing);
    color: #FFFFFF;
}
.btn-outline-premium {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(-3px);
}
.btn-dark-premium {
    background: var(--dark);
    color: #FFFFFF;
}
.btn-dark-premium:hover {
    background: #1a233b;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Premium Cards */
.card-premium {
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Premium Product Cards */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #F3F4F6;
    overflow: hidden;
    border-radius: 15px;
}
.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}
.product-card:hover .product-image-container img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
}
.badge-ceil {
    background: var(--accent);
    color: #FFFFFF;
}
.badge-bestseller {
    background: #FF9F43;
    color: #FFFFFF;
}
.badge-new {
    background: #10B981;
    color: #FFFFFF;
}
.product-overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    transition: var(--transition-smooth);
    opacity: 0;
}
.product-card:hover .product-overlay-actions {
    bottom: 0;
    opacity: 1;
}

/* Feature/Technology Cards (Stripe Style) */
.tech-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.03) 0%, rgba(57, 211, 83, 0.03) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}
.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 98, 254, 0.08);
}
.tech-card:hover::before {
    opacity: 1;
}
.tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(15, 98, 254, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}
.tech-card:hover .tech-icon {
    background: var(--primary);
    color: #FFFFFF;
    transform: rotate(5deg) scale(1.05);
}

/* Landing Pages - Feature Grids & Sub-sections */
.product-hero {
    background: radial-gradient(circle at 10% 20%, rgba(15, 98, 254, 0.08) 0%, rgba(0, 0, 0, 0) 90%), #FFFFFF;
    border-bottom: 1px solid var(--border-color);
}
.hrms-dashboard-mockup, .risk-dashboard-mockup, .accounting-dashboard-mockup {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    background: #0B0F19;
    padding: 1.5rem;
    overflow: hidden;
}

/* Category Filter Layout */
.filter-sidebar {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}
.filter-section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* B2B / Dealer portal specific */
.dealer-benefits-card {
    background: #FFFFFF;
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-premium);
}

/* Admin Dashboard layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: #9CA3AF;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.admin-sidebar .sidebar-logo {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-sidebar .sidebar-menu {
    flex-grow: 1;
    padding: 1rem 0;
}
.admin-sidebar .menu-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}
.admin-sidebar .menu-link:hover, .admin-sidebar .menu-link.active {
    color: #FFFFFF;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}
.admin-sidebar .menu-link i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.1rem;
}
.admin-content {
    flex-grow: 1;
    background: #F3F4F6;
    overflow-y: auto;
}
.admin-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card-stat {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    background: #FFFFFF;
    transition: var(--transition-smooth);
}
.admin-card-stat:hover {
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animated-fade {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dark Section Toggle for Homepage UI */
.dark-section {
    background-color: #0A0F1D;
    color: #FFFFFF;
    padding: 100px 0;
    position: relative;
}
.dark-section .section-title {
    background: linear-gradient(135deg, #FFFFFF 40%, #85A5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Star ratings styling */
.rating-stars {
    color: #F59E0B;
}

/* Cart Float Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    font-weight: 700;
}

/* Module Showcase (software product deep-dives) */
.module-showcase-item {
    border-radius: 12px;
}
.module-showcase-img-wrap {
    overflow: hidden;
    border-radius: 20px;
    background: #F3F4F6;
}
.module-showcase-img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    min-height: 200px;
    transition: var(--transition-smooth);
}
.module-showcase-item:hover .module-showcase-img {
    transform: scale(1.02);
}
.module-showcase-features li {
    font-size: 0.95rem;
    color: var(--text-muted, #6B7280);
}
.module-showcase-cta {
    border-top: 1px solid var(--border-color);
}

/* Blog images */
.blog-card-image-link {
    display: block;
    overflow: hidden;
    background: #F3F4F6;
}
.blog-card-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    min-height: 160px;
    transition: var(--transition-smooth);
}
.blog-card-image-link:hover .blog-card-image {
    transform: scale(1.04);
}
.blog-featured-image-wrap {
    overflow: hidden;
    border-radius: 20px;
    background: #F3F4F6;
}
.blog-featured-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    min-height: 220px;
}
.blog-rich-text p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* Legal pages */
.legal-content p,
.legal-content li {
    line-height: 1.75;
}
.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}
.legal-content a {
    color: var(--tech-primary, #0F62FE);
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}

/* Gallery */
.gallery-card {
    height: 280px;
    background: #F3F4F6;
}
.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-card-image {
    transform: scale(1.05);
}
.gallery-card-caption {
    background: linear-gradient(to top, rgba(10, 15, 29, 0.92) 0%, rgba(10, 15, 29, 0.4) 70%, transparent 100%);
}
.gallery-filter-btn.active {
    pointer-events: none;
}
