@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&family=Inter:wght@300;400;600;800&display=swap');

@font-face {
  font-family: 'NRT';
  src: url('../fonts/NRT-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --bg-color: #0b1120;
  --bg-secondary: #131c2f;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --gold-primary: #d4af37;
  --gold-hover: #f1c453;
  --glass-bg: rgba(19, 28, 47, 0.7);
  --glass-border: rgba(212, 175, 55, 0.15);
  
  --font-en: 'Inter', sans-serif;
  --font-ar: 'NRT', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Switch based on lang */
body[lang="ar"], body[lang="ku"] {
  font-family: var(--font-ar);
}

/* RTL Specific adjustments */
body[dir="rtl"] {
  text-align: right;
}

body[dir="rtl"] .logo {
  letter-spacing: normal;
}

/* Glass Navbar */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.lang-selector {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  transition: background 0.3s ease;
}

.lang-selector:hover {
  background: rgba(212, 175, 55, 0.1);
}

.lang-selector option {
  background: var(--bg-color);
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #0b1120 0%, rgba(11, 17, 32, 0.8) 50%, rgba(11, 17, 32, 0.3) 100%);
  z-index: 1;
}

body[dir="rtl"] .hero::after {
  background: linear-gradient(-90deg, #0b1120 0%, rgba(11, 17, 32, 0.8) 50%, rgba(11, 17, 32, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--gold-primary), #ffd966);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--gold-primary);
  color: var(--bg-color);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Sections */
section {
  padding: 8rem 5% 4rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  color: var(--gold-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

body[dir="rtl"] .service-card::before {
  transform-origin: right;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
}

/* Contact Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
}

.contact-direct {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-direct:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border-color: var(--gold-primary);
}

.contact-direct i {
  font-size: 2.5rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.contact-direct:hover i {
  transform: scale(1.1);
}

.contact-direct span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* QR Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 17, 32, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  position: relative;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--gold-primary);
}

.qr-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gold-primary);
  color: var(--bg-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.qr-float:hover {
  transform: scale(1.1);
}

body[dir="rtl"] .qr-float {
  right: auto;
  left: 30px;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .mobile-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid var(--glass-border);
  }
  .nav-links.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    display: flex;
  }
  body[dir="rtl"] .nav-links {
    left: auto;
    right: 0;
  }
  section { padding: 4rem 5%; }
}
