/* Profile Section */
.profile-section {
    width: 100%;
    height: var(--profile-height);
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    background-color: var(--bg-color);
    overflow: hidden;
    background-attachment: fixed;
    transition: var(--transition-profile);
    z-index: 10; /* Sidebar'dan düşük yapıyoruz */
    will-change: height;
}

.profile-section.shrink {
    height: var(--profile-height-shrink);
}


/* Background Image Container */
.profile-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: inherit;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.7);
}



/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        height: var(--profile-height);
        min-height: var(--profile-height);
        padding: var(--profile-padding) 0;
    }

    .profile-section.shrink {
        height: var(--profile-height-shrink);
        min-height: var(--profile-height-shrink);
    }

    .site-main {
        padding-top: 0;
    }

    .site-main.shrink {
        padding-top: 0;
    }

    .profile-section.shrink .text-container {
        transform: translateX(0);
        left: 0;
        text-align: center;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .profile-section.shrink .nav-list:not(.navbar-collapse .nav-list) {
        display: none !important;
    }

    .profile-section.shrink .navbar-toggler {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .name-link {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .profile-section {
        height: var(--profile-height);
        min-height: var(--profile-height);
    }
}


/* Mobile Navigation */
@media (max-width: 768px) {
    .theme-toggle-item {
        display: none !important;
    }
}

/* Navigation List */
.nav-list {
    position: relative;
    transition: var(--transition-profile);
}

.profile-section:not(.shrink) .nav-list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: var(--transition-profile);
}

@media (max-width: 768px) {
    .profile-section.shrink .nav-list:not(.navbar-collapse .nav-list) {
        transform: translateY(-50%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-profile);
    }

    .navbar-collapse {
        transition: var(--transition-profile);
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transition: var(--transition-profile);
    }
}
