/* ==================== CSS VARIABLES & RESET ==================== */
:root {
  --sea-blue: #1e3a8a;
  --sea-light: #3b82f6;
  --sunset-orange: #f59e0b;
  --sand-gold: #fbbf24;
  --sand-light: #fcd34d;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  --border-color: rgba(30, 58, 138, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 15px rgba(30, 58, 138, 0.1);
  --shadow-md: 0 12px 35px rgba(30, 58, 138, 0.15);
  --shadow-lg: 0 24px 60px rgba(30, 58, 138, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 50%, #f9fafb 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, #ff8c42 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--sunset-orange);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn-gold {
  background: var(--sand-gold);
  color: var(--sea-blue);
}

.btn-gold:hover {
  background: var(--sand-light);
}

/* ==================== GLASS EFFECT ==================== */
.glass {
  backdrop-filter: blur(18px);
  border: 1px solid rgba(30, 58, 138, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-bottom: 2px solid var(--sand-gold);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.08);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sand-gold);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sea-blue);
  background: rgba(251, 191, 36, 0.1);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(30, 58, 138, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(30, 58, 138, 0.1);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 1.5rem 90px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0f172a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1539650116574-8efeb43e2750?auto=format&fit=crop&w=1920&q=80") center/cover;
  opacity: 0.3;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.95));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
  color: white;
}

.hero-sub {
  font-size: 1.5rem;
  color: var(--sand-light);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--sand-gold);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--sunset-orange), var(--sand-gold));
  margin: 1rem auto;
}

/* ==================== WHY CHOOSE US ==================== */
.why-section {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.05), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(30, 58, 138, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.05);
}

.why-card:hover {
  border-color: var(--sunset-orange);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
  transform: translateY(-4px);
}

.why-card h3 {
  color: var(--sea-blue);
  margin-bottom: 1rem;
}

.why-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  background: rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
  color: var(--sea-blue);
}

/* ==================== CARDS & GRID ==================== */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.05);
}

.card:hover {
  border-color: var(--sunset-orange);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.12);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==================== INTERACTIVE MAP ==================== */
.interactive-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-image: url('https://raw.githubusercontent.com/djaiss/mapsicon/refs/heads/master/all/eg/vector.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f7f9fb;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--sand-gold);
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
}

.map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sand-gold), var(--sunset-orange));
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
}

.map-point:hover .map-dot,
.map-point:focus .map-dot,
.map-point:active .map-dot {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.8);
}

.map-tooltip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid var(--sand-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  white-space: nowrap;
  color: var(--sea-blue);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.map-point:hover .map-tooltip,
.map-point:focus .map-tooltip,
.map-point:active .map-tooltip {
  opacity: 1;
}

/* ==================== CONTACT FORM ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--sunset-orange);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-control::placeholder {
  color: rgba(30, 58, 138, 0.4);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(180deg, #1e3a8a 0%, #1e3a8a 100%);
  border-top: 3px solid var(--sand-gold);
  padding: 3rem 1.5rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--sand-gold);
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--sand-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ==================== AI CHAT WIDGET ==================== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
}

.chat-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--sunset-orange), #ff8c42);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: linear-gradient(135deg, var(--sea-blue), var(--sea-light));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 600px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transform-origin: bottom left;
  transition: all 0.3s ease;
}

.chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.chat-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-header-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn:hover {
  color: var(--sand-gold);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  word-wrap: break-word;
  animation: slideIn 0.3s ease;
}

.chat-message.user {
  align-self: flex-end;
  background: rgba(255, 107, 53, 0.3);
  border: 1px solid rgba(255, 107, 53, 0.5);
}

.chat-message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-controls {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--sunset-orange);
}

.chat-voice-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-voice-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.chat-voice-btn.listening {
  background: #ef4444;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  }
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--sunset-orange);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  background: #ff8c42;
}

/* ==================== UTILITIES ==================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt {
  margin-top: 1rem;
}

.mb {
  margin-bottom: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 40px 1rem 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .chat-widget {
    left: 1rem;
    bottom: 1rem;
  }

  .chat-panel {
    width: calc(100vw - 2rem);
    max-width: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0.75rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .chat-btn {
    width: 56px;
    height: 56px;
  }

  .nav-links.active {
    gap: 0.3rem;
  }
}

/* ==================== ANIMATION UTILITIES ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
