/* ============================================
   Durub Al-Thaqil - Modern Single Page Design
   ============================================ */

:root {
    /* Primary Colors - Professional Heavy Machinery Theme */
    --primary-color: #1a365d;
    --primary-dark: #0f2439;
    --primary-light: #2d4a6b;
    --accent-color: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    
    /* Neutral Colors */
    --dark-color: #1e293b;
    --dark-light: #334155;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --light-color: #f8fafc;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d4a6b 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-hero: linear-gradient(135deg, #0f2439 0%, #1a365d 50%, #2d4a6b 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Apply Tajawal font to all elements */
* {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
button, input, textarea, select,
.navbar-brand, .brand-text {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   Navigation - Fixed Sticky Navbar
   ============================================ */

.navbar {
    background: rgba(26, 54, 93, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.98) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
}

[dir="rtl"] .navbar-brand .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

@media (max-width: 991px) {
    .brand-text {
        font-size: 0.9rem;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-light) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section - Full Screen
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../cover.jpg') center center / cover no-repeat;
    filter: brightness(0.5);
    z-index: 1;
}

.hero-section .carousel-item {
    min-height: 100vh;
    position: relative;
}

.hero-section .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    color: var(--white);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-top: 1.5rem;
}

/* ============================================
   About Section
   ============================================ */

#about {
    background: var(--light-color);
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-light);
}

.vision-mission-goals {
    margin-top: 4rem;
}

.vmg-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.vmg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vmg-card:hover::before {
    transform: scaleX(1);
}

.vmg-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vmg-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.vmg-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.vmg-card p,
.vmg-card ul {
    color: var(--dark-light);
    line-height: 1.8;
}

.vmg-card ul {
    text-align: right;
    padding-right: 1.5rem;
}

[dir="ltr"] .vmg-card ul {
    text-align: left;
    padding-left: 1.5rem;
    padding-right: 0;
}

/* ============================================
   HYUNDAI Section
   ============================================ */

#hyundai {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-color) 100%);
}

.hyundai-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hyundai-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hyundai-text p {
    font-size: 1.15rem;
    color: var(--dark-light);
    line-height: 1.9;
}

.hyundai-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.hyundai-image:hover {
    transform: scale(1.05);
}

.hyundai-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Products Section
   ============================================ */

#products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 0.1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* ============================================
   Partners Section
   ============================================ */

#partners {
    background: var(--light-color);
}

.partner-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.partner-logo:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.partner-logo img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   Contact Section
   ============================================ */

#contact {
    background: var(--gradient-primary);
    color: var(--white);
}

#contact .section-title h2 {
    color: var(--white);
}

#contact .section-title h2::after {
    background: var(--accent-color);
}

#contact .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-right: 4px solid var(--accent-color);
}

[dir="ltr"] .contact-item {
    border-right: none;
    border-left: 4px solid var(--accent-color);
}

.contact-item h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-light);
    padding-right: 10px;
}

[dir="ltr"] .contact-item a:hover {
    padding-right: 0;
    padding-left: 10px;
}

.contact-item i {
    margin-left: 0.5rem;
    color: var(--accent-color);
}

[dir="ltr"] .contact-item i {
    margin-left: 0;
    margin-right: 0.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-light);
    padding-right: 5px;
}

[dir="ltr"] .footer-section a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   RTL Support
   ============================================ */

[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hyundai-content {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .vmg-card {
        margin-bottom: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .hyundai-text h2 {
        font-size: 2rem;
    }
}
