
:root {
    --primary: #ffffff;
    --bg: #050505;
    --accent: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Background Scanlines */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 1000;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.1;
}

/* Navigation Links Effect */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

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

/* Glassmorphism for Navbar on scroll */
nav.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Engineering Showcase */
.tech-label {
    z-index: 20;
    pointer-events: auto;
    cursor: default;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-label:hover {
    filter: brightness(1.4) drop-shadow(0 0 15px rgba(255,255,255,0.4));
    transform: scale(1.05);
}

.translate-hover {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.connector-line {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    animation: line-pulse 3s infinite ease-in-out;
}

@keyframes line-pulse {
    0%, 100% { opacity: 0.3; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.5); }
}

/* Hover Scale Utility */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Gallery Hover Image Reveal - Enhanced */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(255, 255, 255, 0.1), 0 18px 36px -18px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.gallery-item img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.gallery-item:hover img {
    transform: scale(1.1) !important;
}

/* Smooth Scroll Line */
.scroll-line {
    animation: scroll-line-anim 2s infinite ease-in-out;
}

@keyframes scroll-line-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 768px) {
    #cursor, #cursor-follower {
        display: none;
    }
    .connector-line {
        display: none;
    }
}
