/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */

:root {
    --bg-color: #282828;
    --text-color: #ffffff;
    --accent-color: #050505;
    --hover-color: #333333;
    --card-bg: #ffffff;
    --shadow-color: #0000001A;
    --font-main: 'Consolas', 'Courier New', monospace;
}

@font-face {
    font-family: 'Consolas';
    src: url('../fonts/consolas.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border: none;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: none;
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-color: transparent;
    padding: 0;
}

header.header-hidden {
    transform: translateY(-100%);
}

header.header-scrolled-up {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inner Container */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 40px;
    position: relative;
}

/* Logo */
.logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-container a {
    text-decoration: none;
    display: block;
}

.site-logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Main Nav */
.main-nav {
    position: static;
    transform: none;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.main-nav .menu {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.menu-item {
    position: static;
}

.menu-item a,
.menu-item .dropbtn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: color 0.2s, background-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.menu-item a:hover,
.menu-item .dropbtn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Right Nav (Language) */
.right-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.right-nav .menu-item {
    position: relative;
}

#current-lang-code {
    font-size: 1rem;
    margin-left: 5px;
    font-weight: normal;
    line-height: 1;
}

.menu-item .icon-btn {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 5px;
}

.menu-item .icon-btn svg,
.menu-item .icon-btn img {
    width: 25px;
    height: 25px;
    stroke-width: 1.5;
    object-fit: contain;
}

/* =========================================
   3. DROPDOWN MENUS
   ========================================= */

.dropdown-menu {
    position: fixed;
    top: 114px;
    left: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: none;
    padding: 15px 40px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 0;
    max-height: none;
    overflow-y: visible;
}

/* Language Dropdown Specifics */
.right-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0 0 0;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: stretch;
    transform: translateY(10px);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Fix dot issue by targeting the parent item too */
li.menu-item,
.dropdown-menu a,
.dropdown-menu li {
    list-style: none !important;
    list-style-type: none !important;
}

.dropdown-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    border-radius: 50px;
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    color: #fff;
}

.dropdown-menu::-webkit-scrollbar {
    display: none;
}

/* =========================================
   4. MAIN CONTENT & FOOTER
   ========================================= */

main {
    max-width: 1200px;
    width: 90%;
    margin: 140px auto 40px;
    padding: 0 20px;
    text-align: center;
    flex: 1;
}

main h1 {
    text-align: center !important;
    margin: 0 auto 30px;
}

footer {
    width: 100%;
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   5. SHARED COMPONENTS (Hero, Cards, Glass)
   ========================================= */

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.featured-section {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: translateY(-10px);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    z-index: 1;
}

.featured-card:hover .card-bg {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
    padding: 30px;
    text-align: left;
}

.card-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.view-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* =========================================
   6. GLOBAL RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 15px;
    }

    .logo-container,
    .right-nav {
        width: auto;
    }

    .site-logo {
        height: 70px;
    }

    .menu-item .icon-btn svg,
    .menu-item .icon-btn img {
        width: 20px;
        height: 20px;
    }

    .main-nav {
        position: static;
        transform: none;
        width: auto;
    }

    .menu {
        gap: 5px;
    }

    .menu-item a,
    .menu-item .dropbtn {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {

    .menu-item a,
    .menu-item .dropbtn {
        padding: 5px 6px;
        font-size: 1rem;
    }
}