/* ====== Reset & Base Styles ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

:root {
    --primary-red: #d45564;
    --dark-red: #E6001B;
    --dark-gray: #545454;
    --text-dark: #1C1C1C;
    --text-light: #F4F4F4;
    --background-light: rgba(244,244,244,0.95);
    --card-shadow: 0 15px 35px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%); 
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== Navbar ====== */
nav {
    background-color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

nav .logo img {
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: var(--dark-red);
    background-color: rgba(255,255,255,0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--dark-red);
    border-radius: 6px;
    color: var(--dark-red);
    background: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--dark-red);
    color: white;
    transform: translateY(-2px);
}

/* ====== Hero Section ====== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    text-align: center;
    background: var(--background-light);
    margin: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
}
/* ====== Enhanced Gallery Styles ====== */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    perspective: 1000px;
}

/* Main Gallery Display */
.gallery-main {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

/* Gallery Navigation Dots */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: var(--dark-red);
}

/* Thumbnail Gallery */
.gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 85, 100, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 85, 100, 0.3);
}

.gallery-btn:hover {
    background: white;
    color: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 85, 100, 0.4);
    border: 2px solid var(--dark-red);
}

.gallery-btn:active {
    transform: translateY(-1px);
}

/* Gallery Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-main img {
    animation: fadeIn 0.5s ease-in-out;
}
/* Hero Images - Responsive */
/* .hero-images {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 0 auto 40px;
    perspective: 800px;
}

.images {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 25s infinite linear;
}

.img {
    position: absolute;
    width: 70%;
    height: 70%;
    left: 15%;
    top: 15%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    border: 3px solid white;
}

.images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img:hover img {
    transform: scale(1.05);
}

.img:nth-child(1) {
    transform: rotateY(0deg) translateZ(200px);
}

.img:nth-child(2) {
    transform: rotateY(90deg) translateZ(200px);
}

.img:nth-child(3) {
    transform: rotateY(180deg) translateZ(200px);
}

.img:nth-child(4) {
    transform: rotateY(270deg) translateZ(200px);
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    25% {
        transform: rotateY(90deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    75% {
        transform: rotateY(270deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.hero-images:hover .images {
    animation-play-state: paused;
} */

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3em;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 18px 45px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 35px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 25px rgba(212, 85, 100, 0.3);
}

.cta-button:hover {
    background: transparent;
    color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 85, 100, 0.4);
}

/* ====== Features Section ====== */
.features {
    padding: 100px 20px;
    background: white;
}

.features h2 {
    font-size: 2.8em;
    color: var(--primary-red);
    margin-bottom: 60px;
    font-weight: 700;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 50px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--primary-red);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 25px;
    color: var(--dark-red);
    display: block;
}

.feature-card h3 {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-card p {
    color: var(--dark-gray);
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

/* ====== Footer ====== */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    margin: 10px 0;
    font-size: 1.1em;
}

.footer-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

footer a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

footer a:hover {
    color: #ff6b7a;
    text-decoration: underline;
}

/* ====== RTL Support ====== */
body[dir="rtl"] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

body[dir="rtl"] .feature-card {
    text-align: center;
}

/* ====== Responsive Design ====== */

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-images {
        height: 400px;
        max-width: 600px;
        perspective: 1000px;
    }
    
    .img:nth-child(1) {
        transform: rotateY(0deg) translateZ(250px);
    }
    
    .img:nth-child(2) {
        transform: rotateY(90deg) translateZ(250px);
    }
    
    .img:nth-child(3) {
        transform: rotateY(180deg) translateZ(250px);
    }
    
    .img:nth-child(4) {
        transform: rotateY(270deg) translateZ(250px);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-main {
        height: 350px;
    }
    
    .gallery-thumb {
        width: 70px;
        height: 70px;
    }
    
    .hero h1 {
        font-size: 3em;
    }
}

/* Mobile Large (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .hero-images {
        height: 280px;
        max-width: 400px;
        perspective: 500px;
    }
    
    .img {
        width: 75%;
        height: 75%;
        left: 12.5%;
        top: 12.5%;
    }
    
    .img:nth-child(1) {
        transform: rotateY(0deg) translateZ(130px);
    }
    
    .img:nth-child(2) {
        transform: rotateY(90deg) translateZ(130px);
    }
    
    .img:nth-child(3) {
        transform: rotateY(180deg) translateZ(130px);
    }
    
    .img:nth-child(4) {
        transform: rotateY(270deg) translateZ(130px);
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
}

/* Mobile Small (under 480px) */
@media (max-width: 479px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    nav ul {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav .logo img {
        height: 60px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .hero {
        padding: 80px 15px;
        margin: 10px;
    }
    
    .hero-images {
        height: 220px;
        max-width: 320px;
        perspective: 300px;
        margin-bottom: 30px;
    }
    
    .img {
        width: 80%;
        height: 80%;
        left: 10%;
        top: 10%;
    }
    
    .img:nth-child(1) {
        transform: rotateY(0deg) translateZ(90px);
    }
    
    .img:nth-child(2) {
        transform: rotateY(90deg) translateZ(90px);
    }
    
    .img:nth-child(3) {
        transform: rotateY(180deg) translateZ(90px);
    }
    
    .img:nth-child(4) {
        transform: rotateY(270deg) translateZ(90px);
    }
    
    .hero h1 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1em;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
        margin-top: 25px;
    }
    
    .features {
        padding: 60px 15px;
    }
    
    .features h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 3em;
    }
    
    .feature-card h3 {
        font-size: 1.4em;
    }
    
    footer {
        padding: 40px 15px 20px;
        margin-top: 60px;
    }
}

/* Very Small Mobile (under 360px) */
@media (max-width: 359px) {
    .gallery-main {
        height: 250px;
        border-radius: 15px;
    }
    
    .gallery-thumbs {
        gap: 10px;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }
    
    .gallery-controls {
        gap: 15px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .hero-images:hover .images {
        animation-play-state: running;
    }
    
    .img:hover img {
        transform: scale(1);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .images {
        animation: none;
    }
    
    .img {
        transition: none;
    }
    
    .img:hover img {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}