#theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    margin-left: 15px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #7b1fa2;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Layout */
.wrapper {
    width: 95%;
    max-width: 1300px;
    background: #f7f3ff;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    position: relative;
}

/* ================= SIDEBAR ================= */

.sidebar {
    width: 220px;
    background: #000;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: 0.3s ease;
}

.sidebar h2 {
    font-size: 24px;
}

.sidebar nav a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 15px 0;
}

/* Aktif menü linki */
.sidebar nav a.active {
    color: #ff6ec7;
    font-weight: 600;
}

.sidebar nav a:hover {
    color: #fff;
}

.sidebar nav a.active:hover {
    color: #ff6ec7;
}

.social-mini a {
    color: #888;
    margin-right: 10px;
    font-size: 18px;
}

.social-mini a :hover {
    /* background: #8e24aa; */
    color: #8e24aa;
}

.menu-close {
    display: none;
}

.copyright {
    font-size: 12px;
    color: #666;
}

/* Hamburger */
.menu-toggle {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 26px;
    color: #ff6ec7;
    cursor: pointer;
    z-index: 1100;
}

/* ================= MAIN ================= */

.main {
    flex: 1;
    display: block;
    padding: 60px;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    width: 50%;
}

.hero-content small {
    letter-spacing: 2px;
    color: #555;
}

.hero-content h1 {
    font-size: 48px;
    margin: 15px 0;
}

.hero-content h1 span {
    color: #8e24aa;
}

.hero-content p {
    max-width: 420px;
    line-height: 1.6;
    color: #444;
}

.btn-main {
    background: linear-gradient(45deg, #8e24aa, #ff6ec7);
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.btn-main:hover {
    background: #1c6fd1;
    transform: translateY(-3px);
    transform: scale(1.1);
}

.mini-contact {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.mini-contact i {
    margin-right: 6px;
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 280px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

/* hakkımda */

.about-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    border: 2px solid #8e24aa;
    color: #8e24aa;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #8e24aa;
    color: #fff;
}

/* Sections */
.section {
    background: var(--card);
    padding: 80px 0;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    text-align: center;
}

.card i {
    font-size: 36px;
    color: #8e24aa;
    margin-bottom: 15px;
}

.contact-icons a {
    font-size: 32px;
    color: #8e24aa;
    margin-right: 15px;
}

/* ============ SCROLL SONRASI TOPBAR ============ */

.sidebar.topbar {
    width: 100%;
    height: 70px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 40px;
    border-radius: 0;
    background: #000;
    z-index: 1000;
}

.sidebar.topbar nav {
    display: flex;
    gap: 25px;
}

.sidebar.topbar nav a {
    margin: 0;
    font-size: 14px;
}

.sidebar.topbar .social-mini,
.sidebar.topbar .copyright {
    display: none;
}

/* İçeriği aşağı iter */
body.topbar-active .main {
    padding-top: 120px;
}

/* BLOG ALANI */
.section-desc {
    max-width: 600px;
    color: #555;
    margin-bottom: 30px;
}

.blog-cards {
    background: var(--card);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.blog-card {
    background: #bdc3c7;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 12px;
    font-weight: 600;
    color: #8e24aa;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111;
}

.blog-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.blog-link {
    margin-top: 15px;
    color: #8e24aa;
    font-weight: 500;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px) {

    body {
        padding: 20px 0;
    }

    .wrapper {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        color: #8e24aa;
    }

    /* Mobilde sidebar açılır menü */
    .sidebar {
        position: fixed;
        left: -260px;
        top: 20px;
        height: calc(100% - 40px);
        border-radius: 15px;
        z-index: 999;
    }

    .sidebar.active {
        left: 20px;
    }

    .menu-close {
        display: block;
        text-align: center;
        margin-top: 20px;
        font-size: 22px;
        color: #aaa;
        cursor: pointer;
    }

    /* Mobilde topbar aktifken yatay bar görünür */
    .sidebar.topbar {
        left: 0;
        top: 0;
        height: 70px;
        border-radius: 0;
    }

    /* Mobilde topbar nav gizlenir (hamburger kullanılır) */
    .sidebar.topbar nav {
        display: none;
    }

    .main {
        padding: 90px 20px 40px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        width: 220px;
    }

    .cards {
        justify-content: center;
    }
}

/* Saha denetimleri hataları */

.closing-question {
    margin-top: 50px;
    font-size: 18px;
    text-align: center;
}