* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --main-brand-color: #db1a1a;
  --secondary-color: #c3ccdb;
  --tertiary-color: #1e3a5f;
  --text-color: #ffffff;
  --background-color: #1a1a2e;
  --borders: #333333;
  --gradient-primary: linear-gradient(135deg, #db1a1a 0%, #ff6b6b 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(219, 26, 26, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #cacacf;
}

::-webkit-scrollbar-thumb {
  background: #db1a1a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

/* =========================
   ONLOAD POPUP DIALOG BOX
========================= */
.popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease-out;
}

.popup-modal.show {
  display: flex;
}

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

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 45px 50px;
  border-radius: 24px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  border: none;
  animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.popup-content .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s ease;
  line-height: 1;
  background: none;
  border: none;
  padding: 5px;
}

.popup-content .close-btn:hover {
  color: #c1abab;
  transform: scale(1.1) rotate(90deg);
}

.popup-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
  margin-top: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popup-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
}

.popup-notice {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
  padding: 20px 25px;
  border-radius: 16px;
  margin-bottom: 25px;
  border-left: 4px solid #3b82f6;
  text-align: left;
}

.popup-notice h3 {
  font-size: 18px;
  color: #1e3a5f;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-notice ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-notice ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #444;
  font-size: 14px;
  border-bottom: 1px dashed rgba(59, 130, 246, 0.2);
}

.popup-notice ul li:last-child {
  border-bottom: none;
}

.popup-notice ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.popup-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(219, 26, 26, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(219, 26, 26, 0.45);
}

.popup-btn:active {
  transform: translateY(-1px);
}

/* Responsive Popup */
@media (max-width: 768px) {
  .popup-content {
    padding: 35px 30px;
    border-radius: 20px;
  }
  
  .popup-content h2 {
    font-size: 26px;
  }
  
  .popup-content p {
    font-size: 14px;
  }
  
  .popup-notice {
    padding: 15px 18px;
  }
  
  .popup-btn {
    padding: 14px 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 30px 25px;
  }
  
  .popup-content h2 {
    font-size: 22px;
  }
  
  .popup-notice h3 {
    font-size: 16px;
  }
}

/* Sticky Navbar */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-bottom: 2px solid #db1a1a;
  transition: all 0.3s ease;
}

.title-main {
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  margin: 70px 0 40px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Poppins', sans-serif;
}

.title-main::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

.title-main::after {
  content: "";
  width: 120px;
  height: 5px;
  background: var(--gradient-primary);
  display: block;
  margin: 15px auto 0;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(219, 26, 26, 0.4);
}

/* Animated underline effect */
.title-main::before {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.15;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.25;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.imglogo {
  height: 45px;
  width: auto;
  max-width: 200px;
  transition: all 0.3s ease;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.topnav_links {
  position: relative;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 16px;
  margin-left: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.topnav_links:hover {
  color: #db1a1a;
  transform: scale(1.05);
}

.topnav_links::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #db1a1a;
  transition: 0.3s ease;
}

.topnav_links:hover::after {
  width: 100%;
}

.topnav_links.active {
  color: #3b82f6;
}

.topnav_links.active::after {
  width: 100%;
}

/* Menu button */
.menu {
  display: none;
  position: relative;
  z-index: 1001;
}

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

/* Large Desktop */
@media (min-width: 1400px) {
  .topnav {
    padding: 0 60px;
  }
  
  .title-main {
    font-size: 52px;
    margin: 80px 0 45px;
  }
  
  .title-main::before {
    width: 70px;
    height: 70px;
    top: -20px;
  }
  
  .title-main::after {
    width: 140px;
    height: 6px;
    margin: 18px auto 0;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .topnav {
    padding: 0 30px;
  }
  
  .topnav_links {
    margin-left: 20px;
    font-size: 15px;
  }
  
  .title-main {
    font-size: 40px;
  }
}

/* Tablet - Show mobile menu */
@media (max-width: 1024px) {
  .imglogo {
    height: 40px;
    max-width: 180px;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .menu button {
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, #db1a1a 0%, #b91c1c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(219, 26, 26, 0.3);
  }
  
  .menu button ion-icon {
    font-size: 28px;
  }
  
  .menu button:hover {
    background: #b91c1c;
    transform: scale(1.1);
  }
  
  .menu button:hover ion-icon {
    transform: rotate(90deg);
  }
  
  .menu button:active {
    transform: scale(0.95);
  }
}

/* Tablet Landscape */
@media (max-width: 900px) {
  .title-main {
    font-size: 36px;
    margin: 60px 0 35px;
    letter-spacing: 2px;
  }
  
  .title-main::before {
    width: 50px;
    height: 50px;
    top: -15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .topnav {
    padding: 0 20px;
    height: 60px;
  }
  
  .imglogo {
    height: 38px;
    max-width: 150px;
  }
  
  .menu button {
    width: 44px;
    height: 44px;
  }
  
  .menu button ion-icon {
    font-size: 24px;
  }
  
  .topnav.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
  }
  
  .topnav.scrolled .imglogo {
    height: 32px;
  }
  
  .topnav.scrolled .menu button {
    width: 40px;
    height: 40px;
  }
  
  .title-main {
    font-size: 30px;
    margin: 50px 0 25px;
    letter-spacing: 1.5px;
  }
  
  .title-main::before {
    width: 45px;
    height: 45px;
    top: -12px;
  }
  
  .title-main::after {
    width: 100px;
    height: 4px;
    margin: 12px auto 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .topnav {
    padding: 0 15px;
    height: 55px;
  }
  
  .imglogo {
    height: 35px;
    max-width: 120px;
  }
  
  .menu button {
    width: 40px;
    height: 40px;
  }
  
  .menu button ion-icon {
    font-size: 22px;
  }
  
  .topnav_links {
    margin-left: 15px;
    font-size: 14px;
  }
  
  .title-main {
    font-size: 26px;
    margin: 45px 0 20px;
    letter-spacing: 1px;
  }
  
  .title-main::before {
    width: 40px;
    height: 40px;
    top: -10px;
  }
  
  .title-main::after {
    width: 80px;
    height: 4px;
  }
  
  .topnav.scrolled {
    height: 52px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .imglogo {
    height: 30px;
    max-width: 100px;
  }
  
  .menu button {
    width: 36px;
    height: 36px;
  }
  
  .menu button ion-icon {
    font-size: 20px;
  }
  
  .title-main {
    font-size: 22px;
  }
  
  .title-main::before {
    width: 35px;
    height: 35px;
  }
}
