/* ============================================================
   ICTDesk — header-styles.css
   Include karo: <link rel="stylesheet" href="header-styles.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ===== NAV GLASS ===== */
.ict-nav {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: box-shadow 0.3s ease;
}
.ict-nav.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}
.ict-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===== LOGO ===== */
.ict-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ict-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.ict-logo-text {
  font-size: 19px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-logo-text span { color: #2563eb; }

/* ===== DESKTOP NAV LINKS ===== */
.ict-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ict-nav-links > li { position: relative; }
.ict-nav-links > li > a,
.ict-nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  position: relative;
}
.ict-nav-links > li > a:hover,
.ict-nav-links > li > button:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}
.ict-nav-links > li > a.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

/* Dropdown arrow */
.ict-drop-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
  color: #9ca3af;
}
.ict-nav-links > li.open .ict-drop-arrow {
  transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.ict-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
  margin: 0;
}
.ict-nav-links > li.open .ict-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.ict-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-dropdown li a:hover {
  background: #f0f7ff;
  color: #2563eb;
}
.ict-dropdown li a .dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ict-dropdown li a .dd-meta {
  display: flex;
  flex-direction: column;
}
.ict-dropdown li a .dd-meta span {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  margin-top: 1px;
}
.ict-dropdown-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 6px 8px;
}

/* ===== NAV CTA BUTTONS ===== */
.ict-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ict-btn-signin {
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-btn-signin:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}
.ict-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

/* ===== MOBILE HAMBURGER ===== */
.ict-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.ict-hamburger:hover { background: #f3f4f6; }
.ict-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s;
}
.ict-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ict-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ict-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.ict-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 12px 16px 20px;
  z-index: 9998;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.ict-mobile-menu.open { display: block; }
.ict-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-mobile-menu a:hover { background: #f0f7ff; color: #2563eb; }
.ict-mobile-section {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 12px 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-mobile-divider { height: 1px; background: #f3f4f6; margin: 8px 0; }
.ict-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
}
.ict-mobile-cta .ict-btn-primary {
  text-align: center;
  padding: 12px;
  font-size: 14px;
}
.ict-mobile-cta .ict-btn-outline {
  text-align: center;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ict-mobile-cta .ict-btn-outline:hover { background: #2563eb; color: #fff; }

/* ===== Body padding so content doesnt hide under fixed nav ===== */
body { padding-top: 68px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ict-nav-links { display: none; }
  .ict-btn-signin { display: none; }
  .ict-nav-cta .ict-btn-primary { display: none; }
  .ict-hamburger { display: flex; }
}


/* === HEADER ANIMATIONS === */

/* Logo entrance + idle glow pulse */
.ict-logo-icon {
  animation: logoEntrance 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes logoEntrance {
  from { transform: scale(0.5) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.ict-logo-icon:hover {
  animation: logoPulse 1s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 4px 12px rgba(37,99,235,.3); }
  50%      { box-shadow: 0 4px 24px rgba(37,99,235,.7), 0 0 0 6px rgba(37,99,235,.1); }
}

/* Logo text slide in */
.ict-logo-text {
  animation: slideInRight 0.5s 0.15s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Nav links stagger entrance */
.ict-nav-links > li:nth-child(1) { animation: navFadeIn 0.4s 0.1s ease both; }
.ict-nav-links > li:nth-child(2) { animation: navFadeIn 0.4s 0.18s ease both; }
.ict-nav-links > li:nth-child(3) { animation: navFadeIn 0.4s 0.26s ease both; }
.ict-nav-links > li:nth-child(4) { animation: navFadeIn 0.4s 0.34s ease both; }
.ict-nav-links > li:nth-child(5) { animation: navFadeIn 0.4s 0.42s ease both; }
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA buttons entrance */
.ict-nav-cta {
  animation: navFadeIn 0.4s 0.5s ease both;
}

/* Nav link animated underline on hover */
.ict-nav-links > li > a::after,
.ict-nav-links > li > button::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}
.ict-nav-links > li > a:hover::after,
.ict-nav-links > li > button:hover::after {
  width: calc(100% - 20px);
  left: 10px;
}

/* Accent line under nav */
.ict-nav-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #2563eb 30%, #60a5fa 50%, #2563eb 70%, transparent 100%);
  background-size: 200% 100%;
  animation: accentSlide 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.ict-nav.scrolled .ict-nav-accent-line {
  opacity: 1;
}
@keyframes accentSlide {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Dropdown slide + fade (already exists, enhance) */
.ict-dropdown {
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34,1.2,0.64,1);
}

/* Mobile menu slide down */
.ict-mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), opacity 0.25s ease;
  display: block !important;
  pointer-events: none;
}
.ict-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Primary button shimmer */
.ict-btn-primary {
  position: relative;
  overflow: hidden;
}
.ict-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btnShimmer 2.5s ease-in-out infinite;
}
@keyframes btnShimmer {
  0%   { left: -100%; }
  60%,100% { left: 150%; }
}

/* Nav glass entrance */
.ict-nav {
  animation: navSlideDown 0.5s cubic-bezier(0.34,1.2,0.64,1) both;
}
@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
