/* Liquid Crystal Notch */
.dynamic-island {
    position: fixed;
    bottom: 5%;
    left: 90%;
    transform: translateX(-50%);
    min-width: 180px;
    height: 40px;
    background: rgba(0, 0, 0, 0.886) !important; 
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 40px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: white;
    cursor: pointer;
    padding: 15px 25px 10px 25px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, transform 0.6s ease, bottom 0.6s ease, opacity 0.6s ease;
  }
  
  /* Shimmer effect */
  .dynamic-island::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    opacity: 0;
    border-radius: 50px;
  }
  .dynamic-island.shine::before {
    animation: shineSweep 1s ease forwards;
  }
  @keyframes shineSweep {
    0% { left: -60%; opacity: 0; }
    20% { opacity: 0.3; }
    80% { left: 100%; opacity: 0.3; }
    100% { left: 100%; opacity: 0; }
  }
  
  /* Notch Header */
  .island-header {
    z-index: 2;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s ease;
  }
  
  /* When hover/expanded, move header to top */
  .dynamic-island:hover .island-header {
    top: 15px;
    transform: translateY(0);
  }
  
  /* Hover expand menu */
  .dynamic-island:hover {
    height: 330px;
  }
  .menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .dynamic-island:hover .menu-buttons {
    opacity: 1;
  }
  .menu-buttons button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  .menu-buttons button:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
  }

/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* Small Laptops (1025px - 1366px) */
@media (max-width: 1366px) {
  .dynamic-island {
    left: 88%;
    min-width: 160px;
    height: 36px;
    padding: 12px 20px 8px 20px;
  }
  .island-header {
    font-size: 1.1rem;
  }
  .menu-buttons button {
    font-size: 0.95rem;
    padding: 3px 14px;
  }
}

/* Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .dynamic-island {
    left: 85%;
    min-width: 150px;
    height: 34px;
    padding: 10px 18px 6px 18px;
  }
  .island-header {
    font-size: 1rem;
  }
  .dynamic-island:hover {
    height: 300px;
  }
  .menu-buttons {
    margin-top: 45px;
    gap: 8px;
  }
  .menu-buttons button {
    font-size: 0.9rem;
    padding: 3px 12px;
  }
}

/* Mobile (481px - 768px) */
@media (max-width: 768px) {
  .dynamic-island {
    left: 50%;
    bottom: 3%;
    min-width: 140px;
    height: 32px;
    padding: 8px 16px 4px 16px;
  }
  .island-header {
    font-size: 0.95rem;
  }
  .dynamic-island:hover {
    height: 280px;
  }
  .menu-buttons {
    margin-top: 40px;
    gap: 6px;
  }
  .menu-buttons button {
    font-size: 0.85rem;
    padding: 2px 10px;
    min-height: 32px;
  }
}

/* Small Phones (≤480px) */
@media (max-width: 480px) {
  .dynamic-island {
    left: 50%;
    bottom: 2%;
    min-width: 120px;
    height: 30px;
    padding: 6px 14px 4px 14px;
  }
  .island-header {
    font-size: 0.85rem;
  }
  .dynamic-island:hover {
    height: 260px;
  }
  .menu-buttons {
    margin-top: 35px;
    gap: 5px;
  }
  .menu-buttons button {
    font-size: 0.8rem;
    padding: 2px 8px;
    min-height: 28px;
  }
}