/* ==========================================================
   ACE PORTFOLIO — TOP HEADER
   ========================================================== */

:root {
  --ace-sidebar-expanded: 240px;
  --ace-sidebar-collapsed: 82px;
  --ace-top-header-height: 96px;
}

.top-header {
  position: fixed;
  top: 0;
  left: var(--ace-sidebar-expanded);
  right: 0;
  z-index: 996;
  pointer-events: none;
  transition: left 0.3s ease-in-out;
}

body.sidebar-collapsed .top-header {
  left: var(--ace-sidebar-collapsed);
}

.top-header-inner {
  width: 100%;
  height: var(--ace-top-header-height);
  padding: 10px 24px 10px 28px;
  border-radius: 0;
  background: rgba(4, 11, 20, 0.9);
  border-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  pointer-events: auto;
}

.top-header-left,
.top-header-actions,
.top-header-nav {
  display: flex;
  align-items: center;
}

.top-header-left {
  gap: 24px;
  min-width: 0;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: rgba(20, 157, 221, 0.18);
  border: 1px solid rgba(20, 157, 221, 0.36);
  padding: 11px 16px;
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-pill i {
  color: var(--accent-color);
}

.top-header-nav {
  gap: 12px;
}

.top-header-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 800;
  padding: 11px 15px;
  border-radius: 999px;
  transition: 0.25s ease;
  white-space: nowrap;
}

.top-header-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.top-header-actions {
  gap: 14px;
  flex-shrink: 0;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-color), #0b7fb6);
  padding: 13px 18px;
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(20, 157, 221, 0.28);
  white-space: nowrap;
}

.header-contact-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.header-theme-btn {
  width: 46px;
  height: 46px;
  border: 0;
  outline: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  flex: 0 0 46px;
}

.header-theme-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.top-header-logo {
  width: 230px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  flex: 0 0 230px;
}

.top-header-logo img {
  width: 205%;
  height: 205%;
  object-fit: contain;
  display: block;
  transform: translateY(5px);
}


/* ==========================================================
   HERO SPACING FIX
========================================================== */

.hero-modern .hero-content {
  padding-top: var(--ace-top-header-height);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {
  .top-header {
    left: 0;
    right: 0;
    top: 0;
  }

  .top-header-inner {
    height: 84px;
    padding: 9px 16px;
  }

  .top-header-nav {
    display: none;
  }

  .hero-modern .hero-content {
    padding-top: 94px;
  }

  .top-header-logo {
    width: 180px;
    height: 62px;
    flex-basis: 180px;
  }

  .top-header-logo img {
    width: 190%;
    height: 190%;
    transform: translateY(4px);
  }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 575px) {
  .top-header-inner {
    height: 76px;
    padding: 8px 10px;
    gap: 10px;
  }

  .header-pill {
    display: none;
  }

  .header-contact-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .header-theme-btn {
    display: none;
  }

  .top-header-logo {
    width: 150px;
    height: 54px;
    flex-basis: 150px;
  }

  .top-header-logo img {
    width: 185%;
    height: 185%;
    transform: translateY(4px);
  }

  .hero-modern .hero-content {
    padding-top: 86px;
  }
}