/* Custom Styles for Redjem plastic Website */

:root {
    /* Premium Industrial Palette */
    --primary-color: #26225e;
    /* Deep Purple */
    --primary-light: #3a86ff;
    /* Vibrant Blue for accents */
    --secondary-color: #64748b;
    /* Slate Gray */
    --accent-color: #e53e3e;
    /* Company Red */

    --dark-bg: #0f172a;
    /* Navy Black Background */
    --dark-surface: #1e293b;
    /* Dark Surface */

    --light-bg: #f8fafc;
    /* Crisp White/Gray Background */
    --light-surface: #ffffff;
    /* White Surface */

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;

    --logo-blue: #26225e;
    --logo-blue-dark: #1b1847;

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

    --radius-md: 12px;
    --radius-lg: 20px;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
}



body {
    background-color: var(--light-bg);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Logo Styles */
.logo-img {
    height: 45px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.navbar-brand {
    font-weight: 600;
}

/* Footer Logo Styles */
.footer-logo {
    height: 80px;
    width: auto;
    max-height: 90px;
    object-fit: contain;
    opacity: 0.95;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .footer-logo {
        height: 90px;
    }

    /* Center logo on mobile */
    .navbar>.container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-brand {
        order: 1;
        margin-right: 0 !important;
    }

    .navbar-toggler {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-collapse {
        order: 2;
        width: 100%;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 180px;
    /* Navbar height */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(2.5) contrast(0.8) saturate(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 57, 113, 0.4) 0%, rgba(32, 57, 113, 0.3) 100%);
    z-index: 1;
}

.hero-card {
    background: rgba(11, 79, 140, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
}

.placeholder-image {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Adaptive Backgrounds */
.bg-surface {
    background-color: var(--light-surface) !important;
    transition: background-color 0.3s ease;
}

.bg-alternate {
    background-color: var(--light-bg) !important;
    transition: background-color 0.3s ease;
}

/* Ensure text colors contrast correctly on surfaces */
.bg-surface,
.glass-card {
    color: var(--text-main);
}

.text-adaptive {
    color: var(--text-main) !important;
}

.text-muted-adaptive {
    color: var(--text-muted) !important;
}

/* Navbar */
.navbar {
    background-color: #26225e !important;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: #1b1847 !important;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    background-color: var(--light-surface);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta-section {
    background-color: var(--logo-blue) !important;
}

/* Footer */
footer {
    margin-top: 5rem;
    background-color: var(--logo-blue-dark) !important;
}

footer.bg-dark {
    background-color: var(--logo-blue-dark) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

footer .text-white {
    color: white !important;
    font-weight: normal !important;
}

footer p.text-white {
    font-weight: normal !important;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Design 17 - Hero Section avec Parallaxe */
.hero-parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/PHOTO-2023-02-07-09-22-40 (5).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    will-change: transform;
    filter: brightness(2.5) contrast(0.8) saturate(0.3);
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 57, 113, 0.4) 0%, rgba(32, 57, 113, 0.3) 100%);
    z-index: 1;
}

.hero-title-parallax {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle-parallax {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Creative About Section */
.about-composition {
    position: relative;
    padding: 2rem;
}

.about-image-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.about-logo-floating {
    position: absolute;
    bottom: -30px;
    left: -30px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    max-width: 250px;
}

.about-shape-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.feature-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--light-surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.feature-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Card Hover Effects */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card-hover-effect:hover::before {
    left: 100%;
}

.card-hover-effect:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 35px rgba(32, 57, 113, 0.3);
}

.card-hover-effect .icon-wrapper {
    transition: transform 0.4s ease;
}

.card-hover-effect:hover .icon-wrapper {
    transform: scale(1.2) rotate(5deg);
}

.card-hover-effect:hover .icon-wrapper i {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* History Image */
.history-image {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.history-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Parallax Scroll Effect */
@media (prefers-reduced-motion: no-preference) {
    .parallax-background {
        animation: parallaxScroll 20s ease-in-out infinite;
    }
}

@keyframes parallaxScroll {

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

    50% {
        transform: translateY(-5%);
    }
}

/* Responsive for Parallax */
@media (max-width: 768px) {
    .hero-parallax-section {
        min-height: 80vh;
    }

    .parallax-background {
        background-attachment: scroll;
    }

    .hero-title-parallax {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Hero Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

/* ============================
   NEW HERO SECTION
   ============================ */
.hero-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -180px;
    padding-top: 180px;
    color: #fff;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #26225e 0%, #1b1847 30%, #2d1f6e 60%, #26225e 100%);
    z-index: 0;
}

/* Animated Particles */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.15;
    animation: heroFloat 12s ease-in-out infinite;
}

.particle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3a86ff 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-duration: 14s;
}

.particle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #e53e3e 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-duration: 16s;
    animation-delay: -3s;
}

.particle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #3a86ff 0%, transparent 70%);
    top: 40%;
    left: 15%;
    animation-duration: 10s;
    animation-delay: -5s;
}

.particle-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
    top: 20%;
    right: 25%;
    animation-duration: 18s;
    animation-delay: -7s;
}

.particle-5 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #e53e3e 0%, transparent 70%);
    bottom: 25%;
    right: 15%;
    animation-duration: 12s;
    animation-delay: -2s;
}

/* Animated Rings */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.ring-1 {
    width: 500px;
    height: 500px;
    top: -15%;
    right: -10%;
    animation: heroSpin 30s linear infinite;
}

.ring-2 {
    width: 350px;
    height: 350px;
    bottom: -10%;
    left: -5%;
    border-style: dashed;
    animation: heroSpin 25s linear infinite reverse;
}

/* Dot Grid Pattern */
.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.03;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Hero Title */
.hero-new-title {
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #f7b731 0%, #ffd700 50%, #f7b731 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #f7b731 0%, #e6a520 100%);
    color: #1b1847;
    border: none;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.9rem 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #ffd700 0%, #f7b731 100%);
    color: #1b1847;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 183, 49, 0.4) !important;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.85rem 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #f7b731;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Hero Visual / Logo */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.2) 0%, transparent 70%);
    animation: heroPulse 4s ease-in-out infinite;
}

.hero-logo-img {
    position: relative;
    z-index: 2;
    max-height: 320px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

/* Hero Animations */
@keyframes heroFloat {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes heroSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes heroPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
}

/* Hero Responsive */
@media (max-width: 991px) {
    .hero-new {
        min-height: 85vh;
        text-align: center;
    }

    .hero-new-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-new .d-flex.gap-3 {
        justify-content: center;
    }

    .hero-new .pe-lg-5 {
        padding-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-new-title {
        font-size: 2.2rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }
}