/* ===== App Bar ===== */
.app-bar-custom {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mud-theme-dark .app-bar-custom {
    background: rgba(30, 41, 59, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-decoration: none !important;
}

.nav-link-custom {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.nav-link-custom:hover {
    opacity: 1;
}

.mud-theme-dark .nav-link-custom {
    opacity: 0.85;
}

.mud-theme-dark .nav-link-custom:hover {
    opacity: 1;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #4a7cca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mud-theme-dark .hero-name {
    background: linear-gradient(135deg, #e2e8f0 0%, #7ba8de 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0.6;
}

/* ===== Section Spacing ===== */
.section {
    padding: 5rem 0;
}

@media (min-width: 960px) {
    .section {
        padding: 7rem 0;
    }
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
}

.mud-theme-dark .section-divider {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ===== Project Cards ===== */
.project-card {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

.mud-theme-dark .project-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.mud-theme-dark .project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.project-card-image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.mud-theme-dark .project-card-image-wrapper {
    background: #1e293b;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-image {
    transform: scale(1.05);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.mud-theme-dark .mobile-menu-overlay {
    background: rgba(15, 23, 42, 0.98);
}

.mobile-menu-content {
    text-align: center;
}

.mobile-menu-content .mud-nav-link {
    font-size: 1.5rem !important;
    font-weight: 600;
    justify-content: center;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ===== Page Enter Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 4rem;
}

.mud-theme-dark .site-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ===== Skills Grid ===== */
.skill-group {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.mud-theme-dark .skill-group {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ===== Section Header ===== */
.section-title {
    font-weight: 700 !important;
    letter-spacing: -0.03em;
}

.section-subtitle {
    opacity: 0.6;
    max-width: 500px;
}

/* ===== Filter Chips ===== */
.filter-chip-active {
    font-weight: 600 !important;
}

/* ===== Contact Page ===== */
.contact-link {
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

/* ===== Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, #4a7cca 0%, #7ba8de 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
