html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #E0E0E0;
}
.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
header {
    background-color: rgba(31, 31, 31, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.nav-link {
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.nav-link.active::after, .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #EF4444; /* Red accent */
}
.card {
    background-color: #1f1f1f;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15); /* Red shadow */
}
.modal-overlay {
    animation: fadeIn 0.3s ease-in-out;
}
.modal-content {
     animation: slideInUp 0.4s ease-in-out;
}
@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0;}
    to { transform: translateY(0); opacity: 1;}
}
/* Mobile menu overlay styles */
.mobile-menu {
    position: absolute;
    top: 100%; /* Position it right below the header */
    left: 0;
    right: 0;
    background-color: #1f1f1f;
    z-index: 40; /* Ensure it's below the header but above content */
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    visibility: hidden;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.mobile-menu.open {
    transform: translateY(0);
    visibility: visible;
}
/* Scroll-to-top button */
#to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #EF4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100px);
}
#to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
/* Animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
    transition-timing-function: ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}