@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: 'MazzardM';
  src: url('assets/fonts/mazzard/MazzardM-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'san_francisco';
  src: url('assets/fonts/sanFrancisco/SFUIText-Regular.otf') format('opentype');

}

/* === CONTAINER & LAYOUT === */
.containerDiv {
  margin: auto;
  width: 100%;
  max-width: 1280px;
  overflow-y: hidden;
}

.containerDivforHeader {
  overflow: visible !important;
  position: relative;
  z-index: 1001;
  margin: auto;
  width: 100%;
  max-width: 1280px;
}

/* === TYPOGRAPHY & COLORS === */
.gradient-text {
  background: linear-gradient(135deg, #b00000 0%, #e63946 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body{
  color:#2e3340 ;
}

.text-shadow-red {
  text-shadow: 0 4px 12px rgba(183, 50, 53, 0.4);
}

.text-shadow-dark {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
/* 
.text-custom-red {
  color: #b73235;
} */

.text-red {
  color: #bf0100;
}
.text-blue {
  color: #001f5b;
}
.text-gray {
  color: #2e3340;
}

.bg-red {
  background: linear-gradient(to bottom, #ff0000, #b00000);
}
.bg-blue {
  background: linear-gradient(to bottom, #0052cc, #001f5b);
}
.bg-gray {
  background-color: #2e3340;
}


/* .bg-custom-blue {
  background-color: #323743;
}

.bg-custom-red {
  background-color: #b00000;
} */



.font-mazzard {
  font-family: 'MazzardM', Arial, sans-serif;
}
.font-sanfrancisco {
  font-family: 'san_francisco', Arial, sans-serif;
}


.title {
  font-size: 48px;
  font-family: 'MazzardM', Arial, sans-serif;
  font-weight: 700;
  line-height: 50px;
  margin-bottom: 24px;
  color: #bf0100;

  & span:nth-child(1) {
    display: block;
    color: #bf0100;
  }
  & span:nth-child(2) {
    display: block;
    color: #001f5b;
  }
}

::selection {
  background-color: #b00000;
  color: white;
}

/* === HEADER === */
header {
  overflow: visible !important;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
  padding-top: 100px;
}

/* === SWIPER STYLES === */
html,
body {
  position: relative;
  height: 100%;
  behavior: smooth;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper {
  width: 100%;
  height: 130px;
  margin: 20px auto;
}

.append-buttons {
  text-align: center;
  margin-top: 20px;
}

.append-buttons button {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #007aff;
  color: #007aff;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 10px;
  font-size: 13px;
}

/* === HEADER SWIPER === */
.headSwiper-container {
  width: 100%;
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.headSwiper-wrapper {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.nav-button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
 background: linear-gradient(to bottom, #ff0000, #b00000);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(183, 50, 53, 0.4);
}

.nav-button:hover {
 background: linear-gradient(to bottom, #ff0000, #b00000);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(183, 50, 53, 0.6);
}

.nav-button:active {
  transform: scale(0.95);
}

.indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(170, 154, 154, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #b00000;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(183, 50, 53, 0.7);
}

/* === DESKTOP DROPDOWN MENU STYLES === */
.dropdown {
  position: relative;
  z-index: 1002;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  padding: 16px 20px;
  min-width: 300px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown subtitle styling */
.dropdown-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-submenu {
  position: relative;
  z-index: 1003;
}

.dropdown-submenu-menu {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10000 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  padding: 12px 16px;
  min-width: 220px;
}

.dropdown-submenu:hover .dropdown-submenu-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-item {
  padding: 8px 12px;
  color: #374151;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  font-size: 14px;
  border-radius: 6px;
  margin: 2px 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  border-bottom: 1px solid #e5e7eb; /* border bottom for dropdowned items only */
  background: #fff;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #b00000;
}

.dropdown-item.has-children {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.dropdown-item.has-children::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Dropdown menu that opens to the left (for last nav items) */
.dropdown-menu-left {
  left: auto !important;
  right: 0 !important;
  transform: translateY(-10px);
}

.dropdown-menu-left.show {
  transform: translateY(0);
}

/* Submenu that opens to the left */
.dropdown-submenu-menu-left {
  left: auto !important;
  right: 100% !important;
  top: 0 !important;
  transform: translateX(10px);
}

.dropdown-submenu-menu-left.show {
  transform: translateX(0);
}

/* Usage: Add 'dropdown-menu-left' to the dropdown-menu of the last nav items (like karyera and elaqe) in your HTML. For submenus, use 'dropdown-submenu-menu-left'. */

/* === MOBILE MENU STYLES === */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
  display: block;
  opacity: 1;
}

#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
}

#mobileMenu.active {
  transform: translateX(0);
}

/* Mobile menu item - clean, minimal */
.mobile-menu-item {
  padding: 0.5rem 0;
  border-bottom: none;
  background: none;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

/* Mobile dropdown - clean, no excessive shadows */
.mobile-dropdown {
  display: none;
  margin-top: 0.5rem;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 0;
}

.mobile-dropdown.active {
  display: block;
}

/* Mobile dropdown subtitle */
.mobile-dropdown-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

/* Mobile dropdown items - clean */
.mobile-dropdown-item {
  padding: 6px 8px;
  color: #4b5563;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
  font-size: 14px;
  font-weight: 400;
  border-radius: 4px;
  margin: 2px 0;
  border-bottom: 1px solid #e5e7eb; /* border bottom for dropdowned items only */
  background: none;
}

.mobile-dropdown-item:hover {
  color: #b00000;
  background-color: #f1f5f9;
}

/* Mobile dropdown toggle - clean */
.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #181818;
  transition: color 0.2s ease;
  font-size: 16px;
  gap: 12px;
}

.mobile-dropdown-toggle:hover {
  color: #b00000;
}

.mobile-dropdown-toggle::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-dropdown-toggle.active::after {
  transform: rotate(180deg);
  color: #b00000;
}

/* Mobile submenu styling - clean */
.mobile-submenu {
  margin-top: 4px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.mobile-submenu .mobile-dropdown-toggle {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 0;
  gap: 10px;
}

.mobile-submenu .mobile-dropdown-item {
  padding: 4px 6px;
  font-size: 13px;
  color: #6b7280;
}

.mobile-submenu .mobile-dropdown-item:hover {
  color: #b00000;
}

/* Third level items */
.mobile-submenu .mobile-submenu .mobile-dropdown-item {
  padding-left: 1rem;
  font-size: 12px;
  color: #9ca3af;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 480px) {
  .controls {
    bottom: 15px;
    right: 15px;
  }

  #mobileMenu {
    width: 90vw;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 44px;
  }

  .controls {
    bottom: 20px;
    right: 20px;
  }

  .nav-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  #mobileMenuBtn {
    display: block !important;
  }

  .md\:hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  #mobileMenuBtn {
    display: none !important;
  }

  #mobileMenu {
    display: none !important;
  }

  #desktopMenu a,
  #desktopMenu .dropdown-item {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  .dropdown,
  .dropdown-submenu {
    position: relative;
    z-index: 2147483646;
  }

  .dropdown-menu,
  .dropdown-submenu-menu {
    position: absolute !important;
    z-index: 2147483647 !important;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    transform: none !important;
    background-color: #fff;
  }

  .dropdown-submenu-menu {
    left: 100% !important;
    top: 0 !important;
  }

  .dropdown-item {
    color: #181818;
    background: #fff;
    font-size: 14px !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .dropdown-item:hover {
    background: #f8f9fa;
    color: #b00000;
  }
}

/* === GLOBAL STYLES === */
* {
  transition: all 0.2s ease;
}

/* Desktop main menu items with dropdowns - clean spacing */
#desktopMenu .dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

#desktopMenu .dropdown > a i {
  margin-left: 2px;
}

/* Remove unnecessary padding from nav items */
#desktopMenu a,
#desktopMenu .dropdown-item {
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-bottom: 1px solid #e5e7eb; /* border bottom for all nav items */
  background: #fff;
}

#desktopMenu a:last-child,
#desktopMenu .dropdown-item:last-child {
  border-bottom: none;
}

/* Add padding between text and dropdown icon in desktop dropdowns */
.dropdown-item.has-children {
  gap: 24px;
}

/* Remove border-bottom from first-level nav items in desktop */
#desktopMenu > a,
#desktopMenu > .dropdown > a {
  border-bottom: none !important;
  background: none !important;
}

#desktopMenu .dropdown-item {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
#desktopMenu .dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item.has-children {
  gap: 24px;
}

/* === MOBILE MENU STYLES === */
.mobile-menu-item {
  border-bottom: none !important;
  background: none !important;
}

.mobile-dropdown {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.mobile-dropdown-item {
  border-bottom: 1px solid #e5e7eb;
  background: none !important;
}
.mobile-dropdown-item:last-child {
  border-bottom: none;
}

/* Submenu dropdown items in mobile */
.mobile-submenu .mobile-dropdown-item {
  border-bottom: 1px solid #e5e7eb;
}
.mobile-submenu .mobile-dropdown-item:last-child {
  border-bottom: none;
}

/* Clean mobile menu item links */
.mobile-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.75rem 0;
  color: #181818;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.mobile-menu-item a:hover {
  color: #b00000;
}
