* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #0b0e12; color: #eaecef; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Hero Section with Background Image */
.hero { 
  position: relative; 
  padding: 28px 0 80px; 
  overflow: hidden; 
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11,14,18,0.85) 0%, rgba(26,34,48,0.75) 50%, rgba(11,14,18,0.9) 100%);
  z-index: 1;
}

.hero::after { 
  content: ''; 
  position: absolute; 
  inset: -120px; 
  background: conic-gradient(from 45deg, rgba(255,215,0,0.08), transparent 30%, rgba(255,215,0,0.12)); 
  filter: blur(40px); 
  z-index: 2; 
}

.nav { 
  position: relative; 
  z-index: 3; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #d4af37, #b78c1e); color: #0b0e12; display: grid; place-items: center; font-weight: 800; letter-spacing: 1px; }
.brand-text strong { display: block; font-weight: 800; line-height: 1.1; }
.brand-text span { opacity: 0.85; font-size: 14px; }

.btn { background: linear-gradient(145deg, #d4af37, #b78c1e); color: #0b0e12; padding: 12px 18px; border-radius: 12px; font-weight: 700; display: inline-block; transition: all 0.3s ease; }
.btn:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid #d4af37; color: #d4af37; }

.hero-content { 
  position: relative; 
  z-index: 3; 
  margin-top: 60px; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero h1 { margin: 0 0 12px; font-size: clamp(26px, 3.8vw, 44px); }
.hero p { margin: 0 0 22px; color: #c4c9d4; max-width: 60ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Section Styling */
.section { padding: 64px 0; }
.section.alt { background: #0f1318; }
.section h2 { margin-top: 0; font-size: clamp(22px, 3vw, 32px); }
.section-subtitle { 
  color: #c4c9d4; 
  font-size: 18px; 
  margin-bottom: 40px; 
  text-align: center; 
}

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* About Section Image */
.about-image-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

/* Service Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); 
  border: 1px solid rgba(212,175,55,0.25); 
  padding: 18px; 
  border-radius: 16px; 
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.service-card {
  overflow: hidden;
  padding: 0;
}

.service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card h3,
.service-card p {
  padding: 0 18px;
}

.service-card h3 {
  margin: 18px 0 12px 0;
}

.service-card p {
  margin: 0 0 18px 0;
}

.card h3 { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-right: 26px; margin: 8px 0; }
.checks li::before { content: '✓'; position: absolute; right: 0; top: 0; color: #d4af37; }

/* Locations Section */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.location-card {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(212,175,55,0.2);
}

.location-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.location-card h3 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 20px;
}

.location-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.location-services {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.location-services li {
  position: relative;
  padding-right: 20px;
  margin: 8px 0;
  font-size: 14px;
  color: #c4c9d4;
}

.location-services li::before {
  content: '•';
  position: absolute;
  right: 0;
  top: 0;
  color: #d4af37;
  font-weight: bold;
}

/* Documents Section */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.document-card {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.15);
}

.document-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.document-card h3 {
  color: #d4af37;
  margin-bottom: 15px;
}

.document-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.document-links .btn {
  font-size: 14px;
  padding: 10px 16px;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}

.gallery-overlay p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Documents Section */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.document-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #b78c1e);
}

.document-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.document-card h3 {
  margin: 0 0 16px 0;
  color: #d4af37;
  font-size: 22px;
}

.document-card p {
  margin-bottom: 24px;
  color: #c4c9d4;
  line-height: 1.6;
}

.document-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.document-links .btn {
  min-width: 200px;
  text-align: center;
}

@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .document-card {
    padding: 24px 20px;
  }
  
  .document-links {
    gap: 10px;
  }
  
  .document-links .btn {
    min-width: 180px;
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Contact Form */
.contact-form { display: grid; gap: 12px; }
.form-group { display: grid; gap: 6px; }
.form-group small {
  font-size: 12px;
  color: #a9b1bd;
  margin-top: 4px;
}
input, textarea { 
  background: #0b0e12; 
  border: 1px solid rgba(212,175,55,0.35); 
  color: #eaecef; 
  padding: 10px 12px; 
  border-radius: 10px; 
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, textarea:focus { 
  outline: none; 
  border-color: #d4af37; 
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15); 
}
input.error, textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}
.form-note { font-size: 13px; color: #a9b1bd; }
.form-note a {
  color: #d4af37;
  text-decoration: underline;
}

.badge { 
  display: inline-block; 
  border: 1px dashed rgba(212,175,55,0.6); 
  padding: 8px 12px; 
  border-radius: 999px; 
  color: #d4af37; 
  margin-top: 10px; 
}

.contact-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(212,175,55,0.25);
}

.contact-info h3 {
  margin: 0 0 12px 0;
  color: #d4af37;
  font-size: 16px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 14px;
}

.contact-info a {
  color: #d4af37;
  text-decoration: underline;
}

.contact-info a:hover {
  text-decoration: none;
}

/* Improve link contrast for accessibility */
a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Ensure sufficient contrast for all links */
.footer-section ul li a {
  color: #c4c9d4;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
  color: #d4af37;
  text-decoration-color: #d4af37;
}

.footer-bottom a {
  color: #d4af37;
  text-decoration: underline;
}

.footer-bottom a:hover {
  text-decoration: none;
}

.form-note a {
  color: #d4af37;
  text-decoration: underline;
}

/* Footer */
.footer { 
  background: #0b0e12; 
  border-top: 1px solid rgba(212,175,55,0.25); 
  padding: 40px 0 20px; 
  color: #c4c9d4; 
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: #d4af37;
  margin: 0 0 16px 0;
  font-size: 18px;
}

.footer-section p {
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #c4c9d4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #d4af37;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(212,175,55,0.15);
  font-size: 14px;
}

.footer-bottom a {
  color: #d4af37;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 0 16px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  
  .footer-section {
    text-align: center;
  }
}

/* Footer Styling */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #c4c9d4;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #d4af37;
}

.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.25);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom a {
  color: #d4af37;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #eaecef;
}

.contact-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(212,175,55,0.25);
}

.contact-info h3 {
  color: #d4af37;
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-info p {
  margin: 5px 0;
  font-size: 14px;
}

.contact-info a {
  color: #d4af37;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 20px 0 60px;
  }
  
  .hero-content {
    margin-top: 40px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .about-image {
    height: 200px;
  }
  
  .service-image {
    height: 150px;
  }
  
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .document-links {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 180px;
  }
}

/* Critical CSS Optimizations */
/* Reduce animation complexity for better performance */
img {
  opacity: 0;
  animation: fadeIn 0.1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Optimize smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Optimize image loading */
img[loading="lazy"] {
  transition: opacity 0.1s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

/* Reduce paint complexity - simplified hero effect */
.hero::after {
  content: '';
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.03) 0%, transparent 60%);
  filter: blur(15px);
  z-index: 2;
  will-change: transform;
  transform: translateZ(0);
}

/* Optimize transitions for better performance */
.card,
.gallery-item,
.about-image {
  will-change: transform;
}

/* Reduce shadow complexity */
.card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.gallery-item {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gallery-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.about-image {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Optimize font loading */
@font-display: swap;

/* Reduce layout shifts */
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  content-visibility: auto;
}

/* Optimize critical path */
.nav {
  contain: layout style;
}

.hero-content {
  contain: layout;
}

/* Reduce repaints */
.btn {
  contain: layout style;
}

/* Optimize gallery performance */
.gallery-grid {
  contain: layout;
}

.gallery-item {
  contain: layout style;
}

/* Contact Icons with Bubbling Animation */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  position: relative;
  animation: bubble 2s infinite ease-in-out;
}

.phone-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
  background: linear-gradient(135deg, #25D366, #075E54);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
}

.phone-link:hover .phone-icon {
  animation: bubbleHover 0.6s ease-in-out;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-link:hover .whatsapp-icon {
  animation: bubbleHover 0.6s ease-in-out;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
}

/* Bubbling Animation Keyframes */
@keyframes bubble {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bubbleHover {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  75% {
    transform: scale(1.1) rotate(-2deg);
  }
  100% {
    transform: scale(1.05) rotate(0deg);
  }
}

/* Ripple Effect */
.contact-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212,175,55,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.contact-link:hover::before {
  width: 100px;
  height: 100px;
}

/* Footer Contact Links */
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 20px;
}

.footer-contact-link:hover {
  color: #d4af37;
  transform: translateY(-1px);
}

.footer-contact-link .contact-icon {
  width: 24px;
  height: 24px;
  font-size: 14px;
  animation: bubble 3s infinite ease-in-out;
}

/* Floating Contact Icons - Like WhatsApp Style */
.floating-contacts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
}

.floating-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  animation-delay: 0s;
}

.floating-phone {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  animation-delay: 0.5s;
}

.floating-contact-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.floating-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E, #25D366);
  border-color: rgba(37, 211, 102, 0.5);
}

.floating-phone:hover {
  background: linear-gradient(135deg, #0056b3, #007bff);
  border-color: rgba(0, 123, 255, 0.5);
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-10px) rotate(1deg); 
  }
  66% { 
    transform: translateY(-5px) rotate(-1deg); 
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Mobile responsiveness for floating contacts */
@media (max-width: 768px) {
  .floating-contacts {
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 30px);
    left: 15px;
    right: 15px;
    bottom: 15px;
    gap: 0;
  }
  
  .floating-contact-btn {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .floating-contacts {
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 0;
  }
  
  .floating-contact-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
