/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #81246b;
    --secondary-color: #8A3B77;
    --accent-color: #d5da2f;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --sidebar-width: 280px;
    --transition: all 0.3s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ==================== SIDEBAR NAVIGATION ==================== */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header .logo {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: none;
}

.sidebar-nav .nav {
    flex: 1;
    padding: 2rem 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link i {
    font-size: 1.3rem;
    margin-right: 1rem;
    width: 24px;
}

.sidebar-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
}

.sidebar-nav .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--white);
    font-weight: 600;
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: url('bg.jpg');
    background-size: cover;
    position: relative; /* Sahte öğeyi konumlandırmak için */
    z-index: 0; /* İçeriğin filtrenin üzerinde olmasını sağlamak için */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Siyah renk, %50 saydamlık */
    z-index: -1; /* Filtrenin arka planda olmasını sağlamak için */
}

.hero-section h1 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 70px;
}

.hero-section .lead {
    font-size: 31px;
    font-weight: 300;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================== ABOUT SECTION ==================== */
.about-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.about-content h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.skill-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ==================== GALLERY SECTION ==================== */
.bg-light {
    background: var(--bg-light) !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==================== CONTACT SECTION ==================== */
.contact-info .info-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-info .info-item i {
    font-size: 1.5rem;
}

.contact-info a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-form .form-control {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-left: calc(-1 * var(--sidebar-width));
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991px) {
    .sidebar-nav {
        transform: translateX(-100%);
    }

    .sidebar-nav.active {
        transform: translateX(0);
    }

    .close-btn {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .footer {
        margin-left: 0;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}