/* ========================================
   TOPTELL Technical Services L.L.C
   Dubai, UAE - Green & Gold Theme
   ======================================== */

:root {
  --green: #1a5c3a;
  --green-light: #2d7a4f;
  --green-dark: #0f3d26;
  --green-darker: #0a2b1b;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #a08020;
  --white: #ffffff;
  --light: #f5f5f0;
  --dark: #1a1a1a;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes pulse-wa {
  0%,100%{box-shadow:0 4px 15px rgba(37,211,102,0.4)}
  50%{box-shadow:0 4px 25px rgba(37,211,102,0.7)}
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 45px; }
.logo-text h1 {
  font-size: 20px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-text span {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === NAV === */
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  position: relative;
  transition: var(--transition);
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.btn-quote {
  background: var(--gold);
  color: var(--green-dark) !important;
  padding: 10px 22px !important;
  border-radius: 25px;
  font-weight: 600 !important;
  font-size: 12px !important;
}
.btn-quote::after { display: none !important; }
.btn-quote:hover { background: var(--gold-light); color: var(--green-dark) !important; }

.mobile-toggle {
  display: none; background: none; border: none;
  color: var(--gold); font-size: 24px; cursor: pointer;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,61,38,0.92) 0%, rgba(15,61,38,0.75) 50%, rgba(15,61,38,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 20px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}
.hero h2 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h2 span { color: var(--gold); }
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 35px;
  max-width: 550px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-gold {
  background: var(--gold); color: var(--green-dark);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,162,39,0.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp {
  background: #25D366; color: var(--white);
}
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); }
.btn-green {
  background: var(--green); color: var(--white);
}
.btn-green:hover { background: var(--green-light); transform: translateY(-2px); }

/* === SCROLL DOWN === */
.scroll-down {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-down span {
  display: block; width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px; position: relative;
}
.scroll-down span::before {
  content: ''; position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; background: var(--gold);
  border-radius: 50%; animation: scroll-dot 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%)translateY(0)} 50%{transform:translateX(-50%)translateY(10px)} }
@keyframes scroll-dot { 0%,100%{top:8px;opacity:1} 50%{top:24px;opacity:0.3} }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
  display: inline-block; color: var(--gold-dark);
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 3px; font-weight: 600; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); color: var(--green-dark);
  font-weight: 700; margin-bottom: 12px;
}
.section-subtitle { color: var(--text-light); font-size: 15px; max-width: 550px; margin: 0 auto; }
.gold-line {
  width: 60px; height: 3px; background: var(--gold);
  margin: 15px auto; border-radius: 2px;
}

/* === SERVICES GRID (Homepage) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: linear-gradient(145deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  color: var(--white);
  transition: var(--transition);
  border: 1px solid rgba(201,162,39,0.2);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(26,92,58,0.3);
  border-color: var(--gold);
}
.service-icon {
  width: 55px; height: 55px;
  background: rgba(201,162,39,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}
.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.service-card p.ar {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  direction: rtl;
}

/* === STATS BAR === */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 50px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px; text-align: center;
}
.stat-item h3 {
  font-size: 40px; color: var(--gold);
  font-weight: 700;
}
.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: center;
}
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-content h3 { font-size: 30px; color: var(--green-dark); margin-bottom: 18px; }
.about-content p { color: var(--text-light); margin-bottom: 15px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.about-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.about-feature svg { color: var(--gold); flex-shrink: 0; }

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,92,58,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay h4 { color: var(--white); font-size: 15px; }
.gallery-item .overlay p { color: var(--gold); font-size: 12px; }

/* Play button for videos */
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55px; height: 55px;
  background: rgba(201,162,39,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-left: 16px solid var(--white);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

/* === SERVICE DETAIL PAGE === */
.service-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.service-hero h1 { font-size: clamp(28px, 4vw, 42px); color: var(--white); }
.service-hero p { color: var(--gold); margin-top: 10px; font-size: 15px; }

/* Tabs */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 12px 24px; background: var(--white);
  border: 2px solid #ddd; border-radius: 50px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text); transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Service detail cards */
.svc-detail { background: var(--white); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 30px; box-shadow: var(--shadow); }
.svc-detail h3 { font-size: 24px; color: var(--green-dark); margin-bottom: 15px; }
.svc-detail p { color: var(--text-light); margin-bottom: 15px; }
.svc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-top: 25px; }
.svc-gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.svc-gallery-item img, .svc-gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.svc-gallery-item:hover img, .svc-gallery-item:hover video { transform: scale(1.05); }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 26px; color: var(--green-dark); margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.contact-icon {
  width: 45px; height: 45px;
  background: var(--green); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 15px; color: var(--green-dark); margin-bottom: 3px; }
.contact-item p { font-size: 14px; color: var(--text-light); }

/* Contact form */
.contact-form { background: var(--white); padding: 35px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--green-dark); font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid #e0e0e0; border-radius: var(--radius);
  font-size: 14px; font-family: inherit; transition: var(--transition); background: var(--light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--green); background: var(--white);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* Map */
.map-container {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 3px solid var(--gold); margin-top: 20px;
  height: 350px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* === LIGHTBOX === */
.lightbox {
  display: none; position: fixed; inset: 0;
  z-index: 10000; background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 36px; color: var(--white); cursor: pointer; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 36px; color: var(--white); cursor: pointer; padding: 15px; }
.lightbox-nav:hover { color: var(--gold); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* === FOOTER === */
.footer {
  background: var(--green-darker); color: var(--white);
  padding: 60px 0 0; border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { font-size: 22px; color: var(--gold); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 18px; }
.footer-links h4 { font-size: 15px; color: var(--gold); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 13px;
}

/* === PAGE BANNER === */
.page-banner {
  padding: 130px 0 50px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); color: var(--white); }
.page-banner p { color: var(--gold); font-size: 15px; margin-top: 8px; }

/* === TESTIMONIAL === */
.testimonial-card {
  background: var(--white); padding: 35px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  text-align: center; max-width: 700px; margin: 0 auto;
  border: 1px solid #e8e8e8;
}
.testimonial-card .quote { font-size: 18px; color: var(--text); font-style: italic; margin-bottom: 25px; line-height: 1.8; }
.testimonial-card h4 { color: var(--green-dark); font-size: 17px; }
.testimonial-card span { color: var(--text-muted); font-size: 13px; }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-light); }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--green-dark); flex-direction: column;
    padding: 25px; gap: 12px;
    transform: translateY(-150%); transition: var(--transition); z-index: 999;
  }
  .nav-menu.active { transform: translateY(0); }
  .mobile-toggle { display: block; }
  .hero h2 { font-size: 30px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}
