img {
    max-width: 100%;
    height: auto;
}
* {
    word-break: break-word;
}
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

:root {
  --primary-color: #112D32;
  --secondary-color: #526A74;
  --accent-color: #00BCD4;
  --bg-color: #F4F7F6;
  --white: #FFFFFF;
  --dark-text: #1a1a1a;
  --premium-shadow: 0 10px 30px rgba(10, 58, 120, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--secondary-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--white);
}
.bg-primary h2, .bg-primary h3, .bg-primary p {
  color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1px;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
  background-color: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: var(--premium-shadow);
}

.btn-secondary:hover {
  background-color: var(--bg-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Header */
header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  z-index: 1000;
  transition: var(--transition);
  background: var(--white);
  padding: 10px 0;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo span {
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--dark-text);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(17,45,50,0.9) 0%, rgba(17,45,50,0.6) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
  margin: 0;
  padding-left: 5%;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.9);
  animation: fadeUp 1.2s ease;
}

.hero-btns {
  display: flex;
  gap: 20px;
  animation: fadeUp 1.4s ease;
}

/* Glass Cards */
.glass-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--premium-shadow);
  transition: var(--transition);
  border: 1px solid #cbd5e1;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(10, 58, 120, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Image with text layout */
.img-wrap {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--premium-shadow);
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.img-wrap:hover img {
  transform: scale(1.05);
}

/* Stats Section */
.stats {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
}
.stat-box {
  text-align: center;
}
.stat-box h3 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 10px;
}
.stat-box p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}

/* Services Page & Grid */
.service-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--premium-shadow);
}
.service-item-img {
  height: 250px;
  overflow: hidden;
}
.service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.service-item:hover .service-item-img img {
  transform: scale(1.1);
}
.service-item-content {
  padding: 30px;
}

/* Footer */
footer {
  background-color: #05224A;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a:hover {
  color: var(--accent-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Contact Page */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--premium-shadow);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-text);
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-color);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}
.contact-info {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
}
.contact-info h3 {
  color: var(--white);
}
.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.contact-info i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding-top: 80px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: var(--transition);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    color: var(--dark-text);
  }
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  header.scrolled .nav-toggle {
    color: var(--primary-color);
  }
  header .nav-toggle.active {
    color: var(--primary-color);
  }
  .page-hero h1, .hero h1 { font-size: 2.5rem !important; }
  .hero-btns { flex-direction: column; }
}

/* Google Reviews Marquee */
.reviews-section {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid #E2E8F0;
  overflow: hidden;
  position: relative;
}
.reviews-title {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.reviews-title h3 {
  margin: 0;
  font-size: 1.5rem;
}
.marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-container:hover {
  animation-play-state: paused;
}
.marquee-content {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 0 15px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    min-width: 320px;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}
.review-dp {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.review-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.review-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}
.review-location {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}
.google-logo-small {
    width: 20px;
    height: 20px;
}
.review-stars {
    color: #fbbc05;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    gap: 3px;
}
.review-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}
.faq-question i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.faq-answer {
    padding: 0 30px 25px;
    display: none;
    color: var(--dark-text);
    line-height: 1.7;
}

/* Floating Action Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #FFF;
}

.whatsapp-float {
    right: 30px;
    background-color: #25D366;
}

.phone-float {
    left: 30px;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
    }
    .whatsapp-float { right: 20px; }
    .phone-float { left: 20px; }
}

/* Button Animations */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 45, 50, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(17, 45, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(17, 45, 50, 0);
    }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

.phone-float {
    animation: pulse-phone 2s infinite;
}

/* Comprehensive Mobile Adjustments */
@media (max-width: 768px) {
    /* Layouts & Grids */
    .grid-2, .grid-3, .grid-4, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* Typography & Spacing */
    .section-padding {
        padding: 60px 0 !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    /* Footer */
    footer {
        padding-bottom: 80px !important; /* Prevent floating buttons from hiding footer */
    }
    
    /* Top Bar */
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        font-size: 0.8rem;
    }
    .top-bar .social-links {
        justify-content: center;
    }
    
    /* Navigation adjustments */
    header .container {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    /* Prevent any horizontal scrolling */
    html, body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100%;
    }
    
    /* Make text smaller on mobile to prevent overflow */
    body, p, li, .btn, .footer-col p, .footer-col ul li a {
        font-size: 0.9rem !important;
    }
    
    .page-hero h1, .hero h1, .section-title { 
        font-size: 1.6rem !important; 
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 12px !important;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* Adjust modal content for small screens */
    .modal-content {
        padding: 20px !important;
        width: 95% !important;
    }
    
    .modal-content h3 {
        font-size: 1.1rem !important;
    }
    
    .modal-content a.btn {
        font-size: 0.95rem !important;
        padding: 10px !important;
    }
}









.service-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-weight: 400;
    font-size: 0.80rem;
    margin-bottom: 8px;
}
.service-features li i {
    color: #38bdf8;
}


.service-detail-section .grid-2 {
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-features {
    display: flex !important;
    flex-direction: column !important;
}


/* RTL Styles for Arabic Support */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .nav-links {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .nav-links a {
    margin-left: 15px;
    margin-right: 0;
}

html[dir="rtl"] .service-features {
    text-align: right;
}

html[dir="rtl"] .footer-col ul li a i {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] i.fas, html[dir="rtl"] i.fab {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] {
    direction: ltr;
    text-align: right;
}

/* RTL Marquee Fix */
html[dir="rtl"] .marquee-container {
    animation-name: marqueeRTL;
}

@keyframes marqueeRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}


/* Mobile Hero Fix */
@media (max-width: 768px) {
    .page-hero, .hero {
        padding-top: 100px !important;
        align-items: center !important;
    }
    .page-hero .container, .hero .container {
        text-align: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-hero h1, .hero h1 {
        text-align: center !important;
    }
    .page-hero p, .hero p {
        text-align: center !important;
    }
    .hero-btns {
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-btns a {
        width: 100% !important;
        max-width: 300px;
    }
}




/* Service Card Mobile Fix */
@media (max-width: 992px) {
    .service-detail-section {
        padding: 40px 0 !important;
    }
    .service-detail-section .grid-2 {
        display: flex !important;
        flex-direction: column-reverse !important;
        padding: 20px !important;
        gap: 20px !important;
    }
}

/* Tighter Service Cards on Mobile */
@media (max-width: 992px) {
    .service-detail-section .grid-2 {
        padding: 15px !important;
        gap: 10px !important;
    }
    .service-detail-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }
    .service-detail-section .section-subtitle {
        margin-bottom: 0px !important;
    }
    .service-detail-section p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    .service-features {
        margin-bottom: 0 !important;
    }
    .service-features li {
        font-size: 0.8rem !important;
        margin-bottom: 3px !important;
    }
    .service-detail-section div[style*="gap: 15px;"] {
        gap: 8px !important;
    }
    .service-detail-section div[style*="margin-top: 30px;"] {
        margin-top: 15px !important;
    }
    .service-detail-section div[style*="margin-top: 20px;"] {
        margin-top: 10px !important;
    }
    .service-detail-section .btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        flex: 1; /* Make buttons share the row if possible */
        text-align: center;
    }
}


/* Mobile Language Button */
@media (max-width: 992px) {
    .mobile-lang-btn {
        display: block !important;
    }
    
    html[dir="ltr"] .mobile-lang-btn {
        margin-left: auto !important;
        margin-right: 20px !important;
    }
    
    html[dir="rtl"] .mobile-lang-btn {
        margin-right: auto !important;
        margin-left: 20px !important;
    }
}
