/* === VARIABLES === */
:root {
  /* Base Colors - Dark Theme Only */
  --bg-primary: #0a0a1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e2030;
  --bg-card-hover: #252840;

  /* Accent Colors */
  --accent-primary: #4cc9f0;
  --accent-secondary: #9368ff;
  --accent-fire: #ff8c00;
  --accent-water: #4cc9f0;
  --accent-wind: #90e0ef;
  --accent-earth: #9d6c34;
  --accent-light: #ffdd78;
  --accent-dark: #7b4bcf;

  /* Text Colors */
  --text-primary: #e0e0ff;
  --text-secondary: #aaccff;
  --text-muted: #8892b0;

  /* Sizes */
  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* === BASE STYLES & RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor for custom one */
}

/* Show default cursor on input and textarea */
input, textarea, button, a {
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === CUSTOM CURSOR === */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-primary);
  opacity: 0.5;
  transition: all 0.1s ease-out;
}

/* Cursor effects on hover */
.link-card:hover ~ .cursor-outline,
.cta-button:hover ~ .cursor-outline {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(76, 201, 240, 0.1);
  opacity: 0.8;
}

/* === NAVIGATION - IMPROVED FOR MOBILE === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(76, 201, 240, 0.1);
}

.logo h1 {
  font-size: 2rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-primary);
  background: rgba(76, 201, 240, 0.1);
}

.nav-links li a i {
  width: 18px;
  height: 18px;
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(76, 201, 240, 0.1);
    margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    padding-left: 1.75rem;
}

.dropdown-menu .divider {
    height: 1px;
    background: rgba(76, 201, 240, 0.1);
    margin: 0.5rem 1rem;
}

/* Hamburger Menu - Mobile Only */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
  opacity: 0;
  transition: opacity 1s ease 1s;
  min-height: 100vh;
}

.main-content.visible {
  opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 20%, rgba(76, 201, 240, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 104, 255, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

.corner-ornament {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid var(--accent-primary);
  opacity: 0.3;
}

.corner-ornament.top-left {
  top: 2rem;
  left: 2rem;
  border-right: none;
  border-bottom: none;
}

.corner-ornament.top-right {
  top: 2rem;
  right: 2rem;
  border-left: none;
  border-bottom: none;
}

.corner-ornament.bottom-left {
  bottom: 2rem;
  left: 2rem;
  border-right: none;
  border-top: none;
}

.corner-ornament.bottom-right {
  bottom: 2rem;
  right: 2rem;
  border-left: none;
  border-top: none;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.title-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.title-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(76, 201, 240, 0.1) 0%, transparent 70%);
  z-index: 1;
  border-radius: 50%;
}

.hero-quote {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  padding: 0 1.5rem;
  position: relative;
  line-height: 1.8;
}

.quote-mark {
  font-size: 2em;
  color: var(--accent-primary);
  opacity: 0.7;
  position: relative;
  top: 0.3em;
}

.quote-mark.left {
  margin-right: 0.5rem;
}

.quote-mark.right {
  margin-left: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.cta-button.secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(76, 201, 240, 0.4);
}

.cta-button.primary:hover {
  box-shadow: 0 10px 25px rgba(76, 201, 240, 0.6);
}

.cta-button i {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  padding: 5rem 0;
  position: relative;
}

.welcome-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-content {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin-top: 2rem;
  border: 1px solid rgba(76, 201, 240, 0.1);
  box-shadow: var(--shadow-lg);
}

.welcome-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.welcome-text p {
  margin-bottom: 1.5rem;
}

.welcome-list {
  margin: 1.5rem 0 2rem 2rem;
  list-style: none;
}

.welcome-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.welcome-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-wind { color: var(--accent-wind); }
.accent-earth { color: var(--accent-earth); }

.welcome-quote {
  text-align: center;
  margin-top: 3rem;
  font-style: italic;
  color: var(--accent-primary);
  font-size: 1.2rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.5rem;
}

/* ===== PORTAL CARDS SECTION ===== */
.portals-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title i {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portal-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 4px solid;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary) !important;
}

.portal-card.patch { border-top-color: var(--accent-primary); }
.portal-card.world { border-top-color: var(--accent-earth); }
.portal-card.archive { border-top-color: var(--accent-secondary); }
.portal-card.catalog { border-top-color: var(--accent-wind); }

.portal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  transition: var(--transition);
}

.portal-card:hover .portal-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portal-card.patch .portal-icon { 
  border-color: var(--accent-primary); 
  color: var(--accent-primary); 
}

.portal-card.world .portal-icon { 
  border-color: var(--accent-earth); 
  color: var(--accent-earth); 
}

.portal-card.archive .portal-icon { 
  border-color: var(--accent-secondary); 
  color: var(--accent-secondary); 
}

.portal-card.catalog .portal-icon { 
  border-color: var(--accent-wind); 
  color: var(--accent-wind); 
}

.portal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.portal-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.portal-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to top, var(--bg-secondary), var(--bg-primary));
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(76, 201, 240, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-note i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

/* === ANIMATIONS === */
@keyframes pulse-glow {
  0% { text-shadow: 0 0 10px rgba(76, 201, 240, 0.5); }
  50% { text-shadow: 0 0 20px rgba(76, 201, 240, 0.8), 0 0 30px rgba(76, 201, 240, 0.6); }
  100% { text-shadow: 0 0 10px rgba(76, 201, 240, 0.5); }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 968px) {
  .nav-links {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .welcome-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Show hamburger, hide nav links */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(76, 201, 240, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li a {
    justify-content: center;
    padding: 1rem;
    width: 100%;
  }
  
  /* Hero adjustments */
  .hero {
    padding: 8rem 1rem 4rem;
  }
  
  .corner-ornament {
    width: 60px;
    height: 60px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  /* Section adjustments */
  .section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .welcome-title {
    font-size: 2.2rem;
  }
  
  .welcome-content {
    padding: 2rem;
  }
  
  .portal-grid {
    grid-template-columns: 1fr;
  }
  
  /* Hide custom cursor on mobile */
  .cursor-dot, .cursor-outline {
    display: none;
  }
  
  body {
    cursor: auto;
  }
  
  input, textarea, button, a {
    cursor: auto;
  }

   /* Hide cursor on mobile */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
    
    input, textarea, button, a {
        cursor: pointer !important;
    }
    
    /* Hide gate cursor on mobile */
    .gate-cursor {
        display: none !important;
    }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-quote {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .welcome-title {
    font-size: 1.8rem;
  }
  
  .welcome-content {
    padding: 1.5rem;
  }
  
  .portal-card {
    padding: 2rem 1.5rem;
  }
  
  .portal-icon {
    width: 60px;
    height: 60px;
  }
  
  .portal-icon i {
    width: 24px;
    height: 24px;
  }

   /* Hide cursor on mobile */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
    
    input, textarea, button, a {
        cursor: pointer !important;
    }
    
    /* Hide gate cursor on mobile */
    .gate-cursor {
        display: none !important;
    }
}

/* Hamburger animation - PASTIKAN ADA DI world.css */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== WORLDBUILDING STYLES ===== */
:root {
    /* Additional colors for worldbuilding */
    --category-forest: #27ae60;
    --category-guild: #7f8c8d;
    --category-kingdom: #e7bd05;
    --category-dungeon: #c0392b;
    --category-water: #3498db;
    --category-others: #9b59b6;
    --category-southern: #70a3b0;
    
    /* Stat colors */
    --stat-high: #2ecc71;
    --stat-medium: #f1c40f;
    --stat-low: #e74c3c;
}

/* ===== HERO SECTION ===== */
.worldbuilding-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(
        rgba(10, 10, 26, 0.9),
        rgba(10, 10, 26, 0.95)
    ), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><path fill="%231a1a2e" d="M0,100 Q250,50 500,100 T1000,100 V200 H0 Z"/></svg>');
    background-size: cover;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.worldbuilding-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.worldbuilding-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== MAIN CONTENT ===== */
.worldbuilding-main {
    padding: 3rem 0 5rem;
    background: var(--bg-primary);
}

/* ===== CONTROLS ===== */
.locations-controls {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(76, 201, 240, 0.1);
    box-shadow: var(--shadow-md);
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--text-muted);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.filter-btn i {
    font-size: 0.8em;
}

.search-sort-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .search-sort-section {
        grid-template-columns: 1fr;
    }
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.2);
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sort-box select {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 200px;
    cursor: pointer;
}

.sort-box select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ===== LOCATIONS CONTAINER ===== */
.locations-container {
    margin-bottom: 4rem;
}

.locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(76, 201, 240, 0.1);
}

.locations-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.locations-counter {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.locations-counter span {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ===== LOCATIONS GRID ===== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LOCATION CARD ===== */
.location-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(76, 201, 240, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.card-header {
    padding: 1.5rem;
    color: white;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Category Backgrounds */
.category-forest { background: linear-gradient(135deg, var(--category-forest), #1e8449); }
.category-guild { background: linear-gradient(135deg, var(--category-guild), #616a6b); }
.category-kingdom { background: linear-gradient(135deg, var(--category-kingdom), #e7bd05); }
.category-dungeon { background: linear-gradient(135deg, var(--category-dungeon), #922b21); }
.category-water { background: linear-gradient(135deg, var(--category-water), #21618c); }
.category-others { background: linear-gradient(135deg, var(--category-others), #76448a); }
.category-southern { background: linear-gradient(135deg, var(--category-southern), #70a3b0); }


.card-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.category-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.danger-badge {
    background: rgba(231, 76, 60, 0.2);
    color: #ff7979;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.card-title {
    font-size: 1.4rem;
    margin: 0.5rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle i {
    font-size: 0.8em;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(147, 104, 255, 0.1);
    color: var(--accent-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.feature-tag i {
    font-size: 0.8em;
}

/* Card Stats */
.card-stats {
    margin-top: auto;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 100px;
}

.stat-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-high { background: var(--stat-high); }
.stat-medium { background: var(--stat-medium); }
.stat-low { background: var(--stat-low); }

.stat-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(76, 201, 240, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visit-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
}

.visit-btn i {
    font-size: 0.9em;
}

/* ===== LOADING & EMPTY STATES ===== */
.loading-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 201, 240, 0.3);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reset-btn {
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.reset-btn:hover {
    background: var(--accent-primary);
    color: white;
}

/* ===== MAP PREVIEW ===== */
.map-preview {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(76, 201, 240, 0.1);
    box-shadow: var(--shadow-md);
}

.map-preview h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--border-radius);
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.map-overlay p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.map-overlay p:first-child {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(76, 201, 240, 0.1);
}

.page-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.page-number:hover {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent-primary);
}

.page-number.active {
    background: var(--accent-primary);
    color: white;
}

.page-dots {
    display: flex;
    align-items: flex-end;
    color: var(--text-muted);
}

/* === RESPONSIVE DESIGN - VISUALLY PLEASING MOBILE === */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .locations-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 968px) {
  .nav-links {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
  }
  
  .welcome-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-stats {
    gap: 3rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* ===== NAVIGATION - ELEGANT MOBILE MENU ===== */
  .hamburger {
    display: flex;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background: rgba(76, 201, 240, 0.1);
    transition: var(--transition);
  }
  
  .hamburger:hover {
    background: rgba(76, 201, 240, 0.2);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 85%;
    max-width: 320px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(76, 201, 240, 0.2);
    justify-content: flex-start;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .nav-links li a {
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    width: 100%;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(76, 201, 240, 0.15);
    border-color: rgba(76, 201, 240, 0.3);
    transform: translateX(5px);
  }
  
  /* ===== HERO SECTION - BEAUTIFUL MOBILE LAYOUT ===== */
  .hero {
    padding: 8rem 1.5rem 4rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 90vh;
  }
  
  .corner-ornament {
    width: 70px;
    height: 70px;
    opacity: 0.2;
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }
  
  .hero-title {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
  
  .hero-quote {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    line-height: 1.7;
    color: var(--accent-wind);
    font-weight: 300;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    margin-top: 2rem;
  }
  
  .cta-button {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 1.25rem 2rem;
    font-size: 1.15rem;
    border-radius: calc(var(--border-radius) + 4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  /* ===== WORLD BUILDING HERO ===== */
  .worldbuilding-hero {
    padding: 7rem 0 3rem;
  }
  
  .worldbuilding-hero .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 2.5rem;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 2.8rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }
  
  /* ===== MAIN CONTENT SECTIONS ===== */
  .section-title {
    font-size: 2.2rem;
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(76, 201, 240, 0.2);
  }
  
  .welcome-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  
  .welcome-content {
    padding: 2rem;
    border-radius: calc(var(--border-radius) + 4px);
    margin-top: 1.5rem;
  }
  
  /* ===== PORTAL CARDS ===== */
  .portals-section {
    padding: 4rem 0;
  }
  
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .portal-card {
    padding: 2.25rem 1.75rem;
    border-radius: calc(var(--border-radius) + 4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .portal-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
  
  .portal-icon {
    width: 85px;
    height: 85px;
    margin-bottom: 1.75rem;
  }
  
  .portal-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .portal-card p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  
  /* ===== LOCATIONS SECTION ===== */
  .locations-container {
    margin-bottom: 3rem;
  }
  
  .locations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(76, 201, 240, 0.15);
  }
  
  .locations-header h2 {
    font-size: 2rem;
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .locations-counter {
    font-size: 1rem;
    align-self: flex-start;
    background: rgba(76, 201, 240, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
  }
  
  /* ===== LOCATIONS GRID & CARDS ===== */
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .location-card {
    border-radius: calc(var(--border-radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(76, 201, 240, 0.1);
  }
  
  .location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
  }
  
  .card-header {
    padding: 1.75rem;
    min-height: 140px;
  }
  
  .card-badge {
    margin-bottom: 0.75rem;
  }
  
  .category-tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
  }
  
  .danger-badge {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
  }
  
  .card-title {
    font-size: 1.6rem;
    margin: 0.75rem 0;
    line-height: 1.3;
  }
  
  .card-subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .card-body {
    padding: 1.75rem;
  }
  
  .card-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
  }
  
  .card-features {
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }
  
  .feature-tag {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
  }
  
  .stat-row {
    margin-bottom: 1rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
    min-width: 110px;
  }
  
  .stat-bar {
    height: 8px;
    border-radius: 4px;
  }
  
  .stat-value {
    font-size: 0.9rem;
    min-width: 45px;
  }
  
  .card-footer {
    padding: 1.25rem 1.75rem;
    background: rgba(0, 0, 0, 0.25);
  }
  
  .member-count {
    font-size: 1rem;
  }
  
  .visit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: calc(var(--border-radius) + 2px);
  }
  
  /* ===== FILTER & CONTROLS ===== */
  .locations-controls {
    padding: 2rem 1.75rem;
    border-radius: calc(var(--border-radius) + 4px);
    margin-bottom: 2.5rem;
  }
  
  .filter-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }
  
  .filter-buttons {
    gap: 0.85rem;
    margin-bottom: 2rem;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 25px;
    flex: 1;
    min-width: 140px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .filter-btn.active {
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.3);
  }
  
  .search-sort-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .search-box input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.05rem;
    border-radius: calc(var(--border-radius) + 2px);
  }
  
  .search-box i {
    left: 1.25rem;
    font-size: 1.1rem;
  }
  
  .sort-box select {
    padding: 1rem;
    font-size: 1rem;
    min-width: 100%;
    border-radius: calc(var(--border-radius) + 2px);
  }
  
  /* ===== MAP PREVIEW ===== */
  .map-preview {
    padding: 2rem 1.75rem;
    border-radius: calc(var(--border-radius) + 4px);
    margin-top: 3rem;
  }
  
  .map-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .map-placeholder {
    height: 280px;
    border-radius: calc(var(--border-radius) + 4px);
  }
  
  .map-overlay {
    padding: 2.5rem;
    border-radius: calc(var(--border-radius) + 2px);
  }
  
  .map-overlay p:first-child {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  /* ===== PAGINATION ===== */
  .pagination {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
  }
  
  .page-btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: calc(var(--border-radius) + 2px);
    order: 1;
  }
  
  .page-numbers {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    border-radius: 50%;
  }
  
  /* ===== FOOTER ===== */
  footer {
    padding: 3rem 0;
    margin-top: 4rem;
  }
  
  .footer-content {
    text-align: center;
    gap: 1rem;
  }
  
  .footer-content p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  
  .footer-note {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(76, 201, 240, 0.1);
  }
  
  /* ===== UTILITIES ===== */
  .container {
    padding: 0 1.5rem;
  }
  
  /* Hide custom cursor on mobile */
  .cursor-dot, .cursor-outline {
    display: none;
  }
  
  body {
    cursor: auto;
  }
  
  input, textarea, button, a {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  /* ===== EXTRA SMALL DEVICES REFINEMENT ===== */
  nav {
    padding: 0.75rem 1.25rem;
  }
  
  .logo h1 {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }
  
  .hamburger {
    padding: 0.6rem;
  }
  
  .hamburger span {
    width: 22px;
    height: 2.5px;
  }
  
  .hero {
    padding: 7rem 1.25rem 3.5rem;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-quote {
    font-size: 1.1rem;
    padding: 0;
  }
  
  .worldbuilding-hero .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 2.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* ===== CARDS REFINEMENT ===== */
  .location-card {
    border-width: 1.5px;
  }
  
  .card-header {
    padding: 1.5rem;
    min-height: 120px;
  }
  
  .card-title {
    font-size: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .card-description {
    font-size: 1rem;
  }
  
  /* ===== FILTER BUTTONS ===== */
  .filter-buttons {
    gap: 0.6rem;
  }
  
  .filter-btn {
    min-width: calc(50% - 0.6rem);
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
  }
  
  /* ===== MAP PREVIEW ===== */
  .map-placeholder {
    height: 240px;
  }
  
  .map-overlay {
    padding: 2rem;
  }
  
  /* ===== PAGINATION ===== */
  .pagination {
    gap: 0.5rem;
  }
  
  .page-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .page-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* ===== UTILITIES ===== */
  .container {
    padding: 0 1.25rem;
  }
}

/* ===== SMOOTH ANIMATIONS ===== */
@media (max-width: 768px) {
  .nav-links li a,
  .cta-button,
  .location-card,
  .portal-card,
  .filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .location-card:hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* ===== TOUCH-FRIENDLY ELEMENTS ===== */
@media (max-width: 768px) {
  button,
  .filter-btn,
  .visit-btn,
  .page-number,
  .page-btn,
  .cta-button,
  .nav-links li a {
    min-height: 44px; /* Minimum touch target size */
  }
  
  input,
  select {
    min-height: 50px;
  }
}

/* ===== LOADING ANIMATION ENHANCEMENT ===== */
@media (max-width: 768px) {
  .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
  }
  
  .loading-state p {
    font-size: 1.2rem;
    margin-top: 1rem;
  }
}

/* ===== FIX FOR IOS SAFARI ===== */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .nav-links,
    .hero {
      height: -webkit-fill-available;
      max-height: -webkit-fill-available;
    }
    
    .hero {
      min-height: -webkit-fill-available;
    }
    
    /* Fix for sticky hover on iOS */
    .location-card:hover,
    .portal-card:hover {
      transform: none;
    }
    
    .location-card:active,
    .portal-card:active {
      transform: translateY(-4px);
    }

    /* Mobile dropdown */
.dropdown-menu {
    position: static;
    width: 100%;
    background: rgba(10, 10, 26, 0.3);
    box-shadow: none;
    border: 1px solid rgba(76, 201, 240, 0.1);
    padding: 0;
    margin: 0.5rem 0 0 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.mobile-dropdown.active .dropdown-menu {
    opacity: 1;
    max-height: 400px;
}

.dropdown-menu a {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-left: none;
}

.dropdown-menu a:hover {
    padding-left: 3rem;
}

/* Untuk mobile dropdown state */
.mobile-dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}
  }
}
