/* =========================================== */
/* HEADER & MOBILE MENU ONLY - header.css     */
/* =========================================== */

/* HEADER AREA */
header.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 80px;
  width: 100%;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.nav-all {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav-item, .nav-item-hidden {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
  padding: 5px 0;
}

.nav-item:hover { color: #fff; }

.center-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  pointer-events: none;
}

.names { display: flex; flex-direction: column; align-items: center; }

.name-line {
  font-family: "Brush Script MT", "Segoe Script", "Pacifico", cursive;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.98);
  margin: 0;
  padding: 0;
  line-height: 0.85;
  letter-spacing: 0.02em;
}

.name-line.first, .name-line.second { font-size: 40px; }
.name-line.middle { font-size: 30px; margin: 2px 0; }


.splatter {
  position: absolute;
  width: 500px;
  height: 140px;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.dot { position: absolute; background: rgba(255,255,255,0.72); border-radius: 50%; }

.d1 { width:3px; height:3px; top:0%; left:40%; }
.d2 { width:2px; height:2px; top:5%; left:39%; }
.d3 { width:2px; height:2px; top:8%; left:36%; }
.d4 { width:3px; height:3px; top:15%; left:32%; }
.d5 { width:1.6px; height:1.6px; top:22%; left:37%; }
.d6 { width:2px; height:2px; top:30%; left:41%; }
.d7 { width:4px; height:4px; top:8%; left:45%; }
.d8 { width:3px; height:3px; top:12%; left:35%; }
.d9 { width:2px; height:2px; top:18%; left:48%; }
.d10 { width:4px; height:4px; top:10%; left:56%; }
.d11 { width:3px; height:3px; top:20%; left:47%; }
.d12 { width:2px; height:2px; top:26%; left:50%; }
.d13 { width:4px; height:4px; top:5%; left:58%; }
.d14 { width:3px; height:3px; top:12%; left:40%; }
.d15 { width:2px; height:2px; top:22%; left:55%; }
.d16 { width:2.6px; height:2.6px; top:28%; left:48%; }
.d17 { width:4px; height:4px; top:8%; left:51%; }
.d18 { width:3px; height:3px; top:15%; left:56%; }
.d19 { width:2px; height:2px; top:22%; left:44%; }
.d20 { width:4px; height:4px; top:10%; left:54%; }
.d21 { width:1.6px; height:1.6px; top:0%; left:48%; }
.d22 { width:1.6px; height:1.6px; top:5%; left:56%; }
.d23 { width:1.6px; height:1.6px; top:8%; left:37%; }
.d24 { width:1.6px; height:1.6px; top:12%; left:46%; }
.d25 { width:1.6px; height:1.6px; top:22%; left:61%; }
.d26 { width:1.6px; height:1.6px; top:28%; left:51%; }
.d27 { width:2.2px; height:2.2px; top:33%; left:56%; }
.d28 { width:1.6px; height:1.6px; top:38%; left:49%; }
.d29 { width:1.6px; height:1.6px; top:45%; left:56%; }
.d30 { width:1.6px; height:1.6px; top:50%; left:50%; }
.d31 { width:1.6px; height:1.6px; top:55%; left:58%; }
.d32 { width:1.6px; height:1.6px; top:60%; left:50%; }
.d33 { width:2.6px; height:2.6px; top:52%; left:56%; }
.d34 { width:3.6px; height:3.6px; top:45%; left:47%; }
.d35 { width:2px; height:2px; top:38%; left:51%; }
.d36 { width:3px; height:3px; top:42%; left:57%; }
.d37 { width:2.5px; height:2.5px; top:48%; left:58%; }
.d38 { width:1.8px; height:1.8px; top:50%; left:52%; }
.d39 { width:2.2px; height:2.2px; top:45%; left:55%; }
.d40 { width:3px; height:3px; top:38%; left:55%; }

/* FIXED: White burger menu */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  z-index: 1000;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  width: 24px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 24px;
}

/* Enhanced Mobile Menu Overlay - NOW SCROLLABLE */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(15px);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 100px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 300px;
  padding: 20px 0;
}

/* SMALLER LETTERS FOR MOBILE MENU */
.mobile-nav-item {
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.mobile-nav-item:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.mobile-nav-item:hover::before {
  width: 60px;
}

.mobile-center-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
  animation: fadeInUp 0.8s ease 0.3s both;
}

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

.mobile-names {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-name-line {
  font-family: "Brush Script MT", "Segoe Script", "Pacifico", cursive;
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
  padding: 0;
  line-height: 0.85;
  letter-spacing: 0.02em;
}

.mobile-name-line.first, .mobile-name-line.second { 
  font-size: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.mobile-name-line.middle { 
  font-size: 28px;
  margin: 5px 0;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* Animate menu items on entry */
.mobile-nav-item {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(9) { transition-delay: 0.45s; }

/* ============================== */
/* IMPROVED TABLET/SMALL LAPTOP SIZES - HEADER ONLY */
/* ============================== */

/* Large tablets (1024px to 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
  header.topbar {
    padding: 60px 60px;
  }
  
  .nav-all {
    gap: 35px;
  }
  
  .nav-item {
    font-size: 12px;
    letter-spacing: 0.22em;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 38px; 
  }
  .name-line.middle { 
    font-size: 28px; 
    margin: 3px 0; 
  }
  
  .splatter {
    width: 440px;
    height: 125px;
    top: -15px;
  }
}

/* Standard tablets (900px to 1024px) - BURGER MENU APPEARS HERE */
@media (min-width: 900px) and (max-width: 1024px) {
  header.topbar {
    padding: 50px 50px;
  }
  
  /* Show burger menu and hide desktop nav on tablets */
  .nav-all {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 36px; 
  }
  .name-line.middle { 
    font-size: 26px; 
    margin: 3px 0; 
  }
  
  .splatter {
    width: 420px;
    height: 120px;
    top: -15px;
  }
}

/* Small tablets (768px to 900px) - BURGER MENU APPEARS HERE */
@media (min-width: 768px) and (max-width: 900px) {
  header.topbar {
    padding: 40px 30px;
  }
  
  /* Show burger menu and hide desktop nav */
  .nav-all {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Adjusted name sizes */
  .name-line.first, .name-line.second { 
    font-size: 34px; 
  }
  .name-line.middle { 
    font-size: 24px; 
    margin: 3px 0; 
  }
  
  .splatter { 
    width: 380px; 
    height: 110px; 
    top: -12px; 
  }
}

/* Very small tablets (700px to 768px) - BURGER MENU HERE TOO */
@media (min-width: 700px) and (max-width: 768px) {
  header.topbar {
    padding: 35px 25px;
  }
  
  .nav-all {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 32px; 
  }
  .name-line.middle { 
    font-size: 22px; 
    margin: 3px 0; 
  }
  
  .splatter { 
    width: 350px; 
    height: 105px; 
    top: -10px; 
  }
}

/* MOBILE BREAKPOINT (768px and below) */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav-all {
    display: none;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Adjust header for mobile */
  header.topbar {
    padding: 30px 20px;
    justify-content: center;
    height: auto;
    min-height: 120px;
  }
  
  .center-slot {
    margin: 0;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 42px; 
  }
  .name-line.middle { 
    font-size: 32px; 
    margin: 5px 0; 
  }
  
  .splatter { 
    width: 320px; 
    height: 100px; 
    top: -10px; 
  }
  
  .mobile-menu-btn {
    top: 25px;
    right: 25px;
  }
}

/* LAPTOP MODE - Prevent CONTACT from being covered */
@media (min-width: 1025px) and (max-width: 1300px) {
  header.topbar {
    padding: 60px 40px;
  }
  
  .nav-all {
    gap: 30px;
  }
  
  .nav-item {
    font-size: 12px;
    letter-spacing: 0.2em;
    padding: 3px 0;
  }
  
  /* Specifically ensure CONTACT is visible */
  .nav-item[href="contact.html"] {
    position: relative;
    z-index: 1;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 36px; 
  }
  .name-line.middle { 
    font-size: 26px; 
    margin: 3px 0; 
  }
  
  .splatter { 
    width: 420px; 
    height: 120px; 
    top: -15px; 
  }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
  header.topbar { 
    padding: 25px 15px;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 36px; 
  }
  .name-line.middle { 
    font-size: 28px; 
    margin: 3px 0; 
  }
  
  .splatter { 
    width: 280px; 
    height: 90px; 
    top: -8px; 
  }
  
  .mobile-menu-btn {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  /* Even smaller letters for very small phones */
  .mobile-nav-item {
    font-size: 15px;
    padding: 12px 0;
  }
  
  .mobile-name-line.first, .mobile-name-line.second { 
    font-size: 32px; 
  }
  .mobile-name-line.middle { 
    font-size: 26px; 
    margin: 4px 0; 
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .name-line.first, .name-line.second { 
    font-size: 32px; 
  }
  .name-line.middle { 
    font-size: 24px; 
  }
  
  .splatter { 
    width: 250px; 
    height: 80px; 
  }
  
  .mobile-name-line.first, .mobile-name-line.second { 
    font-size: 30px; 
  }
  .mobile-name-line.middle { 
    font-size: 22px; 
  }
  
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }
  
  .mobile-nav-item {
    font-size: 14px;
    padding: 10px 0;
  }
}

/* Very large screens */
@media (min-width: 1600px) {
  .nav-item {
    font-size: 14px;
  }
  
  .name-line.first, .name-line.second { 
    font-size: 44px; 
  }
  .name-line.middle { 
    font-size: 32px; 
  }
  
  .splatter {
    width: 550px;
    height: 150px;
  }
}