/* ========================================
   MODERN UI/UX REDESIGN - OSAG SOMALIA
   National Color Identity Theme
   ======================================== */

:root {
  /* Somalia Flag & Emblem Colors */
  --primary-blue: #418FDE;
  --primary-white: #FFFFFF;
  --accent-gold: #FFD700;
  --accent-green: #2D5016;
  --charcoal-black: #2C3E50;
  --gold-color: #FFD700;
  
  /* Extended Palette */
  --light-blue: #abd1ff;
  --medium-blue: #5BA3E8;
  --dark-blue: #2C5F8D;
  --soft-gold: #FFF4CC;
  --text-primary: #2C3E50;
  --text-secondary: #6C757D;
  --border-color: #E0E6ED;
  --shadow-sm: 0 2px 8px rgba(65, 143, 222, 0.08);
  --shadow-md: 0 4px 16px rgba(65, 143, 222, 0.12);
  --shadow-lg: 0 8px 32px rgba(65, 143, 222, 0.16);
  
  /* Day/Night Mode */
  --bg-day: linear-gradient(180deg, #E8F4FD 0%, #FFFFFF 100%);
  --bg-night: linear-gradient(180deg, #1a2332 0%, #2C3E50 100%);
}

/* ========================================
   DAY/NIGHT THEME BACKGROUNDS
   ======================================== */

body.day-mode {
  background: linear-gradient(180deg, #E8F4FD 0%, #FFFFFF 50%, #F8FBFF 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body.day-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.6) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

body.night-mode {
  background: linear-gradient(180deg, #0f1419 0%, #1a2332 50%, #2C3E50 100%);
  background-attachment: fixed;
  position: relative;
  color: var(--primary-white);
  min-height: 100vh;
}

body.night-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

/* Animated Dots */
.animated-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.animated-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.night-mode .animated-dot {
  background: white;
  opacity: 0.6;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.animated-dot:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; animation-duration: 15s; }
.animated-dot:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; animation-duration: 18s; }
.animated-dot:nth-child(3) { top: 30%; left: 50%; animation-delay: 4s; animation-duration: 20s; }
.animated-dot:nth-child(4) { top: 40%; left: 10%; animation-delay: 1s; animation-duration: 22s; }
.animated-dot:nth-child(5) { top: 50%; left: 90%; animation-delay: 3s; animation-duration: 16s; }
.animated-dot:nth-child(6) { top: 60%; left: 30%; animation-delay: 5s; animation-duration: 19s; }
.animated-dot:nth-child(7) { top: 70%; left: 70%; animation-delay: 2.5s; animation-duration: 21s; }
.animated-dot:nth-child(8) { top: 80%; left: 40%; animation-delay: 4.5s; animation-duration: 17s; }
.animated-dot:nth-child(9) { top: 15%; left: 60%; animation-delay: 1.5s; animation-duration: 23s; }
.animated-dot:nth-child(10) { top: 85%; left: 15%; animation-delay: 3.5s; animation-duration: 18s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-40px) translateX(-10px); }
  75% { transform: translateY(-20px) translateX(5px); }
}

/* ========================================
   MODERN HEADER & NAVIGATION
   ======================================== */

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.night-mode header {
  background: rgba(44, 62, 80, 0.95);
  border-bottom: 1px solid rgba(65, 143, 222, 0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary-blue) !important;
  font-size: 1.25rem;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue) !important;
  background: var(--light-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 60%;
}

.night-mode .nav-link {
  color: var(--primary-white) !important;
}

.night-mode .nav-link:hover {
  background: rgba(65, 143, 222, 0.15);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--primary-blue);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* ========================================
   MODERN HERO/SLIDER SECTION
   ======================================== */

.slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.slider .item {
  position: relative;
  height: 600px;
}

.slider .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(65, 143, 222, 0.85) 0%, rgba(44, 95, 141, 0.75) 100%);
  z-index: 1;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 20px;
}

.slider .hello {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease;
}

.slider .display-4 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.slider .content {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0.95;
  animation: fadeIn 0.8s ease 0.4s both;
}

.view_more {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-gold);
  color: var(--charcoal-black) !important;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  margin: 0 8px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.view_more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  background: #FFC700;
}

.view_more.contact_us {
  background: transparent;
  border: 2px solid white;
  color: white !important;
}

.view_more.contact_us:hover {
  background: white;
  color: var(--primary-blue) !important;
}

/* ========================================
   MODERN CARDS & COMPONENTS
   ======================================== */

.card-modern {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.night-mode .card-modern {
  background: rgba(44, 62, 80, 0.6);
  border-color: rgba(65, 143, 222, 0.3);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--light-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-blue);
  font-size: 28px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal-black);
  margin-bottom: 12px;
}

.night-mode .card-title {
  color: var(--primary-white);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   SECTION HEADINGS
   ======================================== */

.section_heading {
  text-align: center;
  margin-bottom: 48px;
}

.section_heading h4 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal-black);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.night-mode .section_heading h4 {
  color: var(--primary-white);
}

.separator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.separator ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.separator li {
  width: 40px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.separator li:nth-child(2) {
  background: var(--accent-gold);
  width: 60px;
}

.separator li:nth-child(3) {
  background: var(--accent-green);
}

.heading_content {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   NEWSLETTER/SUBSCRIPTION
   ======================================== */

#quick-connect {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#quick-connect::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.newsletter {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter .section_heading h4 {
  color: white;
}

.newsletter .heading_content {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter form {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.newsletter input[type="text"] {
  flex: 1;
  min-width: 250px;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.25);
}

.newsletter button[type="submit"] {
  padding: 16px 48px;
  background: var(--accent-gold);
  color: var(--charcoal-black);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.newsletter button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  background: #FFC700;
}

/* ========================================
   MODERN FOOTER
   ======================================== */

footer {
  background: var(--charcoal-black);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

footer h5 {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 12px;
}

.follow_us_on {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.follow_us_on a {
  font-size: 1.75rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.follow_us_on a:hover {
  color: var(--accent-gold);
  transform: scale(1.2);
}

.copyright {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ========================================
   BUTTONS & FORMS
   ======================================== */

.btn-primary-modern {
  background: var(--primary-blue);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary-modern:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold-modern {
  background: var(--accent-gold);
  color: var(--charcoal-black);
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gold-modern:hover {
  background: #FFC700;
  transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .slider {
    height: 500px;
  }
  
  .slider .display-4 {
    font-size: 2rem;
  }
  
  .slider .content {
    font-size: 1rem;
  }
  
  .newsletter form {
    flex-direction: column;
  }
  
  .newsletter input[type="text"] {
    width: 100%;
  }
  
  .section_heading h4 {
    font-size: 2rem;
  }
  
  .hero-slider-modern {
    height: 100% !important;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary-blue { color: var(--primary-blue); }
.text-gold { color: var(--accent-gold); }
.bg-light-blue { background: var(--light-blue); }
.shadow-modern { box-shadow: var(--shadow-md); }
.rounded-modern { border-radius: 16px; }


