/* CSS Reset & Variables */
:root {
    --bg-color: #020617;
}

body {
    background-color: var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Background Patterns */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Navbar Scrolled State */
.nav-scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Navigation Links Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Terminal 3D Effect */
.perspective-container {
    perspective: 1000px;
}

.transform-3d {
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.transform-3d:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

/* Marquee Animation */
.marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    animation: scroll 20s linear infinite;
    padding-left: 2rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Typed cursor styling */
.typed-cursor {
    color: #6366f1;
    font-size: 1.2em;
}

/* Swiper Pagination Override */
.swiper-pagination-bullet {
    background: #64748b !important;
}
.swiper-pagination-bullet-active {
    background: #6366f1 !important;
    width: 20px !important;
    border-radius: 5px !important;
}
