/*
Theme Name: OryxPetro Integrated
Author: Sonic
Version: 1.0
Description: Integrated one-page corporate petroleum theme.
Text Domain: oryxpetro
*/

/* ===== RESET و تنظیمات اولیه ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1929;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HERO SLIDER - نسخه اصلاح شده ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* قد اسلایدر */
    overflow: hidden; /* مخفی کردن اسلایدهای خارج از دید */
    border-bottom: 5px solid #00b4d8;
}

/* کانتینر اصلی اسلایدها - اینجا مشکل اصلی است */
.hero-slides-container {
    display: flex; /* نمایش افقی */
    width: 600%; /* 6 اسلاید × 100% = 600% */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform; /* بهینه‌سازی انیمیشن */
}

/* هر اسلاید - اصلاح شده */
.hero-slide {
    flex: 0 0 16.6667%; /* هر اسلاید 1/6 عرض */
    min-width: 16.6667%; /* برای 6 اسلاید */
    height: 100%;
    position: relative;
}

/* تصویر اسلاید */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن فضای بدون کشیدگی */
    display: block;
}

/* لایه روی تصویر */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 41, 0.85) 0%, rgba(10, 25, 41, 0.4) 100%);
    display: flex;
    align-items: center;
    padding: 0 10%;
}

/* محتوای متن روی اسلاید */
.slide-content {
    max-width: 700px;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* انیمیشن برای محتوا */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* دکمه CTA */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.4);
    background: linear-gradient(135deg, #0077b6, #00b4d8);
}

/* دکمه‌های ناوبری */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    transform: translateY(-50%);
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 180, 216, 0.8);
    border-color: #00b4d8;
    transform: scale(1.1);
}

/* نقاط نشانگر */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00b4d8;
    transform: scale(1.4);
    box-shadow: 0 0 15px #00b4d8;
}

/* ===== بخش‌های دیگر صفحه ===== */
.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #00b4d8;
}

/* بخش خدمات */
.services {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 180, 216, 0.1);
    border-color: #00b4d8;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1200px) {
    .slide-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 75vh;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .prev-btn, .next-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .section {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-overlay {
        padding: 0 5%;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}