/* Base Styles & Responsiveness Fixes */
html, body { 
    overflow-x: hidden; 
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Smooth Reveal Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Glassmorphism Bento Cards */
.bento-card {
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (hover: hover) {
    .bento-card:not(.no-hover):hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    }
    .dark .bento-card:not(.no-hover):hover {
        border-color: rgba(34, 211, 238, 0.3);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    }
}

/* Background Blobs */
.blob-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute; 
    width: 300px; 
    height: 300px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    filter: blur(60px); 
    animation: float 20s infinite alternate;
}

@media (min-width: 768px) {
    .blob { width: 600px; height: 600px; }
}

@keyframes float {
    0% { transform: translate(-10%, -10%); }
    100% { transform: translate(10%, 10%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.dark ::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: #1e293b; }

/* Hide Scrollbar for Carousel */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Experience Timeline Line */
.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(51, 65, 85, 0.15) 15%, rgba(51, 65, 85, 0.15) 85%, transparent);
}
.dark .timeline-line {
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.2) 15%, rgba(34, 211, 238, 0.2) 85%, transparent);
}
@media (min-width: 768px) {
    .timeline-line { left: 50%; }
}

/* Staggered Menu Animations */
.menu-item { 
    opacity: 0; 
    transform: translateX(20px); 
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}
.menu-open .menu-item { 
    opacity: 1; 
    transform: translateX(0); 
}

/* Opaque Contact Input */
.contact-input {
    transition: all 0.3s ease;
}
.contact-input:focus {
    outline: none;
    border-color: #0891b2; 
    box-shadow: 0 0 15px -5px rgba(8, 145, 178, 0.2);
}
.dark .contact-input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 15px -5px rgba(34, 211, 238, 0.3);
}

.error-msg {
    color: #ef4444;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.error-active .error-msg { opacity: 1; }
.error-active .contact-input { border-color: #ef4444 !important; }

/* Active Navigation Link Styling */
.nav-link.active {
    color: #0891b2 !important; /* cyan-600 */
}
.dark .nav-link.active {
    color: #22d3ee !important; /* brand-accent */
}

.dock-item.active {
    color: #0891b2 !important;
}
.dark .dock-item.active {
    color: #22d3ee !important;
}
.dock-item.active i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}