/* Diplomatic Security Theme - Inspired by Saudi Diplomatic Security */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --primary: #1a237e;
  --primary-dark: #0d1442;
  --accent: #c9a227;
  --accent-dark: #a68520;
  --bg-dark: #0a0e1a;
  --bg-card: rgba(26, 35, 126, 0.15);
  --border: rgba(201, 162, 39, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  --text: #e8ecf4;
  --text-muted: rgba(232, 236, 244, 0.7);
  --text-dim: rgba(232, 236, 244, 0.5);
  --white: #ffffff;
  --success: #22c55e;
  --error: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  direction: rtl;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(26, 35, 126, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(13, 20, 66, 0.8) 0%, var(--bg-dark) 70%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo img {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  background: white;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
}

.nav-dropdown { position: relative; }

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.3s;
}

.dropdown-btn:hover { color: var(--accent); background: rgba(201, 162, 39, 0.1); }
.dropdown-btn svg { width: 16px; height: 16px; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(10, 14, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.dropdown-item:hover {
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: 
    linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%),
    radial-gradient(circle at 50% 30%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
}

.hero-content { max-width: 800px; }

.hero-logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 50px rgba(201, 162, 39, 0.4);
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px;
  object-fit: contain;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent) 0%, #e8d48a 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title span {
  display: block;
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

.btn {
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.2);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* Name Generator */
.name-generator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.name-gen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.name-gen-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.name-gen-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
}

.name-gen-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.code-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-prefix {
  padding: 14px 12px;
  background: rgba(201, 162, 39, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.code-input-wrapper .name-gen-input {
  border: none;
  border-radius: 0;
}

.name-gen-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.name-gen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.name-gen-result {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.name-gen-result-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.name-gen-result-row {
  display: flex;
  gap: 10px;
}

.name-gen-result-text {
  flex: 1;
  padding: 14px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
}

.name-gen-copy-btn {
  padding: 14px 18px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.name-gen-copy-btn:hover { background: var(--accent-dark); }

/* Reports */
.report-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.report-tab {
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.report-tab:hover { border-color: var(--accent); color: var(--accent); }
.report-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  border-color: var(--accent);
}

.report-panel { display: none; }
.report-panel.active { display: block; animation: fadeIn 0.4s ease; }

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

.report-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.form-input, .form-textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

/* Courses Section */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(201, 162, 39, 0.15);
}

.course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.course-content {
  padding: 25px;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.course-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.course-link:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Protocols */
.protocols-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}

.protocol-card h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.protocol-list { list-style: none; }

.protocol-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.protocol-list li:last-child { border-bottom: none; }

.protocol-code {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

/* Video Section */
.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-container video {
  width: 100%;
  display: block;
}

/* Map Section */
.map-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  border: 2px solid var(--border);
}

.map-container:hover { transform: scale(1.02); }
.map-container img { width: 100%; display: block; }

/* Discord */
.discord-banner {
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
  flex-wrap: wrap;
}

.discord-icon {
  width: 100px; height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.discord-info { flex: 1; text-align: right; }
.discord-title { font-size: 28px; margin-bottom: 10px; color: var(--white); font-weight: 700; }
.discord-desc { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; font-size: 16px; }

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.discord-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  text-align: center;
}

.footer-content { max-width: 800px; margin: 0 auto; }

.footer-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin-bottom: 20px;
  object-fit: contain;
  background: white;
  padding: 10px;
}

.footer-title { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.footer-text { color: var(--text-muted); margin-bottom: 25px; }

.footer-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 25px; }
.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--accent); }

.footer-divider { width: 100%; height: 1px; background: var(--border-light); margin: 25px 0; }
.footer-bottom { font-size: 13px; color: var(--text-dim); }
.footer-credit {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05));
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 20px;
  color: var(--accent);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  opacity: 0;
  transition: all 0.4s;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 40px;
}

.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: calc(100vh - 70px);
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    padding: 30px;
    gap: 15px;
    transition: right 0.3s;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .mobile-menu-btn { display: block; }
  .name-gen-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .protocols-container { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  
  .discord-banner {
    padding: 30px;
    flex-direction: column;
    text-align: center;
  }
  .discord-info { text-align: center; }
  .discord-icon { width: 80px; height: 80px; }
  
  .hero-title { font-size: 32px; }
  .hero-title span { font-size: 18px; }
}




