/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }
  /* ===== GIF BACKGROUND LAYER ===== */


/* shared animated layer */
.header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/gif/internet_streaming.gif") center / cover no-repeat;
  opacity: 0.45;                 /* keep it subtle */
  filter: blur(1px) saturate(0.9);
  z-index: -1;
}

/* keep real content above gif */
.header > * {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .header::before {
  opacity: 0.45;
}


  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  
    background: radial-gradient(
      circle,
      rgba(255,255,255,0.9) 0%,
      rgba(255,255,255,0.4) 35%,
      transparent 70%
    );
    border-radius: 50%;
    padding: 6px;
  
    animation: logoFlyIn 3.4s cubic-bezier(.16,.84,.3,1) both;
    transform-origin: center;
    will-change: transform;
  }
  
  @keyframes logoFlyIn {
    0% {
      transform:
        translateX(120vw)   /* instead of 1100px */
        rotate(2880deg)
        scale(0.4);
    }
  
    65% {
      transform:
        translateX(12vw)
        rotate(0deg)
        scale(1.1);
    }
  
    85% {
      transform:
        translateX(-0.5rem)
        rotate(0deg)
        scale(0.98);
    }
  
    100% {
      transform:
        translateX(0)
        rotate(0deg)
        scale(1);
    }
  }  
  
  
  .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--accent);
  }
  
  /* ================= NAV ================= */
  .nav {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
  }
  
  .nav a,
  .nav-link,
  .admin-link {
    text-decoration: none;
  }
  
  .nav a,
  .nav-link {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 550;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, font-weight 0.15s ease, color 0.15s ease;
  }
  
  /* Hover */
  .nav a:hover,
  .nav-link:hover {
    transform: scale(1.08);
    font-weight: 600;
    color: var(--accent);
  }
  
  /* Active */
  .nav a.active {
    font-weight: 700;
    color: var(--accent);
    transform: scale(1.1);
  }
  
  /* Underline only for active */
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 4px;
    background: var(--accent);
    transition: width 0.25s ease;
  }
  
  .nav a.active::after {
    width: 100%;
  }
  
  .nav-dropdown {
    position: relative;
  }
  
  /* ================= ACTIONS ================= */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-around;
  }
  
  .header-actions-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
  }

  /* Theme toggle */
  .theme-toggle {
    cursor: pointer;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
  }
  
  .theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
  }
  
  /* Admin button */
  .admin-link {
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  
  .admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  }
  

  .mega-panel {
    position: fixed;
    left: 0;
    top: 72px; 
    width: 100%;
    height: 65vh;
    background: var(--header);
    z-index: 45;
  
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    box-shadow: 0 30px 80px var(--accent-2);
    border-bottom: 1px solid var(--border);
  }
  
  .mega-panel.show {
    transform: translateY(0);
  }
  
  .mega-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  .mega-content h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--accent);
  }
  
  .mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .mega-grid.small {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mega-item {
    padding: 14px 14px;
    border-radius: 16px;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.65),
      rgba(255,255,255,0.35)
    );
    backdrop-filter: blur(6px);
  }

  [data-theme="dark"] .mega-item {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
  }


  
  .mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-soft);
    display: none;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  .mega-text {
    line-height: 1.2;
  }
  
  .mega-lottie {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  }


  .mega-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px var(--accent);
  }
  

  .mobile-dd {
    display: flex;
    flex-direction: column;
  }
  
  .mobile-dd-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    text-align: left;
    padding: 6px 0;
    cursor: pointer;
  }
  
  .mobile-dd-panel {
    display: none;
    padding-left: 14px;
    margin-bottom: 8px;
  }
  

  /* ===== MOBILE SERVICE ITEMS FIX ===== */

.mobile-dd-panel a.mobile-item {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}

.mobile-dd-panel a.mobile-item:hover {
  color: var(--accent);
}


  .mobile-dd-panel.open {
    display: block;
    animation: mobileDDIn 0.2s ease-out both;
  }
  
  @keyframes mobileDDIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
  .mobile-item {
    padding: 4px 0;
    font-size: 0.95rem;
    color: var(--muted);
  }
  
  
  .menu-toggle {
    display: none;
  }
  
  /* Desktop */
/* Desktop */
@media (min-width: 901px) {
    .desktop-nav {
      display: flex;
    }
    .mobile-nav {
      display: none !important;
    }
  
    /* allow mega on desktop */
    .mega-panel {
      display: block;
    }
  }
  
  
  /* Mobile */
  @media (max-width: 900px) {
    .desktop-nav {
      display: none;
    }
  
    .menu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      font-size: 22px;
      border-radius: 8px;
      background: var(--card);
      border: 1px solid var(--border);
      color: var(--text);
    }
  
    .mobile-nav {
      position: fixed;
      top: 64px;
      left: 0;
      bottom: 0px;
      width: 100%;
      height: auto;
      background: var(--header);
      display: flex;
      flex-direction: column;
      padding: 24px 20px;
      gap: 16px;
      transform: translateY(-120%);
      transition: transform .3s ease;
      z-index: 10000;
    }
  
    .mobile-nav.show {
      transform: translateY(0);
    }
  
    .mobile-nav a {
      font-size: 1.1rem;
      color: var(--text);
      text-decoration: none;
    }

    .mega-panel {
        display: none;
      }

      .header-actions-nav {
        display: none;
    }
  }

  body.nav-lock {
    overflow: hidden;
  }
  
  .mobile-nav {
    overflow-y: auto;
    max-height: calc(100vh - 64px);
  }
  
  @media (max-width: 500px) {
    .desktop-nav {
      display: none;
    }
  
    .menu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      font-size: 22px;
      border-radius: 8px;
      background: var(--card);
      border: 1px solid var(--border);
      color: var(--text);
    }
  
    .mobile-nav {
      position: fixed;
      top: 64px;
      bottom: 0px;
      left: 0;
      width: 100%;
      height: auto;
      background: var(--header);
      display: flex;
      flex-direction: column;
      padding: 24px 20px;
      gap: 16px;
      transform: translateY(-120%);
      transition: transform .3s ease;
      z-index: 10000;
    }
  
    .mobile-nav.show {
      transform: translateY(0);
    }
  
    .mobile-nav a {
      font-size: 1.1rem;
      color: var(--text);
      text-decoration: none;
    }

    .mega-panel {
        display:none;
      }

      .header-actions-nav {
        display: none;
    }
  }
    


  /* FOOTER */
  .site-footer {
    background: var(--header);
    color: var(--text);
  }
  
  [data-theme="dark"] .site-footer {
    background: var(--header);
  }
  
  .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px 48px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
  }
  
  .footer-brand p {
    margin-top: 12px;
    max-width: 380px;
    line-height: 1.6;
    color: var(--text);
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .footer-logo img {
    width: 92px;
    height: 92px;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0.4) 35%,
        transparent 70%
      );
      border-radius: 50%;
      padding: 6px;
  }
  
  .footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
  }
  
  .footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  
  .footer-col h4 {
    color: var(--accent-2);
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  
  .footer-col a {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    margin: 6px 0;
    transition: color .2s;
  }
  
  .footer-col a:hover {
    color: var(--accent);
  }
  
  .newsletter p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .footer-form {
    display: flex;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
  }
  
  .footer-form input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    outline: none;
  }
  
  .footer-form button {
    background: #ff6b2c;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
  }
  
  .footer-social {
    margin-top: 14px;
    display: flex;
    gap: 12px;
  }
  
  .footer-social a {
    font-size: 0.85rem;
    color: var(--accent);
  }
  
  .footer-bottom {
    border-top: 1px solid var(--border);
  }
  
  .footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text);
  }
  
  .footer-links a {
    margin-left: 16px;
    color: var(--text);
  }
  
  .footer-links a:hover {
    color: var(--accent);
  }
  

  .site-footer {
    position: relative;
    overflow: hidden;
  }
  
  /* GIF background layer */
  .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/gif/internet_streaming.gif") center / cover no-repeat;
    opacity: 0.25;
    filter: blur(1px) saturate(0.9);
    z-index: 0;
  }
  
  /* keep footer content above gif */
  .site-footer > * {
    position: relative;
    z-index: 1;
  }
  

  /* ================= FOOTER RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {
    .footer-top {
      grid-template-columns: 1fr;
      gap: 36px;
    }
  
    .footer-cols {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
  
    .footer-brand p {
      max-width: 100%;
    }
  }
  
  /* Mobile */
  @media (max-width: 640px) {
    .footer-top {
      padding: 48px 16px 36px;
    }
  
    .footer-cols {
      grid-template-columns: 1fr;
      gap: 22px;
    }
  
    .footer-logo span {
      font-size: 1.05rem;
    }
  
    .footer-col h4 {
      font-size: 0.9rem;
    }
  
    .footer-col a {
      font-size: 0.88rem;
    }
  
    .footer-form {
      flex-direction: row;
    }
  
    .footer-legal {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      text-align: left;
    }
  
    .footer-links a {
      margin-left: 0;
      margin-right: 12px;
      display: inline-block;
    }
  }
  