/* ============================================
   GLOBAL FIX - Prevent horizontal overflow
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

/* CSS Variables */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #00c6ff;
  --dark-bg: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.9);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #334155;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Prevent all images from overflowing */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent rows from causing overflow */
.row {
  margin-left: 0;
  margin-right: 0;
}

/* Fix containers on mobile */
.container-fluid {
  overflow-x: hidden;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #0f172a;
}

/* Glassmorphism Navbar */
.navbar-glass {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050 !important;
}

/* Hamburger button - always visible on mobile, always rendered */
.navbar-toggler {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(13, 110, 253, 0.12) !important;
  border: 2px solid rgba(13, 110, 253, 0.3) !important;
  border-radius: 10px !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-toggler:hover {
  background: rgba(13, 110, 253, 0.2) !important;
  border-color: rgba(13, 110, 253, 0.5) !important;
}

.navbar-toggler-icon {
  display: block !important;
  width: 1.5em !important;
  height: 1.5em !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230d6efd' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #334155 !important;
  padding: 10px 20px !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* Premium Dropdown Styling */
.navbar-nav .dropdown-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  border-radius: 15px !important;
  padding: 10px 0 !important;
  transition: all 0.3s ease-in-out;
  transform: translateY(15px);
  opacity: 0;
  display: block !important;
  visibility: hidden;
  margin-top: 10px;
}

.dropdown-item {
  font-weight: 500 !important;
  color: #334155 !important;
  padding: 10px 25px !important;
  transition: all 0.25s ease !important;
  border-radius: 8px;
  margin: 0 8px;
  width: auto !important;
}

.dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.08) !important;
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* -------------------------------------
   MOBILE RESPONSIVE NAV FIX
   ------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-glass {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 10px 15px !important;
  }

  /* Force hamburger button to always be visible */
  .navbar-toggler {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(13, 110, 253, 0.12) !important;
    border: 2px solid rgba(13, 110, 253, 0.35) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    z-index: 1060 !important;
    position: relative !important;
  }

  .navbar-toggler-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 1.4em !important;
    height: 1.4em !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230d6efd' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
  }

  .navbar-collapse {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link {
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
    padding: 10px !important;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .nav-item.dropdown.show .dropdown-menu {
    display: block !important;
    animation: fadeInDown 0.3s ease forwards;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 180px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
  /* Prevent this decorative element from causing overflow */
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Premium Cards */
.premium-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.15);
}

/* New Event Banner */
.quadralink-banner {
  background: linear-gradient(45deg, #0f172a, #1e293b);
  border-radius: 30px;
  color: white;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.quadralink-banner h1,
.quadralink-banner h6 {
  color: white;
}

.quadralink-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('../img/bg-image.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

/* Modern Button */
.btn-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  border: none;
  border-radius: 50px;
  padding: 12px 35px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(13, 110, 253, 0.4);
  text-decoration: none;
}

/* Redesigned Footer */
.footer-premium {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-premium h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-premium .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  text-decoration: none;
}

.footer-premium .social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-premium .contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-premium .contact-info i {
  color: var(--primary-color);
  margin-top: 5px;
  font-size: 1.1rem;
}

.presented-logos img {
  height: 70px;
  object-fit: contain;
  background: white;
  padding: 10px;
  border-radius: 12px;
  margin-right: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.presented-logos img:hover {
  transform: scale(1.05);
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.sponsor-grid img {
  height: 75px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
}

.sponsor-grid img:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Fix navbar z-index */
.navbar-glass {
  z-index: 9999 !important;
  position: fixed !important;
}

.navbar-toggler {
  z-index: 10000 !important;
  position: relative !important;
}

.navbar-collapse {
  z-index: 9999 !important;
}

/* Fix hamburger mobile */
@media (max-width: 991px) {
  .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}


