* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ===== Hero Section - Desktop ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 170vh;
    /* طول كامل للشاشة */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    /* مهم جداً بدل 100% */
    min-height: 100%;
    /* يغطي الـ section بالكامل */
    object-fit: cover;
    /* الصورة تغطي الـ section */
    object-position: center center;
    /* مركز الصورة */
    z-index: -1;
}

/* ===== NEW: Video Section ===== */
.video-section {
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.video-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .video-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Glass overlay on video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

/* Play button overlay */
/*.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
}*/
/*
.video-container:hover .play-button-overlay {
    opacity: 1;
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

.play-button-overlay i {
    color: white;
    font-size: 28px;
    margin-left: 4px;
}*/

/* ===== NEW: About Section ===== */
.about-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.about-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 50px;
    color: white;
    transition: transform 0.3s ease;
}

    .about-card:hover {
        transform: translateY(-5px);
    }

    .about-card h2 {
        font-size: clamp(32px, 4vw, 48px);
        margin-bottom: 30px;
        font-weight: 700;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .about-card p {
        font-size: clamp(16px, 2vw, 20px);
        line-height: 1.8;
        opacity: 0.95;
        margin-bottom: 20px;
    }

        .about-card p:last-child {
            margin-bottom: 0;
        }

/* ===== NEW: Products Section ===== */
.products-section {
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h2 {
        font-size: clamp(36px, 5vw, 56px);
        color: white;
        font-weight: 700;
        margin-bottom: 15px;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .section-header p {
        font-size: clamp(16px, 2vw, 20px);
        color: rgba(255, 255, 255, 0.9);
    }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    }

/* Product Background Image */
.product-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-bg {
    transform: scale(1.05);
}

/* Glass Overlay Layer */
.product-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

.product-card:hover .product-glass-overlay {
    /* backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%); */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(0, 0, 0, 0.35) 100%);
}

/* Product Button - Centered */
.product-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 40px;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(0, 0, 0, 0.35) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

    .product-button:hover {
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(0, 0, 0, 0.35) 100%);
        transform: translate(-50%, -50%) translateY(-5px);
        box-shadow: 0 15px 40px rgba(118, 75, 162, 0.5);
    }

/* Button text style - Arabic and English on same line */
.product-button-text {
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Logo Container - Fixed, Centered, Non-interactive */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -350px;
    margin-left: 130px;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 10;
}

/* Rotating Logo Content */
.rotating-logo {
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coinRotation 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

    /* Logo Image */
    .rotating-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

/* 3D Coin Rotation Animation - Like a coin on the ground */
@keyframes coinRotation {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }

    50% {
        transform: rotateY(180deg) rotateX(5deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

/* Remove unused styles */
.logo-button,
.rotating-logo-container,
.product-name-ar,
.product-name-en {
    display: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-card {
        padding: 40px 30px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .product-card {
        height: 350px;
    }
}

@media (max-width: 768px) {

    .video-section,
    .about-section,
    .products-section {
        margin-bottom: 60px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .video-container {
        border-radius: 20px;
    }

    .product-card {
        height: 320px;
        border-radius: 20px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== Hero Section - Mobile ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        margin-bottom: 60px;
    }

    .hero-bg {
        object-position: center top;
    }
}

/* المشهد */
.scene {
    width: 300px;
    height: 300px;
    perspective: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* جسم اللوجو */
.logo-3d {
    width: 80%;
    height: 80%;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    will-change: transform;
    position: relative;
}

    /* الصورة */
    .logo-3d img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
    }

/* Glow خفيف من تحت */
.scene::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: 25%;
    left: -25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

/* حركة Float تلقائية */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px) rotateX(10deg) rotateY(0deg);
    }

    25% {
        transform: translateY(-5px) rotateX(-10deg) rotateY(45deg);
    }

    50% {
        transform: translateY(0px) rotateX(10deg) rotateY(90deg);
    }

    75% {
        transform: translateY(-5px) rotateX(-10deg) rotateY(135deg);
    }

    100% {
        transform: translateY(0px) rotateX(10deg) rotateY(180deg);
    }
}

.logo-3d {
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Hover interaction: يكبر ويقف */
.scene:hover .logo-3d {
    animation-play-state: paused;
    transform: scale(1.15);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* يغطي كامل الشاشة */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Background Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* تغطي كامل الـ hero */
    object-position: center center;
    z-index: -1;
}

/* Logo Container */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 30vw, 400px);
    /* يتغير مع حجم الشاشة */
    height: auto;
    /* height يتغير حسب width */
    pointer-events: none;
    z-index: 10;
}

    /* Logo Image داخل الـ container */
    .logo-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
    }

/* Float Animation للوجو */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }

    25% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(0px);
    }

    75% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.logo-container img {
    animation: floatAnimation 6s ease-in-out infinite;
    transition: transform 0.2s ease-out;
}

/* Hover interaction - يكبر ويقف */
.hero:hover .logo-container img {
    animation-play-state: paused;
    transform: scale(1.1);
}

/* ===== Responsive Hero ===== */
@media (max-width: 992px) {
    .logo-container {
        width: clamp(180px, 35vw, 350px);
        top: 50%;
    }
}

@media (max-width: 768px) {
    .logo-container {
        width: clamp(150px, 45vw, 300px);
        top: 50%;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: clamp(120px, 60vw, 250px);
        top: 50%;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    /* بدل min-height كبير */
    min-height: 70vh;
    /* ارتفاع مبدئي معقول */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}

/* Hero Background Image */
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* أصغر من 100% */
    max-width: 100%;
    max-height: 90vh;
    /* يمنعها من تغطية كل الشاشة */
    height: 100%;
    object-fit: contain;
    /* يظهر كامل الصورة */
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        min-height: 60vh;
    }

    .hero-bg {
        width: 70%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    .hero-bg {
        width: 60%;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh;
    }

    .hero-bg {
        width: 80%;
        max-width: 400px;
    }
}
