/* General styles */
body {
    font-family: 'Familjen Grotesk', sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
}

header a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    height: 100px;
    padding: 0 30px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Logo */
.logo {
    width: 210px;
    height: auto;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Desktop Menu */
.desktop-main-menu {
    margin-right: 50px;
}

.desktop-main-menu.doc_menu {
    margin-right: 130px;
}

.desktop-main-menu ul {
    display: flex;
}

.desktop-main-menu ul li {
    position: relative;
    margin-right: 20px;
    padding-bottom: 2px;
}

.desktop-main-menu ul li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: color 0.6s;
}

.desktop-main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: right center;
}

.desktop-main-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
    transition-duration: 0.7s;
}

/* Desktop Submenu Styles */
.desktop-main-menu ul .has-submenu .submenu {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    width: 120px;
    left: 0;
    top: 100%;
    padding: 10px 0;
}

.desktop-main-menu ul .has-submenu:hover .submenu {
    display: block;
}

.desktop-main-menu ul .has-submenu .submenu li {
    position: relative;
    margin-right: 0; 
    padding: 10px 10px;
}

.desktop-main-menu ul .has-submenu .submenu li a {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: color 0.6s;
    text-transform: uppercase;
}

.desktop-main-menu ul .has-submenu .submenu li a:hover {
    color: #aaa;
}

.submenu-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #fff;
    margin-left: 5px;
}

.hide {
    display: none;
}

/* Mobile Menu */
.mobile-main-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: #000;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.19,1,0.22,1);
    overflow-y: auto;
}

.show-menu {
    transform: translateX(0);
}

.mobile-main-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 50px;
    width: 100%;
}

.mobile-main-menu ul li {
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid #555;
    width: 100%;
    text-align: right;
    padding-bottom: 8px;
}

.mobile-main-menu ul li a {
    color: #fff;
    transition: color 0.6s;
}

.mobile-main-menu ul li a:hover {
    color: #aaa;
}

/* Mobile Menu Submenu Styles */
.mobile-main-menu ul .submenu {
    display: none;
    width: 100%;
}

.mobile-main-menu ul li.open-submenu > .submenu {
    display: block;
}

.mobile-main-menu ul .submenu li {
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
    width: 90%;
    text-align: right;
}

.mobile-main-menu ul .submenu li:last-child {
    margin-bottom: 0;
}

/* Desktop specific styles */
.desktop-main-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100px; /* Adjust this value as needed */
}

.desktop-main-menu .has-submenu > a .submenu-icon {
    margin-left: 5px
}

/* Mobile specific styles */
.mobile-main-menu .has-submenu > a {
    justify-content: space-between;
    align-items: center;
}

.mobile-main-menu .has-submenu.open-submenu > a .submenu-icon {
    transform: rotate(180deg);
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
}

.hamburger-top, 
.hamburger-middle, 
.hamburger-bottom {
    position: absolute;
    width: 20px;
    height: 2px;
    top: 0;
    left: 0;
    background: #fff;
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(5px);
}

.hamburger-bottom {
    transform: translateY(10px);
}

.open {
    transform: rotate(90deg);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translateX(6px);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translateX(-6px);
}

/* Overlay */
.overlay-show {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Stop body scroll */
.stop-scrolling {
    overflow: hidden;
}

/* Hide mobile main menu items */
.mobile-only {
    display: none;
}

/* Media query for mobile devices */
@media (max-width: 960px) {
    .desktop-main-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .desktop-main-menu {
        display: none;
    }
}
/* ===== Upcoming Projects Widget (fixed under header, right side) ===== */
:root {
  --up-border: #333;
  --up-text: #fff;
  --up-muted: #aaa;
  --up-bg: #000;
  --up-accent: #0f62fe;
  --up-hover: rgba(255,255,255,0.1);
}

.upcoming-widget  {
  text-transform: none;
  position: fixed;
  top: 67px;         
  right: 100px;        
  z-index: 9;
  width: 273px;
  background: var(--up-bg);
  border: 1px solid var(--up-border);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(255,255,255,.06);
  font-family: 'Familjen Grotesk', sans-serif;
  color: var(--up-text);

  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  background-image: none !important;
  background-position: initial !important;
  background-repeat: initial !important;
  background-size: initial !important;
  text-transform: none !important;
}

/* Header row */
.upcoming-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .35rem;
  padding: .315rem .385rem;
  background: var(--up-bg);
  border-bottom: 1px solid var(--up-border);
  cursor: pointer;
  position: relative;
  color: var(--up-text);
}
.upcoming-header:hover { background: var(--up-hover); }

.upcoming-header .title {
  font-weight: 600;
  letter-spacing: .1px;
  font-size: 8.5px;
  color: var(--up-text);
}

/* Peek area (collapsed summary) */
.upcoming-header .peek {
  display: flex; align-items: center; gap: .2rem; justify-content: flex-end;
  position: relative; min-height: 12px; padding-right: 10px;
}
.upcoming-header .peek .project-name,
.upcoming-header .peek .countdown {
  transition: opacity .26s ease; white-space: nowrap; color: var(--up-text);
}
.upcoming-header .peek .project-name {
  font-size: 8px; color: var(--up-muted); max-width: 112px;
  overflow: hidden; text-overflow: ellipsis;
}
.upcoming-header .peek .countdown {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 8px;
}
.upcoming-header .peek .arrow-down {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  opacity: 0; transition: opacity .26s ease;
}
.upcoming-header .peek .arrow-down svg {
  width: 8px; height: 8px; stroke: var(--up-text);
}

/* Hover/open states: swap peek text with arrow */
.upcoming-widget:hover .peek .project-name,
.upcoming-widget:hover .peek .countdown,
.upcoming-widget.is-open .peek .project-name,
.upcoming-widget.is-open .peek .countdown { opacity: 0; }
.upcoming-widget:hover .peek .arrow-down,
.upcoming-widget.is-open .peek .arrow-down { opacity: 1; }

/* List wrapper (collapsible) */
.upcoming-list {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s ease, opacity .35s ease;
  background: var(--up-bg);
}
.upcoming-widget:hover .upcoming-list,
.upcoming-widget.is-open .upcoming-list { max-height: 560px; opacity: 1; }

/* Cards */
.upcoming-list .card {
  display: grid; grid-template-columns: 25px 1fr auto; align-items: center;
  gap: .35rem; padding: .385rem .385rem; padding-right: 1.12rem;
  border-bottom: 1px solid var(--up-border);
  transform: translateX(14px); opacity: 0; position: relative;
  transition: transform .45s ease, opacity .45s ease, background .3s ease;
  color: var(--up-text); background: var(--up-bg);
}

/* ==== Fix arrow visibility and hover animation in Upcoming Widget ==== */

/* Reset global interference from other "section" styles */
.upcoming-widget svg {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
  stroke: var(--up-text);
  transition: transform .25s ease, opacity .25s ease;
}

/* Arrow in peek area (down arrow when collapsed) */
.upcoming-widget .arrow-down svg {
  width: 8px;
  height: 8px;
  stroke-width: 2;
  transition: transform .25s ease, opacity .25s ease;
}

/* Arrow on the right inside cards */
.upcoming-widget .arrow-right svg {
  width: 8px;
  height: 8px;
  stroke-width: 2;
  transition: transform .25s ease, opacity .25s ease;
}

/* Animate right arrow when hovering on card */
.upcoming-widget .card:hover .arrow-right {
  transform: rotate(45deg) translateY(2px);
  transition: transform .25s ease;
}

/* Animate down arrow visibility when hovering or opened */
.upcoming-widget:hover .arrow-down svg,
.upcoming-widget.is-open .arrow-down svg {
  transform: translateY(2px);
  opacity: 1;
}

/* Prevent text-transform from affecting arrow symbols */
.upcoming-widget * {
  text-transform: none !important;
}

.upcoming-widget .card:hover .arrow-right svg {
  transform: translate(2px, 2px) rotate(45deg);
  stroke: var(--up-accent);
}


@keyframes upcomingSlideInRight {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.upcoming-widget:hover .card,
.upcoming-widget.is-open .card { animation: upcomingSlideInRight .45s ease forwards; }
.upcoming-widget:hover .card:nth-child(1),
.upcoming-widget.is-open .card:nth-child(1) { animation-delay: .05s; }
.upcoming-widget:hover .card:nth-child(2),
.upcoming-widget.is-open .card:nth-child(2) { animation-delay: .13s; }
.upcoming-widget:hover .card:nth-child(3),
.upcoming-widget.is-open .card:nth-child(3) { animation-delay: .21s; }

.upcoming-list .card:hover { background: var(--up-hover); }

.upcoming-list .thumb {
  width: 25px; height: 25px; border-radius: 6px; object-fit: cover;
  background: #222; border: 1px solid var(--up-border);
}
.upcoming-list .meta { display: grid; gap: .1rem; }
.upcoming-list .meta h4 {
  margin: 0; font-size: 8.5px; font-weight: 700; letter-spacing: .1px; color: var(--up-text);
}
.upcoming-list .meta .short { font-size: 7px; color: var(--up-muted); }

.upcoming-list .timer {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 8px; color: var(--up-text);
}

.upcoming-list .arrow-right {
  position: absolute; right: .385rem; top: 50%; transform: translateY(-50%) rotate(0deg);
  transition: transform .25s ease, top .25s ease, bottom .25s ease; pointer-events: none;
}
.upcoming-list .card:hover .arrow-right {
  top: auto; bottom: .315rem; transform: rotate(45deg);
}

/* Footer link */
.upcoming-list .all-link {
  display: flex; align-items: center; gap: .175rem;
  padding: .315rem .385rem; background: var(--up-bg); color: var(--up-accent);
}
.upcoming-list .all-link svg { width: 8px; height: 8px; stroke: var(--up-accent); color: #fff; }
.upcoming-list .all-link a { text-decoration: none; color: #fff; font-weight: 600; font-size: 8px; }

/* Respect small screens: hide widget (your mobile menu owns the right side) */
@media (max-width: 960px) { .upcoming-widget { display: none; } }
