/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(12, 16, 22, 0.98), rgba(12, 16, 22, 0.9));
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 64px;
    width: auto;
}

.logo h1 {
    background: linear-gradient(90deg, #ffd700, #ff9800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 1.5rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 16, 22, 0.75);
}

.nav-menu li.nav-login-item{margin-left:auto;}

.nav-menu a {
    text-decoration: none;
    color: #e8edf5;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
}

.nav-menu a::after { display: none; }

.nav-menu a:hover,
.nav-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-menu a.nav-login{
    background: rgba(255, 255, 255, 0.06);
    color: #e8edf5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}
.nav-menu a.nav-login:hover,
.nav-menu a.nav-login:focus-visible{
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.navbar-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.6), rgba(255, 152, 0, 0.2), transparent 70%);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
    pointer-events: none;
    z-index: 1001;
}

.navbar {
    position: relative;
    z-index: 1000;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 78px;
    right: 0;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    height: auto;
    max-height: calc(100vh - 78px);
    background: rgba(12, 16, 22, 0.98);
    z-index: 999;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    border-radius: 0 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mobile-menu a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu a.nav-login{
    background: rgba(255, 255, 255, 0.06);
    color: var(--white-color);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}
.mobile-menu a.nav-login:hover{
    background: rgba(255, 255, 255, 0.12);
    color: var(--white-color);
}

.mobile-menu,
.mobile-overlay {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-toggle-checkbox:checked ~ .mobile-menu,
.nav-toggle-checkbox:checked ~ .mobile-overlay {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--secondary-color);
        transition: var(--transition);
        display: block;
    }
    .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .mobile-menu,
    .mobile-overlay {
        display: block;
    }
    .nav-menu {
        display: none !important;
    }
    .nav-toggle-checkbox:checked + .nav-toggle span {
        background-color: #000000;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        width: 100vw;
        min-width: 0;
        max-width: 99vw;
        padding: 32px 0px 24px 8px;
    }
}

/* Footer styles */
.footer {
    background: radial-gradient(800px 320px at 20% 0%, rgba(255, 215, 0, 0.08), transparent 60%),
                linear-gradient(180deg, #0a0d11 0%, #0c1118 100%);
    color: var(--white-color);
    padding: 70px 0 24px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to bottom,
        #ff9800 0%,
        #ff9800 40%,
        #ffd700 70%,
        transparent 100%
    );
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    margin-bottom: 0px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-left: 0px;
}

.footer-logo img {
    max-height: 110px;
    width: auto;
}

.footer-logo h1 {
    font-size: 1rem;
    background: linear-gradient(90deg, #ff9800, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px;
    text-align: left;
}

.footer-tagline {
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.6;
    margin-left: 0px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff9800);
    bottom: 0;
    left: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    gap: 8px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #000000;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(224, 224, 224, 0.6);
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 12px 0;
        text-align: center;
    }
    .footer-content {
        gap: 10px;
        padding: 0 4px;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 8px;
        font-size: 0.85rem;
    }
    .footer-logo img {
        max-width: 80px;
        margin-bottom: 4px;
    }
    .footer-logo h1 {
        font-size: 0.85rem;
        margin: 4px 0 0 0;
    }
    .footer-tagline {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.1rem;
    }
    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
    .footer-contact p {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    .footer-social {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
        width: 100%;
    }
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .footer-bottom {
        padding-top: 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 0;
    }
    .footer-tagline {
        margin-left: 0;
        margin-bottom: 0;
        font-size: 0.85rem;
        text-align: left;
        display: inline-block;
    }
}
