/* ============================================
   Elezen R&D - Modern Corporate Website Styles
   ============================================ */

:root {
    --primary-color: #ed1b24;
    --primary-dark: #c4161e;
    --secondary-color: #1a1a1a;
    --accent-color: #ed1b24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme='dark'] {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #111827;
    --bg-white: #1f2937;
    --border-color: #374151;
}

[data-bs-theme='dark'] .section.bg-light {
    background-color: var(--bg-light) !important;
}

[data-bs-theme='dark'] #products,
[data-bs-theme='dark'] #features {
    background-color: var(--bg-light) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    padding-top: 80px;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.display-1,
.display-2,
.display-3,
.display-4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    backdrop-filter: blur(10px);
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar.over-hero {
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme='dark'] .navbar.over-hero {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

[data-bs-theme='dark'] .navbar.scrolled {
    background-color: rgba(31, 41, 55, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    transition: var(--transition);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(250, 250, 250, 1) 0%,
        rgba(240, 242, 245, 1) 100%
    );
    overflow: hidden;
    padding: 100px 0;
}

.hero > .container {
    position: relative;
    z-index: 10;
}

[data-bs-theme='dark'] .hero {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 23, 1) 0%,
        rgba(30, 30, 35, 1) 100%
    );
}

/* Animated Background Effects */
.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Animated Gradient Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float-blob 20s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
    transition:
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease;
}

[data-bs-theme='dark'] .blob {
    opacity: 0.3;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(237, 27, 36, 0.4) 0%,
        rgba(255, 107, 107, 0.2) 100%
    );
    top: -150px;
    left: -100px;
    animation-duration: 25s;
    pointer-events: none;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 107, 0.3) 0%,
        rgba(237, 27, 36, 0.15) 100%
    );
    top: calc(100% - 300px);
    left: calc(100% - 350px);
    animation-duration: 30s;
    animation-delay: -5s;
    pointer-events: none;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(237, 27, 36, 0.35) 0%,
        rgba(255, 182, 193, 0.2) 100%
    );
    top: 35%;
    left: calc(100% - 350px);
    animation-duration: 22s;
    animation-delay: -10s;
    pointer-events: none;
}

@keyframes float-blob {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Animated Grid Pattern */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(237, 27, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(237, 27, 36, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-bs-theme='dark'] .hero-grid {
    background-image:
        linear-gradient(rgba(255, 107, 107, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 107, 0.05) 1px, transparent 1px);
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ed1b24, rgba(237, 27, 36, 0.4));
    border-radius: 50%;
    animation: float-particle-light 15s ease-in-out infinite;
    will-change: transform, opacity;
    transition:
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.5s ease;
    box-shadow: 0 0 8px rgba(237, 27, 36, 0.3);
}

[data-bs-theme='dark'] .particle {
    background: radial-gradient(circle, #ff6b6b, rgba(255, 107, 107, 0.7));
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.7);
    animation: float-particle-dark 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-duration: 18s;
    animation-delay: 0s;
}
.particle:nth-child(2) {
    top: 25%;
    left: 22%;
    animation-duration: 22s;
    animation-delay: -1s;
}
.particle:nth-child(3) {
    top: 35%;
    left: 45%;
    animation-duration: 20s;
    animation-delay: -3s;
}
.particle:nth-child(4) {
    top: 50%;
    left: 15%;
    animation-duration: 25s;
    animation-delay: -2s;
}
.particle:nth-child(5) {
    top: 65%;
    left: 78%;
    animation-duration: 19s;
    animation-delay: -5s;
}
.particle:nth-child(6) {
    top: 75%;
    left: 35%;
    animation-duration: 23s;
    animation-delay: -4s;
}
.particle:nth-child(7) {
    top: 10%;
    left: 88%;
    animation-duration: 21s;
    animation-delay: -6s;
}
.particle:nth-child(8) {
    top: 85%;
    left: 12%;
    animation-duration: 24s;
    animation-delay: -8s;
}
.particle:nth-child(9) {
    top: 40%;
    left: 75%;
    animation-duration: 20s;
    animation-delay: -2s;
}
.particle:nth-child(10) {
    top: 20%;
    left: 60%;
    animation-duration: 19s;
    animation-delay: -7s;
}
.particle:nth-child(11) {
    top: 55%;
    left: 90%;
    animation-duration: 22s;
    animation-delay: -3s;
}
.particle:nth-child(12) {
    top: 70%;
    left: 55%;
    animation-duration: 21s;
    animation-delay: -9s;
}
.particle:nth-child(13) {
    top: 30%;
    left: 35%;
    animation-duration: 23s;
    animation-delay: -5s;
}
.particle:nth-child(14) {
    top: 60%;
    left: 25%;
    animation-duration: 20s;
    animation-delay: -4s;
}
.particle:nth-child(15) {
    top: 15%;
    left: 70%;
    animation-duration: 24s;
    animation-delay: -6s;
}
.particle:nth-child(16) {
    top: 48%;
    left: 50%;
    animation-duration: 18s;
    animation-delay: -8s;
}
.particle:nth-child(17) {
    top: 80%;
    left: 80%;
    animation-duration: 22s;
    animation-delay: -2s;
}
.particle:nth-child(18) {
    top: 25%;
    left: 8%;
    animation-duration: 21s;
    animation-delay: -10s;
}
.particle:nth-child(19) {
    top: 62%;
    left: 68%;
    animation-duration: 19s;
    animation-delay: -4s;
}
.particle:nth-child(20) {
    top: 38%;
    left: 18%;
    animation-duration: 23s;
    animation-delay: -7s;
}
.particle:nth-child(21) {
    top: 72%;
    left: 92%;
    animation-duration: 20s;
    animation-delay: -5s;
}
.particle:nth-child(22) {
    top: 12%;
    left: 42%;
    animation-duration: 24s;
    animation-delay: -9s;
}
.particle:nth-child(23) {
    top: 58%;
    left: 42%;
    animation-duration: 18s;
    animation-delay: -3s;
}
.particle:nth-child(24) {
    top: 88%;
    left: 55%;
    animation-duration: 22s;
    animation-delay: -6s;
}
.particle:nth-child(25) {
    top: 45%;
    left: 88%;
    animation-duration: 21s;
    animation-delay: -11s;
}

@keyframes float-particle-light {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translate(40px, -50px) scale(1.4);
        opacity: 0.2;
    }
    50% {
        transform: translate(-30px, -100px) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translate(50px, -60px) scale(1.3);
        opacity: 0.18;
    }
}

@keyframes float-particle-dark {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(40px, -50px) scale(1.4);
        opacity: 0.4;
    }
    50% {
        transform: translate(-30px, -100px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate(50px, -60px) scale(1.3);
        opacity: 0.35;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ed1b24 0%, #ff6b6b 50%, #ed1b24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
    color: #4a5568;
}

[data-bs-theme='dark'] .hero p {
    color: #cbd5e0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #ed1b24 0%, #d61820 100%);
    color: white;
    padding: 1rem 2.25rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(237, 27, 36, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(237, 27, 36, 0.4);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: #ed1b24;
    padding: 1rem 2.25rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid #ed1b24;
    transition: all 0.3s ease;
}

[data-bs-theme='dark'] .btn-outline-custom {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.btn-outline-custom:hover {
    background: #ed1b24;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(237, 27, 36, 0.3);
}

[data-bs-theme='dark'] .btn-outline-custom:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

/* Hero Images - Overlapping Design */
.hero-images {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-img {
    position: absolute;
    width: 350px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

[data-bs-theme='dark'] .hero-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-img-1 {
    top: 50px;
    left: 0;
    z-index: 3;
    transform: rotate(-6deg);
}

.hero-img-2 {
    top: 100px;
    right: 50px;
    z-index: 2;
    transform: rotate(8deg);
}

.hero-img-3 {
    bottom: 50px;
    left: 80px;
    z-index: 1;
    transform: rotate(-3deg);
}

.hero-img:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* ============================================
   Section Styling
   ============================================ */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* ============================================
   About Section
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ============================================
   Products Section - Slider
   ============================================ */

.products-slider-wrapper {
    position: relative;
    margin-top: 3rem;
}

.products-slider-wrapper::before,
.products-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.products-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.products-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

[data-bs-theme='dark'] .products-slider-wrapper::before,
[data-bs-theme='dark'] .products-slider-wrapper::after {
    background: linear-gradient(to right, var(--bg-light), transparent);
}

[data-bs-theme='dark'] .products-slider-wrapper::after {
    background: linear-gradient(to left, var(--bg-light), transparent);
}

/* Owl Carousel Custom Styles */
.products-slider .owl-stage-outer {
    padding: 1rem 0;
}

.products-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.products-slider .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white) !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    pointer-events: all;
    margin: 0 !important;
}

.products-slider .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1);
}

.products-slider .owl-nav .owl-prev {
    margin-left: -55px !important;
}

.products-slider .owl-nav .owl-next {
    margin-right: -55px !important;
}

.products-slider .owl-item {
    padding: 0.5rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

@media (max-width: 768px) {
    .products-slider .owl-nav {
        display: none;
    }

    .products-slider-wrapper::before,
    .products-slider-wrapper::after {
        width: 50px;
    }
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.product-link:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* ============================================
   Services Section - Vertical Stacking Effect
   ============================================ */

#services {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
    transition: background 0.4s ease;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(168, 85, 247, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(59, 130, 246, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 40%,
            rgba(14, 165, 233, 0.15) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: 1;
}

#services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.15) 0%,
        transparent 60%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

#services > * {
    position: relative;
    z-index: 1;
}

[data-bs-theme='dark'] #services {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.services-scroller-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0;
    overflow: visible;
    width: 100%;
}

.services-scroller {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.card-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.service-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: row;
    height: 380px;
    will-change: transform;
    transform-origin: top center;
}

.service-card:nth-child(1) {
    z-index: 6;
}

.service-card:nth-child(2) {
    z-index: 5;
}

.service-card:nth-child(3) {
    z-index: 4;
}

.service-card:nth-child(4) {
    z-index: 3;
}
.service-card:nth-child(5) {
    z-index: 2;
}

.service-card:nth-child(6) {
    z-index: 1;
}

@media (max-width: 768px) {
    .services-scroller {
        padding: 0 1rem;
    }

    .service-card {
        height: 340px;
        margin-bottom: 1.5rem;
    }

    .service-card-left {
        padding: 2rem 1.5rem;
    }

    .service-card-right {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .services-scroller {
        padding: 0 1rem;
    }

    .service-card {
        flex-direction: column;
        height: auto;
        min-height: 400px;
        margin-bottom: 1rem;
    }

    .service-card-left {
        padding: 2rem 1.5rem;
        min-width: 100%;
    }

    .service-card-right {
        padding: 1.5rem;
        min-width: 100%;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-icon {
        font-size: 3rem;
    }
}

.service-card:nth-child(1) {
    z-index: 15;
}

.service-card:nth-child(2) {
    z-index: 14;
}

.service-card:nth-child(3) {
    z-index: 13;
}

.service-card:nth-child(4) {
    z-index: 12;
}

.service-card:nth-child(5) {
    z-index: 11;
}

.service-card:nth-child(6) {
    z-index: 10;
}

.service-card-left {
    flex: 1;
    padding: 3rem 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 50%;
}

.service-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    z-index: -1;
}

.service-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.service-description {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-card-right {
    flex: 1;
    background: transparent;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50%;
    position: relative;
    backdrop-filter: blur(5px);
}

.service-icon {
    font-size: 6rem;
    color: #ed1b24;
    opacity: 0.7;
}

.service-card-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   Features Section
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Contact Section - Full Width with Texture
   ============================================ */

.contact-section-wrapper {
    width: 100%;
    position: relative;
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        rgba(237, 27, 36, 0.98) 0%,
        rgba(26, 26, 26, 0.98) 100%
    );
    overflow: hidden;
}

.contact-section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        ),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="texture" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="0" cy="0" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23texture)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.contact-section {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: white;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: white;
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

.btn-submit {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 1);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: #1a1a1a;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section h5 img {
    max-height: 75px;
    display: block;
}

.footer-section p {
    color: #b0b0b0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-section a i {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */

.services-scroller {
    cursor: grab;
}

.services-scroller:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        text-align: center !important;
        margin-bottom: 3rem;
    }

    .hero p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
    }

    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-outline-custom {
        width: 100%;
        max-width: 300px;
    }

    .hero-images {
        height: 350px;
        margin-top: 2rem;
    }

    .hero-img {
        width: 240px;
        height: 180px;
    }

    .hero-img-1 {
        top: 20px;
        left: 10px;
    }

    .hero-img-2 {
        top: 60px;
        right: 10px;
    }

    .hero-img-3 {
        bottom: 20px;
        left: 40px;
    }

    .products-slider {
        padding: 1rem;
    }

    .products-slider-wrapper::before,
    .products-slider-wrapper::after {
        width: 50px;
    }

    .services-scroller-wrapper {
        min-height: 1500px;
    }

    .service-card {
        flex-direction: column;
        height: auto;
        min-height: 250px;
    }

    .service-card-left,
    .service-card-right {
        min-width: 100%;
    }

    .service-card.stacked {
        margin-top: -200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

/* ============================================
   Clients Marquee Styles
   ============================================ */

.section-clients {
    background-color: var(--bg-light);
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.section-clients::before {
    content: 'Our Clients';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 15vw, 7rem);
    font-weight: 800;
    color: rgb(140 140 140 / 8%);
    white-space: nowrap;
    z-index: 0;
    letter-spacing: 5px;
    pointer-events: none;
}

.clients-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.clients-marquee {
    display: flex;
    gap: 5rem;
    width: fit-content;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    max-height: 70px;
    flex-shrink: 0;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.clients-slider .owl-nav {
    display: none;
}

.client-logo-item {
    height: 120px;
    padding: 0 1.5rem;
}

/* ============================================
   Utility Classes
   ============================================ */

.bg-gradient-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

.text-gradient {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Form Validation Styles
   ============================================ */

.form-control {
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.form-control.is-invalid {
    background: rgba(255, 255, 255, 0.95);
    border-color: #ef4444 !important;
}

.form-control.is-invalid:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

.invalid-feedback {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.invalid-feedback::before {
    content: '✕ ';
}

/* ============================================
   Dark Mode Form Styles
   ============================================ */

html[data-bs-theme='dark'] .form-control {
    background: rgba(30, 30, 30, 0.9);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

html[data-bs-theme='dark'] .form-control:focus {
    background: rgba(40, 40, 40, 1);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

html[data-bs-theme='dark'] .form-control.is-invalid {
    background: rgba(40, 30, 30, 0.95);
    border-color: #ef4444 !important;
}

html[data-bs-theme='dark'] .form-control.is-invalid:focus {
    background: rgba(50, 30, 30, 1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
}

html[data-bs-theme='dark'] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    html:not([data-bs-theme='light']) .form-control {
        background: rgba(30, 30, 30, 0.8);
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    html:not([data-bs-theme='light']) .form-control:focus {
        background: rgba(40, 40, 40, 0.9);
        color: rgba(255, 255, 255, 1);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.4);
    }

    html:not([data-bs-theme='light']) .form-control.is-invalid {
        background: rgba(40, 30, 30, 0.95);
        border-color: #ef4444 !important;
    }

    html:not([data-bs-theme='light']) .form-control.is-invalid:focus {
        background: rgba(50, 30, 30, 1);
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
        border-color: #ef4444 !important;
    }

    html:not([data-bs-theme='light']) .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ============================================
   End Form Validation Styles
   ============================================ */
