@charset "UTF-8";

/* ==========================================================
   GAN DESIGNS | SHARED PORTFOLIO NAVIGATION
   FILE: css/portfolio-nav.css
   DESKTOP: HORIZONTAL NAVIGATION ABOVE 1200PX
   TABLET / MOBILE: NEON HAMBURGER AT 1200PX AND BELOW
========================================================== */

/* 01 | CUSTOM FONTS */
@font-face {
  font-family: "GrandeMagical";
  src: url("../fonts/GrandeMagical.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Brullos";
  src: url("../fonts/Brullos.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 02 | NAVIGATION VARIABLES */
:root {
  --nav-cyan: #24d4f2;
  --nav-blue: #348dff;
  --nav-purple: #8368ff;
  --nav-pink: #e449ee;
  --nav-ombre: linear-gradient(
    90deg,
    #e449ee 0%,
    #b34bff 27%,
    #8368ff 48%,
    #348dff 73%,
    #24d4f2 100%
  );
  --nav-dark: #071225;
  --nav-border: rgba(83, 145, 235, .42);
}

/* 03 | NAVIGATION FOUNDATION */
#portfolio-navigation-container,
#portfolio-navigation-container * {
  box-sizing: border-box;
}

#portfolio-navigation-container {
  position: relative;
  z-index: 1000;
  width: 100%;
}

#portfolio-navigation-container .site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(71, 183, 255, .45);
  background:
    radial-gradient(ellipse at 5% 0%, rgba(106, 48, 176, .18), transparent 48%),
    radial-gradient(ellipse at 95% 100%, rgba(27, 126, 205, .17), transparent 50%),
    linear-gradient(110deg, #070e1d, #10152e 50%, #07192d);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

/* 04 | HEADER BRAND & ACTIONS */
.portfolio-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(100%, 1750px);
  min-height: 88px;
  margin: 0 auto;
  padding: 12px clamp(20px, 3vw, 55px);
}

.portfolio-header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.portfolio-brand-name {
  display: block;
  font-family: "GrandeMagical", Georgia, serif;
  font-size: clamp(33px, 3vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  background: var(--nav-ombre);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 9px rgba(131, 104, 255, .3));
}

.portfolio-brand-subtitle {
  color: #b8d7f5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
}

.portfolio-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

/* 05 | BACK TO HOME */
.back-to-portfolio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid rgba(71, 183, 255, .6);
  border-radius: 30px;
  background: linear-gradient(110deg, rgba(18, 30, 58, .92), rgba(16, 21, 49, .92));
  color: #eaf9ff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  transition: transform .3s, border-color .3s, box-shadow .3s, color .3s;
}

.back-to-portfolio:hover {
  transform: translateY(-2px);
  border-color: var(--nav-pink);
  color: var(--nav-cyan);
  box-shadow: 0 0 19px rgba(228, 73, 238, .22), 0 0 20px rgba(37, 212, 242, .2);
}

.back-arrow {
  font-size: 21px;
  line-height: 1;
}

/* 06 | DESKTOP HORIZONTAL NAVIGATION */
.portfolio-top-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px clamp(16px, 2vw, 35px) 13px;
  border-top: 1px solid rgba(71, 183, 255, .2);
  background: rgba(3, 12, 34, .52);
}

/* 07 | DESKTOP NAVIGATION LINKS */
.portfolio-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px clamp(13px, 1.4vw, 24px);
  overflow: hidden;
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(18, 30, 58, .92), rgba(16, 21, 49, .92));
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
}

/* OMBRE TEXT */
.portfolio-nav-link {
  background-image: var(--nav-ombre);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* LIGHT SWEEP */
.portfolio-nav-link::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 35%;
  height: 300%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), rgba(37, 212, 242, .3), transparent);
  transform: rotate(22deg);
  transition: left .65s;
  pointer-events: none;
}

/* BOTTOM OMBRE LINE */
.portfolio-nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 0;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: var(--nav-ombre);
  box-shadow: 0 0 10px rgba(37, 212, 242, .7);
  transition: width .35s;
}

/* 08 | DESKTOP HOVER & ACTIVE PAGE */
.portfolio-nav-link:hover,
.portfolio-nav-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--nav-cyan);
  box-shadow: 0 0 18px rgba(228, 73, 238, .24), 0 0 22px rgba(37, 212, 242, .22);
}

.portfolio-nav-link:hover::before,
.portfolio-nav-link:focus-visible::before {
  left: 130%;
}

.portfolio-nav-link:hover::after,
.portfolio-nav-link:focus-visible::after {
  width: 72%;
}

.portfolio-nav-link.is-active,
.portfolio-nav-link[aria-current="page"] {
  border-color: rgba(37, 212, 242, .85);
  box-shadow: 0 0 17px rgba(37, 212, 242, .25);
}

.portfolio-nav-link.is-active::after,
.portfolio-nav-link[aria-current="page"]::after {
  width: 55%;
}

/* 09 | HAMBURGER HIDDEN ON DESKTOP */
.portfolio-menu-toggle {
  display: none;
}

/* 10 | TABLET & MOBILE NAVIGATION */
@media (max-width: 1200px) {

  .portfolio-header-inner {
    min-height: 92px;
    padding: 12px 25px;
  }

  .portfolio-header-actions {
    gap: 18px;
  }

  /* CIRCULAR NEON MENU BUTTON */
  .portfolio-menu-toggle {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 2px solid rgba(71, 183, 255, .85);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(11, 24, 52, .97), rgba(23, 17, 62, .97));
    box-shadow: 0 8px 25px rgba(0, 0, 0, .5), 0 0 22px rgba(37, 212, 242, .25);
    cursor: pointer;
    transition: transform .35s, border-color .35s, box-shadow .35s;
  }

  /* ROTATING OMBRE HALO */
  .portfolio-menu-toggle::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(#e449ee, #b34bff, #8368ff, #348dff, #24d4f2, #e449ee);
    opacity: .75;
    filter: blur(10px);
    animation: portfolio-menu-halo 8s linear infinite;
    pointer-events: none;
  }

  /* INNER RING */
  .portfolio-menu-toggle::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    pointer-events: none;
  }

  /* ORIGINAL HOMEPAGE MENU IMAGE */
  .portfolio-menu-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 71px;
    height: 71px;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 7px rgba(37, 212, 242, .45));
    transition: transform .4s, filter .4s;
  }

  .portfolio-menu-toggle:hover {
    transform: scale(1.08);
    border-color: var(--nav-pink);
    box-shadow: 0 0 28px rgba(228, 73, 238, .4), 0 0 35px rgba(37, 212, 242, .3);
  }

  .portfolio-menu-toggle:hover .portfolio-menu-image {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 12px rgba(228, 73, 238, .75));
  }

  .portfolio-menu-toggle.is-open,
  .portfolio-menu-toggle[aria-expanded="true"] {
    border-color: var(--nav-pink);
    box-shadow: 0 0 28px rgba(228, 73, 238, .5), 0 0 42px rgba(37, 212, 242, .4);
  }

  /* DROPDOWN PANEL */
  .portfolio-top-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 25px;
    left: auto;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    width: 365px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 115px);
    margin: 0;
    padding: 19px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(100, 174, 255, .7);
    border-radius: 20px;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(77, 46, 140, .3), transparent 55%),
      radial-gradient(ellipse at 100% 100%, rgba(20, 107, 170, .2), transparent 55%),
      linear-gradient(145deg, rgba(7, 15, 34, .98), rgba(17, 17, 51, .98), rgba(8, 26, 49, .98));
    box-shadow: 0 25px 70px rgba(0, 0, 0, .75), 0 0 35px rgba(37, 212, 242, .14);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px) scale(.94);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .3s, transform .4s, visibility .3s;
  }

  /* OPEN DROPDOWN */
  .portfolio-top-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* MOBILE LINK BUTTONS */
  .portfolio-nav-link {
    display: flex;
    width: 100%;
    min-height: 62px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 21px;
    letter-spacing: -.025em;
  }

  .portfolio-nav-link:hover,
  .portfolio-nav-link:focus-visible {
    transform: translateX(-4px) scale(1.02);
  }
}

/* 11 | TABLETS */
@media (max-width: 768px) {

  .portfolio-header-inner {
    min-height: 80px;
    padding: 10px 18px;
  }

  .portfolio-brand-name {
    font-size: 35px;
  }

  .portfolio-brand-subtitle {
    font-size: 9px;
    letter-spacing: .2em;
  }

  .back-to-portfolio {
    padding: 9px 12px;
    font-size: 10px;
  }

  .portfolio-menu-toggle {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
  }

  .portfolio-menu-image {
    width: 61px;
    height: 61px;
  }

  .portfolio-top-nav {
    right: 16px;
    width: 310px;
    padding: 13px;
    gap: 7px;
  }

  .portfolio-nav-link {
    min-height: 56px;
    font-size: 19px;
  }
}

/* 12 | MOBILE PHONES */
@media (max-width: 480px) {

  .portfolio-header-inner {
    min-height: 72px;
    gap: 10px;
    padding: 9px 13px;
  }

  .portfolio-brand-name {
    font-size: clamp(25px, 7vw, 32px);
  }

  .portfolio-brand-subtitle {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .portfolio-header-actions {
    gap: 9px;
  }

  .back-to-portfolio {
    min-height: 35px;
    padding: 7px 9px;
    font-size: 9px;
    letter-spacing: .02em;
  }

  .back-arrow {
    font-size: 17px;
  }

  .portfolio-menu-toggle {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .portfolio-menu-image {
    width: 54px;
    height: 54px;
  }

  .portfolio-top-nav {
    right: 12px;
    width: 275px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    gap: 6px;
    border-radius: 17px;
  }

  .portfolio-nav-link {
    min-height: 52px;
    font-size: 18px;
  }
}

/* 13 | VERY SMALL SCREENS */
@media (max-width: 360px) {

  .portfolio-header-inner {
    padding: 8px;
  }

  .portfolio-brand-name {
    font-size: 25px;
  }

  .portfolio-brand-subtitle {
    font-size: 7px;
  }

  .back-to-portfolio {
    font-size: 0;
    gap: 0;
    padding: 7px 10px;
  }

  .back-arrow {
    font-size: 22px;
  }

  .portfolio-menu-toggle {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .portfolio-menu-image {
    width: 46px;
    height: 46px;
  }

  .portfolio-top-nav {
    right: 8px;
    max-width: calc(100vw - 16px);
  }
}

/* 14 | ANIMATIONS */
@keyframes portfolio-menu-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 15 | ACCESSIBILITY */
#portfolio-navigation-container a:focus-visible,
#portfolio-navigation-container button:focus-visible {
  outline: 2px solid var(--nav-cyan);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-menu-toggle::before {
    animation: none !important;
  }

  .portfolio-menu-toggle,
  .portfolio-menu-image,
  .portfolio-top-nav,
  .portfolio-nav-link,
  .back-to-portfolio {
    transition: none !important;
  }
}
