/* style.css - Foundation Variables & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary-dark: #35498e; /* Brand Blue */
  --primary-ultradark: #1A2447; /* Deeper Navy for ultra-contrast */
  --primary-light: #1fb4d4; /* Brand Cyan Accent */
  
  /* Neutrals */
  --white: #ffffff;
  --text-dark: #1f2329;
  --text-muted: #646a73;
  --bg-light: #F8F9FA;
  --bg-dark: #0f1626;
  --border-light: rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1300px; /* Wider container for premium feel */

  /* Transitions & Shadows */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
}

html[lang="en"] body {
  font-family: var(--font-english);
  direction: ltr;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 { font-size: 4rem; letter-spacing: -1px; }
h2 { font-size: 3rem; }
h3 { font-size: 1.8rem; font-weight: 700; }

html[lang="ar"] h1, html[lang="ar"] h2 {
  letter-spacing: 0; /* Adjust kerning for Arabic */
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Base Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.text-cyan { color: var(--primary-light); }
.bg-primary { background-color: var(--primary-dark); color: var(--white); }
.bg-cyan { background-color: var(--primary-light); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 4px; /* Sharper, corporate look */
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  gap: 12px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--primary-light); /* Accent color for primary CTA */
  color: var(--white);
  box-shadow: 0 4px 15px rgba(31, 180, 212, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(31, 180, 212, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background-color: var(--white);
  color: var(--primary-dark);
}

.btn-cyan {
  background-color: var(--primary-dark); /* Swapped semantics */
  color: var(--white);
}

.btn-cyan:hover {
  background-color: var(--primary-ultradark);
  transform: translateY(-3px);
}

.header-action .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: var(--transition-slow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  font-size: 1.05rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-light);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section Premium */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%);
}

html[lang="en"] .hero-section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 120px));
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05); /* base for parallax or animation */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Deep premium gradient to match modern corporate look */
    background: linear-gradient(135deg, rgba(26, 36, 71, 0.92) 0%, rgba(31, 180, 212, 0.45) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 900px;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 25px;
}

.hero-text .text-accent {
    color: var(--primary-light);
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Premium Split Layouts */
.split-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}
.split-content {
    flex: 1;
    min-width: 50%;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-content.bg-light { background: var(--bg-light); }
.split-content.bg-dark { background: var(--primary-ultradark); color: var(--white); }

.split-image {
    flex: 1;
    min-width: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Section Common */
.section {
    padding: var(--section-padding);
}

.section-dark {
    background-color: var(--primary-ultradark);
    color: var(--white);
}

.section-dark .section-title {
    color: var(--white);
}
.section-dark p {
    color: rgba(255,255,255,0.7);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 5px;
    background-color: var(--primary-light);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--primary-light);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}

.text-center .section-subtitle {
    justify-content: center;
}

[style*="background-color: var(--primary-dark)"] p,
.section-dark p {
    color: rgba(255, 255, 255, 0.9);
}

html[lang="en"] .section-title::after {
    right: auto;
    left: 0;
}

/* Premium Stat Bar */
.stat-bar {
    background: var(--primary-ultradark);
    color: var(--white);
    padding: 40px 40px;
    position: relative;
    z-index: 10;
    margin-top: -120px;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

html[lang="en"] .stat-bar {
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 5px;
    line-height: 1;
}
.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
}

/* Overlapping Image Composition */
.overlap-img-container {
    position: relative;
    padding-left: 50px;
    padding-bottom: 50px;
}
html[lang="en"] .overlap-img-container {
    padding-left: 0; padding-right: 50px;
}
.overlap-img-main {
    position: relative;
    z-index: 2;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
    width: 85%;
    display: block;
}
.overlap-img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    z-index: 3;
    border: 10px solid var(--bg-light);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}
html[lang="en"] .overlap-img-secondary {
    left: auto; right: 0;
}
.overlap-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50%;
    height: 60%;
    background-color: var(--primary-light);
    z-index: 1;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
}
html[lang="en"] .overlap-shape {
    right: auto; left: -20px;
}

/* Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
}

.about-img img {
    display: block;
    width: 100%;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 15px solid var(--primary-dark);
    pointer-events: none;
    z-index: 1;
}

/* Services Snippet (Home) */
.services-snippet {
    padding: var(--section-padding);
    margin: 50px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.premium-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
    transition: var(--transition-slow);
}

.premium-card:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
    border-color: rgba(31, 180, 212, 0.3);
}

.premium-card-icon {
    width: 65px;
    height: 65px;
    background: rgba(31, 180, 212, 0.08); /* Light cyan background */
    color: var(--primary-light);
    border-radius: 50%; /* Circle icon background like Emaar Al Basrah */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.premium-card:hover .premium-card-icon {
    background: var(--primary-light);
    color: var(--white);
}

.premium-card h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Footer (Mandatory requirement) */
footer {
  background-color: var(--primary-ultradark);
  color: var(--white);
  padding: 80px 0 20px;
  position: relative;
  border-top: 5px solid var(--primary-light);
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--primary-light);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: var(--primary-light);
}
html[lang="ar"] .footer-links h4::after, html[lang="ar"] .footer-contact h4::after {
    left: auto; right: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-english);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: var(--primary-light);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Animations Set */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive basics */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px;}
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 3rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .header-action { display: none; }
    .mobile-menu-btn { display: block !important; background: none; border: none; font-size: 1.5rem; color: var(--primary-dark); cursor: pointer;}
    .hero-text h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
