/* ======== GLOBAL STYLES ======== */
:root {
    --primary-blue: #008cba; /* Main blue from logo */
    --dark-blue: #0D2F3F;    /* Dark luxury color */
    --black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f4f7f6;
    --text-color: #333;
    
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* RTL (Arabic) styles */
body.rtl {
    direction: rtl;
    font-family: var(--font-ar);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

/* Luxury underline effect */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-blue);
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

img {
    max-width: 100%;
    height: auto;
}

.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background-color: var(--light-gray);
}

/* ======== STICKY HEADER ======== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 15px 0;
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
}

body.scrolled .sticky-header {
    transform: translateY(0);
}

.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
}

.main-nav a {
    margin: 0 15px;
    font-weight: 500;
    color: var(--dark-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

body.rtl .main-nav a::after {
    left: auto;
    right: 0;
}

#lang-toggle {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    font-family: var(--font-en);
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#lang-toggle:hover {
    background: var(--primary-blue);
}

/* ======== HERO SECTION ======== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-blue); /* Fallback */
    /* يمكنك إضافة صورة أو فيديو في الخلفية هنا عبر CSS */
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    animation: fadeIn 1.5s ease-out;
}

.hero-logo {
  width: 600px; /* أو أي حجم مناسب */
  height: auto;
  display: block;
  margin: 0 auto -60px auto;
}

.slogan {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
}

/* ======== ABOUT SECTION ======== */
#about .container {
    max-width: 900px;
    text-align: center;
}

/* ======== COMMITMENTS TABLE ======== */
.table-container {
    overflow-x: auto;
    margin-top: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

body.rtl th, body.rtl td {
    text-align: right;
}

thead tr {
    background-color: var(--dark-blue);
}

th {
    color: var(--white);
    font-family: var(--font-en); /* Keep headers consistent */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

tbody tr {
    background: var(--white);
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background: var(--light-gray);
}

tbody tr:hover {
    background-color: #e6f4f8;
}

td:first-child {
    font-weight: 600;
    color: var(--primary-blue);
}

/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    min-height: 50px; /* Align heights */
}

.btn-learn-more {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* ======== PORTFOLIO SECTION (10 Buttons) ======== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.btn-portfolio, .btn-portfolio-sub {
    display: block;
    padding: 20px;
    background: var(--white);
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-portfolio:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 140, 186, 0.2);
}

.btn-portfolio span {
    margin-left: 10px;
}

body.rtl .btn-portfolio span {
    margin-left: 0;
    margin-right: 10px;
}

/* Dropdown Button Styles */
.portfolio-dropdown {
    position: relative;
}

.dropdown-toggle {
    width: 100%;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    background: var(--white);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    margin-top: -5px;
    overflow: hidden;
}

.portfolio-dropdown.open .dropdown-menu {
    display: block;
}

.portfolio-dropdown.open .dropdown-toggle {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-portfolio-sub {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
}
.btn-portfolio-sub:last-child {
    border-bottom: none;
}
.btn-portfolio-sub:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* ======== CONTACT FORM ======== */
#contact-form {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    width: calc(50% - 10px);
}

.form-group.full-width {
    width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-en);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

body.rtl input, body.rtl textarea {
    font-family: var(--font-ar);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    background: var(--dark-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ======== FOOTER ======== */
footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.4rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-blue);
}

/* ======== FLOATING WHATSAPP BUTTON ======== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

body.rtl .whatsapp-float {
    right: auto;
    left: 25px;
}

/* ======== ANIMATIONS ======== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    .slogan { font-size: 2.2rem; }
    
    .sticky-header .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        /* Mobile menu would go here - for brevity, I'm hiding it */
        display: none;
    }

    .form-group {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 60px 0;
    }
}
