
/* =========================================
   HEADER & MEGA MENU REDESIGN
   ========================================= */

/* Top Bar */
.top-bar {
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a {
    transition: opacity 0.2s ease;
}
.top-bar a:hover {
    opacity: 0.8;
}

/* Navbar */
.site-header .navbar {
    transition: all 0.3s ease;
}
.site-header .nav-link {
    font-weight: 500;
    font-size: 15px;
    padding: 10px 15px !important;
    position: relative;
    color: var(--ink);
    transition: color 0.3s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #FAC133;
}

/* Underline effect for nav links */
@media (min-width: 992px) {
    .site-header .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #FAC133;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    .site-header .nav-link:hover::after {
        width: 80%;
    }
}

/* Mega Menu Container */
.mega-item {
    position: static;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: transparent; /* Changed to transparent for glass effect if needed, but inner cols have bg */
    z-index: 1000;
    padding: 0;
    margin-top: 0;
    /* border-top: 3px solid #FAC133; removed for cleaner look */ 
}

@media (min-width: 992px) {
    .mega-menu.show {
        display: block;
        animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    /* Slight offset to align with navbar bottom */
    .mega-menu {
        padding-top: 10px; /* Gap for separation */
    }
    
    .mega-menu .container-fluid {
        max-width: 1400px; /* Wider container for mega menu */
    }
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Mega Menu */
@media (max-width: 991px) {
    .mega-menu.show {
        display: block;
        position: static;
        box-shadow: none !important;
        padding-left: 0;
        padding-top: 0;
        background: #f8f9fa;
    }
    .mega-menu .col-lg-9 {
        padding: 20px !important;
        background: transparent !important;
    }
    .mega-menu .col-md-4, .mega-menu .col-md-8 {
        border: none !important;
        padding-left: 0 !important;
        margin-bottom: 20px;
    }
    .project-link-item {
        padding: 8px 0;
    }
}

/* Sidebar & Categories */
.icon-square {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Project Links */
.project-mega-list li {
    margin-bottom: 4px;
}

.project-link-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.project-link-item:hover {
    background-color: #f8f9fa; /* Light gray bg on hover */
    color: #000;
    font-weight: 500;
    transform: translateX(5px);
}

.project-link-item:hover i {
    opacity: 1 !important;
    color: #FAC133;
}

/* Preview Section */
.project-preview-container {
    min-height: 400px;
    background-color: #000;
}

.bg-gradient-dark-bottom {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.font-display {
    font-family: 'Gopher', sans-serif; /* Assuming Gopher is available */
    font-weight: 700;
}

.hover-underline {
    position: relative;
    display: inline-block;
}
.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}
.hover-underline:hover::after {
    width: 100%;
}

.transition-transform {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Utilities */
.rounded-bottom-4 {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}
.rounded-bottom-start-4 {
    border-bottom-left-radius: 1rem !important;
}
.rounded-bottom-end-4 {
    border-bottom-right-radius: 1rem !important;
}
