@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;400;700;900&family=Outfit:wght@100;400;900&display=swap');

:root {
    --primary: #D4AF37; /* Gold */
    --secondary: #00A8CC; /* Sci-fi Blue */
    --bg-dark: #0A0A0A; /* Deep Dark */
    --bg-card: rgba(255, 255, 255, 0.05); /* Transparent Cards */
    --text-main: #FFFFFF; /* White Text */
    --text-muted: #B0B0B0;
    --accent-glow: rgba(212, 175, 55, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background System */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%); /* Deep Dark Blue for contrast */
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/antoine-barres.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3; /* Darker image overlay */
    filter: brightness(0.5) blur(10px);
}

.color-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
}

/* Moving Clouds & Fog */
.moving-clouds {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    width: 500%;
    height: 350px; /* Taller to overlap better */
    background-repeat: repeat-x;
    background-size: contain;
    animation: clouds-loop 150s linear infinite;
    opacity: 0.6;
    mask-image: linear-gradient(to top, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
}

.fog-low {
    position: absolute;
    z-index: 2;
    bottom: -10px; /* Slight overlap */
    left: 0;
    width: 100%;
    opacity: 0.8;
    mask-image: linear-gradient(to top, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.fog-low.right {
    left: auto;
    right: 0;
    opacity: 0.3;
}

.fog-low img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

@keyframes clouds-loop {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

header {
    padding: 60px 5% 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    z-index: 1000;
}

.logo-center {
    margin-bottom: 30px;
    text-align: center;
}

.logo-center img {
    height: 180px; /* Big logo as requested */
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); /* Made logo white */
    transition: 0.5s;
}

.logo-center img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 25px var(--primary)); /* Gold glow on hover */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    background: rgba(0, 0, 0, 0.4); /* Darker translucent background */
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Footer Styles - Slim Strip */
.main-footer {
    width: 100%;
    padding: 15px 0;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* هذا ما يدفعه للنهاية المطلقة */
    position: relative;
    z-index: 1000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-logo {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: 0.3s;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .main-footer { padding: 10px 0; }
    .footer-logo { height: 25px; }
    .footer-content p { font-size: 0.6rem; }
}

/* Hero Text */
.hero-text {
    padding: 20px 5% 40px;
    text-align: center;
    background: transparent; /* Removed gradient to fix "cut" */
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-glow {
    padding: 12px 35px;
    background: transparent;
    border: 2px solid var(--primary);
    color: #FFFFFF;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 5px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-glow:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 40px var(--primary);
    transform: translateY(-3px);
}

/* Swiper Carousel Styles */
.swiper {
	width: 100%;
	padding-top: 50px;
	padding-bottom: 50px;
}

.swiper-slide {
	background-position: center;
	background-size: cover;
	width: 100%;
	height: 480px;
	border-radius: 20px;
	overflow: hidden;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Dynamic styles will be applied via JS for smooth transitions */
    will-change: transform, filter;
    cursor: pointer; /* Indicate it's clickable */
    filter: blur(4px) brightness(0.6);
}

.swiper-slide-active {
    z-index: 10;
    filter: blur(0px) brightness(1.1);
}

.swiper-pagination-bullet {
	background: #696969;
	transition: all 0.5s ease 0s;
	border-radius: 8px;
}

.swiper-pagination-bullet-active {
	background: var(--primary); /* Gold to match brand */
	width: 30px;
}

.info {
	position: absolute;
    pointer-events: none; /* Let clicks pass through to the slide */
	width: 100%;
	height: 25%; /* Smaller height for single line */
	text-align: center;
	background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
	padding: 20px;
	left: 0;
	bottom: -100%;
	box-sizing: border-box;
	transition: bottom 0.5s ease 0s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide-active .info {
	bottom: 0;
}

.info span {
	color: #FFFFFF;
	text-transform: uppercase;
	font-size: 1.5rem; /* Larger font for product name */
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.info span:hover {
	background: rgba(212, 175, 55, 0.2);
}

.info span:before,
.info span:after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	background: rgba(255, 255, 255, 0.5);
	height: 100%;
	max-width: 2em;
}

/* End of Swiper Section */

.product-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: 0.4s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.carousel-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

@media (max-width: 768px) {
    .product-card {
        min-width: 100%;
    }
    .hero h1 {
        font-size: 3rem;
    }
}
