* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Barlow', sans-serif;
}

/* Header Styles */
.header-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 100;
    transition: all 0.5s ease;
    will-change: height, transform;
}

.header-field.is-fixed {
    background: white;
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.1);
}

.header-field.is-hidden.is-fixed {
    transform: translateY(-100%);
    box-shadow: none;
}

.wrapper {
  /*  max-width: 1740px; */
    /* margin: 15px auto; */
    padding: 0 30px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-menu-item .hero-menu-logo {
    position: relative;
    z-index: 2;
}

.hero-menu-item {
    position: relative;
}

.hero-menu-item::before {
    content: "";
    position: absolute;
    bottom: -16%;
    left: 50%;
    width: 100%;
    height: 30vh;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: 1;
}

.logo-field {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo {
    position: relative;
    display: block;
    max-width: 200px;
    width: 100%;
}

.logo img {
    width: 13vw;
    height: auto;
    object-fit: contain;
    transition: opacity 0.35s 
ease;
}

.logo .logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.header-field.is-fixed .logo .logo-light {
    opacity: 0;
}

.header-field.is-fixed .logo .logo-dark {
    opacity: 1;
}

.tools-field {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.search-field {
    position: relative;
}

.icon-field {
    position: relative;
    z-index: 20;
    background: #F2F2F2;
    padding: 13px 25px;
    height: 44px;
    border-radius: 99px;
    overflow: hidden;
    cursor: pointer;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-search {
    font-size: 18px;
    height: 18px;
    line-height: 1;
    transition: all 0.35s ease;
}

.icon-search::before {
    content: "🔍";
}

.search-bar {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.75);
    transition: all 0.45s ease;
}

.search-bar.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.search-bar input {
    height: 44px;
    min-width: 476px;
    width: 100%;
    transition: all 0.35s ease;
    background: #F2F2F2;
    border-radius: 50px;
    padding: 0 50px;
    color: black;
    border: none;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-bar input:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    box-shadow: 0 0 0 1px #007bff;
}

.close-button {
    position: absolute;
    right: 30px;
    top: 17px;
    cursor: pointer;
}

.menu-field {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.menu-text {
    color: white;
    transition: all 0.35s ease;
    font-size: 16px;
}

.header-field.is-fixed .menu-text {
    color: black;
}

.hamburger {
    width: 35px;
    height: 20px;
    transition: all 0.35s ease;
    position: relative;
}

.hamburger span {
    display: block;
    background: white;
    height: 1px;
    margin: 5px 0;
    transition: all 0.35s ease;
    transform-origin: center;
}

.header-field.is-fixed .hamburger span {
    background: black;
}

.hamburger span:first-child {
    width: 100%;
}

.hamburger span:nth-child(2) {
    width: 100%;
}

.hamburger span:last-child {
    width: 60%;
}

.menu-field:hover .hamburger span:first-child {
    transform: rotate(45deg) translateY(6px);
}

.menu-field:hover .hamburger span:nth-child(2) {
    transform: scaleX(0);
}

.menu-field:hover .hamburger span:last-child {
    transform: rotate(-45deg) translateY(-6px) scaleX(1.825) translateX(16.5%);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.45s cubic-bezier(0.42, 0.97, 0.52, 1.49);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 550px;
}

.menu-field:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-15px);
}

.menu-column {
    padding: 20px 0;
    min-width: 275px;
    position: relative;
}

.menu-column:first-child {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px 0 0 20px;
}

.menu-item-dropdown {
    position: relative;
}

.menu-item-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 20px 40px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.menu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.menu-item-text {
    font-weight: 500;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.5);
    transition: all 0.35s ease;
    transform: translateX(-11px);
}

.menu-item-dropdown:hover .menu-dot {
    opacity: 1;
}

.menu-item-dropdown:hover .menu-item-text {
    color: black;
    transform: translateX(0);
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    padding: 20px 0;
    width: 100%;
    opacity: 0;
    transform: translateX(15px);
    visibility: hidden;
    transition: all 0.35s ease;
}

.menu-item-dropdown:hover .submenu,
.menu-item-dropdown.is-active .submenu {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0.2s;
}

.submenu-item {
    position: relative;
}

.submenu-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 20px 40px;
    text-decoration: none;
    transition: all 0.35s ease;
}

/* Mobile Menu Styles */
.mobile-menu-field {
    height: 100%;
    display: none;
}

.mobile-menu-trigger {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mobile-hamburger {
    width: 25px;
    fill: white;
    transition: all 0.35s ease;
}

.header-field.is-fixed .mobile-hamburger {
    fill: black;
}

.mobile-dropdown {
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    transition: all 0.45s cubic-bezier(0.42, 0.97, 0.52, 1.49);
    overflow-y: auto;
    overflow-x: hidden;
    height: 0;
}

.mobile-menu-field.is-active .mobile-dropdown {
    height: calc(100vh - 90px);
}

/* Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: #25272D;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 20px;
}

.search-modal-title {
    font-size: 20px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.search-modal input {
    height: 60px;
    padding: 0 90px 0 20px;
    width: 100%;
    font-size: 16px;
    color: white;
    background: #2D3037;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.45s ease;
}

.search-modal input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.search-modal input:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.search-modal input:focus {
    border-color: rgba(255, 255, 255, 0.65);
    outline: none;
}

.search-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
}

.search-button::before {
    content: "🔍";
    color: white;
    font-size: 18px;
}

/* Hero Section Styles */
section.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    transform: scale(1.1);
    opacity: 0;
}

.bg-container img[data-active="true"] {
    transform: scale(1);
    opacity: 1;
}

.after-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-menu {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.hero-menu-item {
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-right: 1px solid rgb(255 255 255 / 65%);
    background: transparent;
    cursor: pointer;
    transition: background 0.45s ease;
    min-height: 120px;
    padding: 20px 40px;
}

.hero-menu-item:last-child {
    border-right: none;
}

.hero-menu-item[data-active="true"] {
    background: rgba(0, 0, 0, 0.4);
}

.hero-menu-item:hover {
    background: rgba(0, 0, 0, 0.2);
}

.hero-menu-item h2 {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.hero-menu-item .desc {
    margin-top: 20px;
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.45s ease;
    height: 0;
    overflow: hidden;
}

.hero-menu-item[data-active="true"] .desc {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    z-index: 99;
}

.hero-menu-item a {
    display: flex;
    align-items: center;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.45s ease;
}

.hero-menu-item[data-active="true"] a {
    opacity: 1;
    transform: translateY(0);
    z-index: 999;
}

.icon-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.hero-menu-item a:hover .icon-arrow {
    border-color: white;
}

img.hero-menu-logo {
    width: 210px;

}

/* Responsive Styles */
@media (max-width: 1024px) {
    .logo-field {
        gap: 45px;
    }
    .tools-field {
        gap: 45px;
    }
}

@media (max-width: 768px) {
    .header-field {
        height: 90px;
    }
    .hero-menu {
        padding-top: 90px;
    }
    .logo {
        max-width: 150px;
    }
    .logo-field {
        gap: 30px;
    }
    .tools-field {
        gap: 30px;
    }
    .search-field.desktop {
        display: none;
    }
    .menu-field {
        display: none;
    }
    .mobile-menu-field {
        display: block;
    }
    .search-bar input {
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .header-field {
        height: 70px;
    }
    .hero-menu {
        padding-top: 70px;
        grid-template-columns: 1fr;
    }
    .logo {
        max-width: 125px;
    }
    .wrapper {
        padding: 0 20px;
    }
    .logo-field {
        gap: 20px;
    }
    .tools-field {
        gap: 20px;
    }
    .hero-menu-item {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        justify-content: flex-start;
        gap: 20px;
        border-right: 1px solid rgb(255 255 255 / 65%);
        background: transparent;
        cursor: pointer;
        transition: background 0.45s
        ease;
        min-height: 120px;
        padding: 20px 12px;
    }
    .hero-menu-item:last-child {
        border-bottom: none;
    }
    .hero-menu-item::before {
        content: none;
    }
    img.hero-menu-logo {
        width: 115px;
    }
    .logo img {
        width: 38vw; }
}

@media (max-width: 360px) {
    .logo {
        max-width: 90px;
    }
    .logo-field {
        gap: 15px;
    }
    .mobile-menu-field.is-active .mobile-dropdown {
        height: calc(100vh - 70px);
    }
}
