/*
*/

@font-face {
    font-family: "Futura";
    src: url('../fonts/FuturaCondensedPT/futura-pt-heavy.woff');
}

/* 1. The Upright (Roman) Variable Font File */
@font-face {
    font-family: 'Inter';
    font-weight: 100 900; 
    font-style: normal; /* <--- Tells the browser this file is for normal text */
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('woff2');
}

/* 2. The Italic Variable Font File */
@font-face {
    font-family: 'Inter'; /* <--- Keep this name EXACTLY the same */
    font-weight: 100 900; 
    font-style: italic; /* <--- Tells the browser to use THIS file when text is italicized */
    font-display: swap;
    src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('woff2');
}

:root {
    /* Colors */
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --accent-color: rgb(59,130,246);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.2s ease-out;
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard syntax (Chrome, Opera, modern browsers) */
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    max-width: 100%;
    padding: 0 40px;
}

@media (max-width: 500px) {
    .container-full {
        padding: 0 20px;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

main {
    min-height: calc(100vh - 480px);
}

main a {
    border: 1px solid var(--accent-color);
    border-radius: 3px;
    padding: 3px 6px;
}

main a:hover {
    background: var(--accent-color);
    color: white;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    border: 1px solid #666;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    font-family: inherit;
    display: block;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px !important;
    cursor: pointer;
}

/* Utilities */
section {
    padding: var(--section-padding);
}

.text-center { text-align: center; }
.btn {
    display: inline-block;
    font-size: 1em;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-small {
    padding: 6px 12px;
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    padding: 10px 22px;
}

.btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.btn.outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-danger {background: #ef4444; color: #fff; border: 2px solid #ef4444;}
.btn-danger:hover {background: none; color: #ef4444;}

.cta {
    display: block;
    text-align: center;
    max-width: 600px;
    margin: 20px auto 0 auto;
}

/* Header & Nav */
header {
    position: fixed;
    height: 100px;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertical Alignment */
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

.logo h2 {
    font-family: "Futura";
    margin-top: 17px;
    margin-left: 10px;
    font-size: 1.1em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0;
    min-width: 220px;
    display: none; /* Hidden by default */
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    padding: 10px 20px !important;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--glass-bg);
}

.has-dropdown:hover .dropdown-menu {
    display: flex;
}

/* Submenu Toggle Icon */
.submenu-toggle {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    cursor: pointer;
    display: none; /* Mobile only */
    position: relative;
}

.submenu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: var(--transition-smooth);
}

.nav-links a {
    color: inherit;
    border: none;
    padding: 0;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-bg);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; /* Align left for mobile menu */
        /* padding: 0 40px; */
        transition: 0.2s ease-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        gap: 20px;
    }

    .nav-links li {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0 5%;
        height: 44px;
        margin-bottom: 10px;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    .nav-links li:has(.dropdown-menu) {
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 5%);
        padding: 0 5%;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-color);
        border-color: var(--accent-color);
        text-decoration: none;
    }

    .nav-links a.active {
        text-decoration: underline;
    }

    /* Mobile Submenu Toggle */
    .submenu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        width: 60px;
        height: 44px;
        border-left: 1px solid var(--glass-border);
        z-index: 10;
        background: rgba(255, 255, 255, 0.02); /* Slight highlight */
    }

    .submenu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-right: 2px solid var(--text-primary);
        border-bottom: 2px solid var(--text-primary);
        transform: translate(-50%, -70%) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .submenu-toggle.active::before {
        transform: translate(-50%, -20%) rotate(-135deg);
    }

    .dropdown-menu {
        display: block;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        display: block;
        border-left: 1px solid var(--glass-border);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-menu.show {
        max-height: 500px;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu li {
        padding: 0;
    }

    .dropdown-menu a {
        font-size: 1.1rem !important;
        font-weight: 400 !important;
        padding: 8px 15px;
    }

    .nav-links.active {
        right: 0;
    }

    .logo h2 {
        font-size: 1.2rem;
    }
}

/* Footer */
footer {
    padding: 60px 20px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.footer-grid {
    margin-top: 15px;
    font-size: 1.1rem;
}

.footer-info .logo {
    font-weight: 700;
}

.gear-price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}