/* ==========================================================================
   Mark Tech - Master Aesthetic CSS & Design System
   Theme: Royal Midnight Navy (#0F172A), Midnight Slate (#1E293B), Royal Gold (#D4AF37), Electric Cyan (#00F2FE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@400;600;700&display=swap');

:root {
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;
  --bg-dark-glass: rgba(30, 41, 59, 0.75);
  --gold-primary: #D4AF37;
  --gold-secondary: #F3E5AB;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA771C 100%);
  --cyan-electric: #00F2FE;
  --cyan-gradient: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-glass: rgba(212, 175, 55, 0.2);
  --border-cyan: rgba(0, 242, 254, 0.25);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  --shadow-cyan: 0 10px 30px rgba(0, 242, 254, 0.25);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
  --radius-card: 20px;
  --radius-button: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
  background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
              var(--bg-dark);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 5px;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
}

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

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyan-text {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--bg-dark-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

/* Header & Navbar */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 900;
}

.brand-logo i {
  color: var(--gold-primary);
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

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

.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-button);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0F172A;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-cyan {
  background: var(--cyan-gradient);
  color: #0F172A;
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold-primary);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-secondary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--gold-primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 180px 25px 100px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--cyan-electric);
  border-radius: 30px;
  color: var(--cyan-electric);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 25px;
  line-height: 1.25;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-size: 2.2rem;
  font-family: 'Outfit', sans-serif;
  color: var(--gold-primary);
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-card-featured {
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card-featured::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  animation: pulseGlow 6s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* Services Grid & Categories */
.section-padding {
  padding: 90px 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--cyan-electric);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 10px;
  display: block;
}

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

.category-tabs {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.cat-tab {
  padding: 12px 25px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.cat-tab:hover,
.cat-tab.active {
  background: var(--gold-gradient);
  color: #0F172A;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan-electric);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
  width: fit-content;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.service-price {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

/* Interactive Calculator Box */
.calculator-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--gold-primary);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #FFF;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--cyan-electric);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.price-result-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-cyan);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-top: 30px;
}

.price-result-amount {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--cyan-electric);
}

/* Floating Contact Buttons */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  animation: floatPulse 3s infinite;
}

.floating-call {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--gold-gradient);
  color: #0F172A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-gold);
  z-index: 999;
}

@keyframes floatPulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* Footer */
.main-footer {
  background: #0B1120;
  border-top: 1px solid var(--border-glass);
  padding: 80px 25px 30px;
  margin-top: 100px;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--gold-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--cyan-electric);
  padding-right: 5px;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 30px;
    border-bottom: 1px solid var(--border-glass);
  }
  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
