.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.light .glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

#navbar.glass {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light #navbar.glass {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.neon-border {
    position: relative;
    overflow: hidden;
}

.neon-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.neon-border:hover::after {
    transform: translateX(100%);
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-grid {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.light .bg-grid {
    background-image: radial-gradient(circle at 2px 2px, rgba(15, 23, 42, 0.08) 1px, transparent 0);
}

::-webkit-scrollbar {
    width: 8px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 2rem;
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transition: all 0.3s;
}

.marquee-item:hover {
    transform: scale(1.2);
    color: var(--neon-blue);
    filter: drop-shadow(0 0 12px var(--neon-blue));
}

.light .marquee-item {
    color: #1e293b;
    filter: none;
}

.light .marquee-item:hover {
    color: #0ea5e9;
}

::-webkit-scrollbar-track {
    background: #020617;
}

.light ::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem !important;
        line-height: 1.1;
    }

    section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Limit about image size on mobile */
    #sobre img {
        max-height: 400px;
        object-fit: cover;
    }
}

/* Project Modal Styles */
#projectModal.active {
    display: flex !important;
}

#modalImage {
    max-height: 80vh;
    max-width: 95vw;
    object-fit: contain;
    border-radius: 1.5rem;
}

#modalContent {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

#modalBackdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#projectModal.active #modalBackdrop {
    opacity: 1;
}

#projectModal.active #modalContent {
    opacity: 1;
    transform: scale(1);
}

/* Close button adjustment for mobile */
@media (max-width: 768px) {
    #closeModal {
        top: -4rem !important;
        right: 1rem !important;
        background: rgba(15, 23, 42, 0.5);
        padding: 0.5rem;
        border-radius: 50%;
        backdrop-filter: blur(4px);
    }
}
