/* ========================================
   GLOBAL STYLES & RESET
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #003366;
    --secondary-color: #C5A253;
    --light-bg: #F5F7FA;
    --dark-text: #1B2130; /* نصوص غامقة للنظام النهاري */
    --white: #FFFFFF;
    --black: #000000;
    --overlay: rgba(0, 51, 102, 0.7);
    --gold-glow: rgba(197, 162, 83, 0.3);
    
    /* Fonts */
    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'Roboto', sans-serif;
    --font-de: 'Lato', sans-serif;
    
    /* Transitions */
    --transition: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 0.3s var(--transition);
    --transition-medium: 0.6s var(--transition);
    --transition-slow: 1s var(--transition);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #0055AA;
    --secondary-color: #D4AF37;
    --light-bg: #1A1D2E;
    --dark-text: #F0F0F0; /* نصوص فاتحة واضحة للنظام الليلي */
    --white: #16213E;
    --black: #FFFFFF;
    --overlay: rgba(0, 85, 170, 0.8);
    --gold-glow: rgba(212, 175, 55, 0.4);
}

body.dark-mode {
    background-color: #0F1419;
    color: var(--dark-text);
}

body.dark-mode .main-nav {
    background: rgba(26, 29, 46, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* تغيير لون النصوص في الهيدر للنظام الليلي */
body.dark-mode .nav-link,
body.dark-mode .nav-menu,
body.dark-mode .main-nav,
body.dark-mode .lang-btn {
    color: #B8B8B8; /* رصاصي فاتح */
}

body.dark-mode .nav-link:hover {
    color: var(--secondary-color);
}

body.dark-mode .lang-btn.active {
    color: var(--primary-color);
}

/* تغيير لون أيقونة القائمة المحمولة */
body.dark-mode .mobile-menu-toggle span {
    background: #B8B8B8; /* رصاصي فاتح */
}

body.dark-mode .service-card,
body.dark-mode .project-card,
body.dark-mode .product-card {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .footer {
    background: linear-gradient(135deg, #0F1419 0%, #1A1D2E 100%);
}

/* تغيير لون النصوص في الفوتر للنظام الليلي */
body.dark-mode .footer,
body.dark-mode .footer-text,
body.dark-mode .footer-text p,
body.dark-mode .social-icon {
    color: #B8B8B8; /* رصاصي فاتح */
}

body.dark-mode .social-icon:hover {
    color: var(--primary-color);
}

/* تغيير لون النصوص في القائمة السفلية للنظام الليلي */
body.dark-mode .bottom-nav-item {
    color: #B8B8B8; /* رصاصي فاتح */
}

body.dark-mode .bottom-nav-item:hover,
body.dark-mode .bottom-nav-item.active {
    color: var(--secondary-color);
}

/* جعل أرقام الهاتف من اليسار إلى اليمين في جميع اللغات */
.phone-number-ltr {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
}

body {
    font-family: var(--font-ar);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Snap for Sections */
section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

body[dir="ltr"][lang="de"] {
    font-family: var(--font-de);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   INTRO SCREEN
======================================== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.intro-screen.active {
    opacity: 1;
    visibility: visible;
}

.intro-content {
    text-align: center;
    position: relative;
}

.intro-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--gold-glow));
    margin-bottom: 30px;
}

.intro-logo.rotating {
    animation: rotate360 3s linear;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.countdown {
    font-size: 4rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--gold-glow);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ========================================
   LANGUAGE SELECTION SCREEN
======================================== */
.language-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.language-screen.active {
    opacity: 1;
    visibility: visible;
}

.language-content {
    text-align: center;
}

.language-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 50px;
    font-weight: 700;
}

.language-title span {
    display: block;
    margin: 10px 0;
}

.language-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.language-btn {
    background: var(--white);
    padding: 30px 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.language-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(197, 162, 83, 0.4);
    background: var(--secondary-color);
    color: var(--white);
}

.language-btn .flag {
    font-size: 4rem;
}

.language-btn .lang-name {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ========================================
   MAIN WEBSITE
======================================== */
.main-website {
    display: none;
    opacity: 0;
    animation: fadeIn var(--transition-slow) forwards;
}

.main-website.active {
    display: block;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   NAVIGATION
======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled {
    background: rgba(0, 51, 102, 0.98);
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: all var(--transition-fast);
}

.main-nav.scrolled .nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 10px;
}

.lang-btn {
    padding: 8px 15px;
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 26, 51, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Ripple Effect for Buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #d4b366;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 162, 83, 0.4);
}

.btn-secondary {
    background: #25D366;
    color: var(--white);
}

.btn-secondary:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ========================================
   SECTION COMMON STYLES
======================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.about-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
}

.about-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-paragraph {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--transition-fast);
}

.about-paragraph:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
}

.about-paragraph p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.about-video {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.about-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.2), rgba(197, 162, 83, 0.2));
    z-index: 1;
    pointer-events: none;
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   PRODUCTION SECTION
======================================== */
.production-section {
    background: var(--white);
}

.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.production-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.production-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
}

.production-card:hover::before {
    opacity: 0.05;
}

.production-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.2);
}

.production-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.production-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.production-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 25px;
}

.btn-details {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-details:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.3);
}

/* ========================================
   ADMINISTRATIVE SECTION
======================================== */
.administrative-section {
    background: var(--light-bg);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
}

.admin-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    position: relative;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.admin-icon {
    font-size: 3rem;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.2;
}

.admin-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.admin-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.admin-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.admin-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.admin-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 25px;
}

.admin-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-bg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.admin-video {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.admin-video video {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    cursor: pointer;
    height: 350px;
}

.service-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95), transparent);
    padding: 30px;
    transform: translateY(50%);
    transition: transform var(--transition-fast);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   PROJECTS SECTION
======================================== */
.projects-section {
    background: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 400px;
    transition: all var(--transition-fast);
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.projects-button {
    text-align: center;
}

/* ========================================
   PRODUCTS SECTION
======================================== */
.products-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.products-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

.products-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
}

.products-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-text);
}

/* Products Categories Grid */
.products-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.product-category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.product-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-category-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-medium);
}

.product-category-card:hover .product-category-image img {
    transform: scale(1.1);
}

.product-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8), rgba(197, 162, 83, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
}

.product-category-card:hover .product-category-overlay {
    opacity: 1;
}

.category-icon {
    font-size: 4rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.product-category-content {
    padding: 30px;
}

.product-category-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-category-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    font-size: 0.95rem;
    color: var(--dark-text);
    padding: 8px 0;
    border-bottom: 1px solid var(--light-bg);
    transition: all var(--transition-fast);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li:hover {
    color: var(--secondary-color);
    padding-right: 10px;
}

[dir="ltr"] .product-features li:hover {
    padding-right: 0;
    padding-left: 10px;
}

.products-images {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.products-images img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.products-images img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.products-table-container {
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.products-table {
    width: 100%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.products-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.products-table th,
.products-table td {
    padding: 20px;
    text-align: center;
    font-size: 1rem;
}

.products-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-table tbody tr {
    transition: all var(--transition-fast);
}

.products-table tbody tr:nth-child(even) {
    background: var(--light-bg);
}

.products-table tbody tr:hover {
    background: rgba(197, 162, 83, 0.1);
    transform: scale(1.02);
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    background: var(--light-bg);
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[dir="ltr"] .contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-details p,
.contact-details a {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-details p {
    margin-bottom: 5px;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-bg);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #999;
    font-size: 1rem;
    transition: all var(--transition-fast);
    pointer-events: none;
}

[dir="ltr"] .form-group label {
    right: auto;
    left: 15px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    right: 10px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: var(--white);
    padding: 0 5px;
}

[dir="ltr"] .form-group input:focus + label,
[dir="ltr"] .form-group input:not(:placeholder-shown) + label,
[dir="ltr"] .form-group textarea:focus + label,
[dir="ltr"] .form-group textarea:not(:placeholder-shown) + label {
    right: auto;
    left: 10px;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-text {
    text-align: center;
    flex: 1;
}

.footer-text p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) rotate(360deg);
}

/* ========================================
   FIXED BUTTONS
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all var(--transition-fast);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8);
    }
}

/* Quote Request Button */
.quote-float {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4b56a 100%);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(197, 162, 83, 0.5);
    z-index: 9998;
    transition: all var(--transition-fast);
    animation: pulse-quote 3s ease-in-out infinite;
}

[dir="ltr"] .quote-float {
    right: auto;
    left: 30px;
}

.quote-float i {
    font-size: 1.2rem;
}

.quote-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(197, 162, 83, 0.7);
}

@keyframes pulse-quote {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(197, 162, 83, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(197, 162, 83, 0.9);
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(197, 162, 83, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

[dir="ltr"] .scroll-to-top {
    right: auto;
    left: 30px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounce-arrow 2s ease-in-out infinite;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 162, 83, 0.6);
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   LIGHTBOX
======================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 30px;
        transition: right var(--transition-fast);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    [dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
        transition: left var(--transition-fast);
    }

    .nav-menu.active {
        right: 0;
    }

    [dir="ltr"] .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    /* Contact Section Tablet Optimization */
    .contact-item {
        padding: 22px;
    }

    .contact-details p {
        font-size: 0.98rem;
        line-height: 1.75;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .production-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .products-images {
        flex-direction: column;
        align-items: center;
    }

    .products-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-category-image {
        height: 200px;
    }

    .product-category-content {
        padding: 20px;
    }

    .product-category-content h3 {
        font-size: 1.3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Contact Section Mobile Optimization */
    .contact-item {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .contact-details {
        width: 100%;
    }

    .contact-details h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .contact-details p {
        font-size: 0.95rem;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .contact-details a {
        word-break: break-word;
        display: inline-block;
    }

    .contact-form-container {
        padding: 25px;
    }

    .whatsapp-float,
    .scroll-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        display: flex !important;
        z-index: 9999 !important;
    }

    .whatsapp-float {
        left: 20px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    [dir="ltr"] .whatsapp-float {
        left: auto;
        right: 20px;
    }

    .quote-float {
        top: 80px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    [dir="ltr"] .quote-float {
        right: auto;
        left: 20px;
    }

    .quote-text {
        display: none;
    }

    .quote-float i {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        right: 20px;
    }

    .scroll-to-top.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }

    [dir="ltr"] .scroll-to-top {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .language-btn {
        padding: 20px 30px;
    }

    .language-btn .flag {
        font-size: 3rem;
    }

    .language-btn .lang-name {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-paragraph {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
        height: 200px;
    }

    /* Contact Section Small Mobile Optimization */
    .contact-item {
        padding: 15px;
        gap: 15px;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .contact-form-container {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .whatsapp-float,
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
    }

    .whatsapp-float {
        left: 15px;
    }

    [dir="ltr"] .whatsapp-float {
        left: auto;
        right: 15px;
    }

    .scroll-to-top {
        right: 15px;
    }

    [dir="ltr"] .scroll-to-top {
        right: auto;
        left: 15px;
    }
}

@media (max-width: 360px) {
    /* Extra Small Mobile Devices */
    .container {
        padding: 0 15px;
    }

    .contact-item {
        padding: 12px;
        gap: 12px;
    }

    .contact-icon {
        font-size: 1.8rem;
    }

    .contact-details h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .contact-details p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .contact-form-container {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   THEME TOGGLE BUTTON
======================================== */
.theme-toggle {
    background: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 15px;
    box-shadow: 0 2px 10px var(--gold-glow);
}

[dir="ltr"] .theme-toggle {
    margin-left: 0;
    margin-right: 15px;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.theme-toggle i {
    color: var(--white);
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

body.dark-mode .theme-toggle i::before {
    content: "\f185"; /* fa-sun */
}

/* ========================================
   BOTTOM NAVIGATION (MOBILE)
======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    border-top: 2px solid var(--secondary-color);
}

body.dark-mode .bottom-nav {
    background: rgba(26, 29, 46, 0.98);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.bottom-nav-item span {
    font-weight: 500;
    transition: all var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--secondary-color);
    background: var(--gold-glow);
}

.bottom-nav-item:hover i,
.bottom-nav-item.active i {
    transform: scale(1.2);
}

/* Ripple Effect for Bottom Nav */
.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold-glow);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bottom-nav-item:active::before {
    width: 100px;
    height: 100px;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    /* Adjust fixed buttons position when bottom nav is visible */
    .whatsapp-float {
        bottom: 80px !important;
    }
    
    .scroll-to-top {
        bottom: 80px !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .main-nav,
    .bottom-nav,
    .whatsapp-float,
    .quote-float,
    .scroll-to-top,
    .theme-toggle,
    .hero-video-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}