/* Component Styles */

/* ===== HEADER COMPONENT ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    padding: 0 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    padding: 10px 0;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.93rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 1);
}

.main-nav a.active {
    color: rgba(255, 255, 255, 1);
}

/* Get Started Button */
.btn-get-started {
    padding: 11px 28px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 25px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(90deg, #6c5ce7, #00d4aa, #6c5ce7, #00d4aa);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

.btn-get-started:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-2px);
}

.btn-get-started:hover::before {
    animation-duration: 1.5s;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background-color: var(--accent-green);
}

/* Mobile menu active state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== DROPDOWN MENU ===== */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: white !important;
    background: rgba(139, 127, 255, 0.1);
}

.dropdown-menu li a.active {
    color: #8b7fff !important;
    background: rgba(139, 127, 255, 0.08);
}

.dropdown-menu .dropdown-label {
    display: block;
    padding: 10px 24px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

/* Nested dropdown (accordion style - expands downward) */
.dropdown-menu .has-subdropdown {
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-menu .has-subdropdown:hover {
    transition-delay: 0s;
}

.dropdown-menu .has-subdropdown .subdropdown-menu {
    transition-delay: 0.3s;
}

.dropdown-menu .has-subdropdown > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    padding-top: 14px !important;
}

.dropdown-menu .has-subdropdown:first-child > a {
    border-top: none;
    margin-top: 0;
    padding-top: 12px !important;
}

.dropdown-menu .has-subdropdown > a::after {
    content: '▾';
    font-size: 0.7rem;
    margin-left: 10px;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dropdown-menu .has-subdropdown:hover > a::after {
    transform: rotate(180deg);
    opacity: 0.8;
}

.dropdown-menu .has-subdropdown:hover > a {
    color: white !important;
}

.dropdown-menu .subdropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 1s ease;
}

.dropdown-menu .has-subdropdown:hover > .subdropdown-menu {
    max-height: 200px;
}

.subdropdown-menu li {
    display: block;
}

.subdropdown-menu li a {
    display: block;
    padding: 10px 24px 10px 36px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subdropdown-menu li a:hover {
    color: white !important;
    background: rgba(226, 65, 124, 0.08);
}
