/* Modern Design System - JG Media (Professional Refined) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;
    /* Darker, more corporate blue/black */
    --primary-light: #334155;
    --accent: #0284c7;
    /* Professional bright blue match (Sky 600) */
    --dark: #020617;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --text-main: #0f172a;
    --text-muted: #475569;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    position: relative;
    width: 100%;
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Subtle dot pattern */
}

/* Background Decorations */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Heavy blur for soft look */
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), rgba(15, 23, 42, 0.05));
}

.blob-2 {
    top: 40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent);
    animation-delay: -5s;
}

.blob-3 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

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

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

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

/* Modern Cards - Clean & Professional */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.glass {
    /* Removing heavy glass effect for cleaner look */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gray-200);
}

/* Updated Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-100);
}

/* Navbar Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--gray-200);
    padding: 0.75rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

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

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Infinite Slider */
.slider-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    width: 100%;
}

.slider-container::before,
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.logo-slider {
    display: inline-block;
    animation: slide 40s linear infinite;
}

.slider-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3rem;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.slider-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.slider-item img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: transparent;
    /* Changed from white to show body pattern */
}

/* Navbar Solid (for catalog page) */
.navbar-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Technical Grid Pattern */
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
    max-width: 650px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Features/Services */
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid var(--gray-200);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Catalog Grid */
.product-card {
    position: relative;
    overflow: hidden;
}

.price-tag {
    display: inline-block;
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.product-image {
    height: 200px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-logo {
    height: 36px;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Utilities */
.text-gradient {
    color: var(--primary);
    /* Solid color for professional look instead of gradient */
    background: none;
    -webkit-text-fill-color: initial;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Button Improvements */
    .hero-content .flex {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-content .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem 1.5rem;
        /* Larger touch target */
    }

    .btn {
        min-height: 48px;
        /* Accessible touch target size */
    }

    .card .btn {
        margin-top: 0.5rem;
    }

    /* Reference Cards Mobile */
    .reference-card-inner {
        flex-direction: column;
    }

    .reference-card-inner .feature-image {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
}

.reference-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}