/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    /* Color Palette (Sophisticated Dark Theme) */
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #6a82fb;
    --text-color: #e0e0e0;
    --text-color-muted: #a0a0a0;
    --border-color: #333333;

    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.25rem;
    --h3-size: 1.25rem;
    --normal-font-size: 1rem;
    
    /* Spacing */
    --header-height: 4rem;
    --section-padding: 15rem 0;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ======== REUSABLE CSS CLASSES ======== */
.container {
    max-width: 1225px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-top: 17rem;
    /* padding-bottom: 15rem; */
}

.section__title {
    font-size: var(--h2-size);
    margin-bottom: 2rem;
    text-align: center;
}

.section__text {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-color-muted);
    text-align: center;
}

.text-center {
    text-align: center;
}

/* ======== HEADER & NAV ======== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color-muted);
    font-weight: 400;
    position: relative;
    padding: 0.25rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__link:hover, .nav__link.active {
    color: var(--text-color);
}

.nav__link:hover::after, .nav__link.active::after {
    width: 100%;
}


/* ======== HERO SECTION ======== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    opacity: 0.2;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero__container {
    z-index: 1;
}

.hero__title {
    font-size: var(--h1-size);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-color-muted);
    margin-bottom: 2.5rem;
}

.hero__cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 130, 251, 0.3);
}

/* ======== ABOUT ME SECTION ======== */
.about__container {
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 3rem;
}

.about__image {
    width: 350px;
    height: 350px;
    background-color: var(--surface-color);
    border-radius: 50%;
    border: 5px solid var(--border-color);
    /* Placeholder styling */
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: var(--text-color-muted);
}

.about__text p {
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}
.about__text .section__title {
    text-align: left;
}

/* ======== EXPERIENCE (TIMELINE) ======== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline__item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline__item:nth-child(even) {
    left: 50%;
}

.timeline__item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline__item:nth-child(even)::after {
    left: -8px;
}

.timeline__content {
    padding: 20px 30px;
    background-color: var(--surface-color);
    border-radius: 8px;
    position: relative;
}

.timeline__title { font-size: var(--h3-size); }
.timeline__company { font-weight: 600; color: var(--primary-color); margin: 0.5rem 0; }
.timeline__description { font-size: 0.9rem; color: var(--text-color-muted); }


/* ======== PROJECTS ======== */
.projects__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project__card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project__image {
    height: 200px;
    background-color: var(--border-color);
    /* Placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
}
.project__image::after {
    content: 'Project Image';
}

.project__content {
    padding: 1.5rem;
}

.project__title {
    font-size: var(--h3-size);
    margin-bottom: 0.5rem;
}

.project__description {
    color: var(--text-color-muted);
}

/* ======== CAPABILITIES ======== */
.capabilities__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.capability__category {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.capability__title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.skills__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.skill__tag {
    background-color: var(--border-color);
    color: var(--text-color-muted);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}


/* ======== CONTACT & FOOTER ======== */
.contact__socials {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.contact__socials a {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    transition: color 0.3s ease;
}
.contact__socials a:hover {
    color: var(--primary-color);
}

.footer {
    padding: 1rem 0;
    background-color: var(--surface-color);
    margin-top: var(--section-padding);
}
.footer p {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}


/* ======== ANIMATIONS ======== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ======== RESPONSIVE DESIGN ======== */
@media screen and (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__image {
        margin: 0 auto;
    }
    .about__text .section__title {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 1.75rem;
    }
    
    .nav__menu { /* Basic mobile menu structure placeholder */
        display: none; /* Hide for now; a real project would add a burger menu icon and JS toggle */
    }
    
    .timeline::after { left: 30px; }
    .timeline__item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline__item:nth-child(odd),
    .timeline__item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline__item::after {
        left: 23px;
    }
}

/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --bg-color: #0a0a14;
    --primary-glow-color: #00f6ff;
    --secondary-glow-color: #6a82fb;
    --text-color: #e0e0e0;
    --text-color-muted: #a0a0a0;
    --panel-bg-color: rgba(20, 20, 35, 0.6);
    --border-color: rgba(106, 130, 251, 0.3);
    --font-family: 'Poppins', sans-serif;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ======== HERO SECTION ======== */
.hero-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.boids-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ======== PANEL TOGGLE BUTTON ======== */
.panel-toggle-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: var(--panel-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}
.panel-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--secondary-glow-color);
}

/* ======== CONTROL PANEL ======== */
.control-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding: 80px 1.5rem 2rem 1.5rem;
    background-color: var(--panel-bg-color);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.control-panel.panel-open {
    transform: translateX(0);
}



.panel-title {
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-container span {
    font-weight: 600;
    color: var(--secondary-glow-color);
    min-width: 30px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-glow-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow-color);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-glow-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow-color);
}

.info-box { margin-top: auto; }
.info-btn {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background-color: var(--secondary-glow-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.info-btn:hover { background-color: #556ee6; transform: translateY(-2px); }

/* ======== HERO CONTENT ======== */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 5%;
    padding-left: calc(280px + 2rem); /* Account for control panel width */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.greeting {
    font-size: 1.2rem;
    color: var(--secondary-glow-color);
    animation: fadeIn 0.8s ease-out forwards;
}

.name {
    font-size: clamp(2.5rem, 6vw, 5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--text-color);
    margin: -0.5rem 0 0.5rem 0;
    animation: fadeIn 0.8s 0.2s ease-out forwards;
    opacity: 0;
}

.title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s 0.4s ease-out forwards;
    opacity: 0;
}

.description {
    max-width: 600px;
    font-size: 1rem;
    color: var(--text-color-muted);
    animation: fadeIn 0.8s 0.6s ease-out forwards;
    opacity: 0;
}

/* Text entrance animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======== RESPONSIVE DESIGN ======== */
@media screen and (max-width: 992px) {
    .hero-section {
        flex-direction: column;
    }
    .control-panel {
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    .panel-title {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    .info-box {
        display: none; /* Hide info box on smaller screens for simplicity */
    }
    .hero-content {
        text-align: center;
        align-items: center;
        padding: 2rem;
    }
}
@media screen and (max-width: 576px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
     }
    .panel-toggle-btn { top: 15px; left: 15px; width: 45px; height: 45px; }

}

/* ======== MODAL STYLES ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.modal-active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.modal-active .modal-content {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color-muted);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close-btn:hover { color: var(--primary-glow-color); }

.modal-content h2 { font-size: 2rem; text-align: center; color: var(--secondary-glow-color); }
.modal-intro { text-align: center; max-width: 700px; margin: 1rem auto 2.5rem auto; color: var(--text-color-muted); }

.rules-container { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.rule-card {
    background: var(--panel-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    text-align: center;
}
.rule-icon-wrapper {
    width: 60px; height: 60px; margin: 0 auto 1rem auto;
    background: rgba(122, 155, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
}
.rule-icon-wrapper svg { color: var(--secondary-glow-color); }
.rule-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-color); }
.rule-card p { font-size: 0.9rem; color: var(--text-color-muted); }


.CAPABILITIES-portfolio-container {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 1500px; 
    max-height: 95vh;
    overflow: hidden;
    transform: translateX(-160px); /* Elementi ortaladıktan sonra 100px daha sola çeker */
}

.CAPABILITIES-header {
    text-align: center;
    margin-bottom: 40px;
}

.CAPABILITIES-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.CAPABILITIES-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.CAPABILITIES-skill-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.CAPABILITIES-tree-level {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.CAPABILITIES-root-node {
    background: linear-gradient(135deg, #00f6ff, #4e5fb9);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 246, 255, 0.3);
    position: relative;
}

.CAPABILITIES-root-node::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: #a0a0a0;
}

.CAPABILITIES-level-1-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.CAPABILITIES-level-1-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 10.4%;
    right: 10.4%;
    height: 3px;
    background: #a0a0a0;
}

.CAPABILITIES-level-1-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.CAPABILITIES-level-1-group::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: #a0a0a0;
}

.CAPABILITIES-level-1-node {
    background: linear-gradient(135deg, #4e5fb9, #000000);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(78, 95, 185, 0.3);
    position: relative;
}

.CAPABILITIES-level-1-node::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: #a0a0a0;
}

.CAPABILITIES-level-2-skills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
}

.CAPABILITIES-skill-node {
    background: #e0e0e0;
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.CAPABILITIES-skill-node:hover {
    background: #00f6ff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 246, 255, 0.4);
}

.CAPABILITIES-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    background: #000000;
    color: #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 250px;
    white-space: normal;
    line-height: 1.3;
}

.CAPABILITIES-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #000000;
}

.CAPABILITIES-skill-node:hover .CAPABILITIES-tooltip {
    opacity: 1;
    visibility: visible;
}

.CAPABILITIES-proficiency {
    font-weight: 600;
    color: #00f6ff;
    margin-bottom: 4px;
}

.CAPABILITIES-expert { color: #00f6ff; }
.CAPABILITIES-proficient { color: #4e5fb9; }
.CAPABILITIES-familiar { color: #a0a0a0; }

@media (max-width: 768px) {
    .CAPABILITIES-portfolio-container {
        padding: 20px;
        max-height: 95vh;
    }
    
    .CAPABILITIES-header h1 {
        font-size: 2rem;
    }
    
    .CAPABILITIES-level-1-container {
        gap: 30px;
    }
    
    .CAPABILITIES-level-1-node {
        min-width: 160px;
        font-size: 1rem;
    }
    
    .CAPABILITIES-level-2-skills {
        max-width: 200px;
    }
}

/* Başlangıçta nav__logo'yu gizle ve geçiş efekti ekle */
.nav__logo {
    opacity: 0; /* Başlangıçta tamamen şeffaf (görünmez) */
    visibility: hidden; /* Odaklanmayı ve tıklamayı engellemek için */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; /* Geçiş süresi ve tipi */
}

/* JavaScript ile eklenecek 'visible' sınıfı ile görünür hale gelmesi */
.nav__logo.visible {
    opacity: 1; /* Tamamen görünür */
    visibility: visible; /* Tekrar görünür yap */
}

/* ======== PROJECTS SECTION ======== */

/* --- Ana Grid Konteyneri --- */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Kenar boşlukları */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 100px;
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* --- Proje Kartları --- */
.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none; /* a etiketinin alt çizgisini kaldır */
    display: flex;
    flex-direction: column;

    /* Geçişler (Transitions) */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.1); /* Yumuşak parlama efekti */
}

/* --- Kart Görseli --- */
.card-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10; /* Resim oranını sabitler */
    object-fit: cover;
    
    /* Başlangıçta hafif soluklaştırma */
    filter: saturate(0.8) brightness(0.9);
    transition: filter 0.3s ease;
}

.project-card:hover .card-image-wrapper img {
    filter: saturate(1) brightness(1); /* Hover'da normalleştir */
}

/* --- Kart İçeriği --- */
.card-content {
    padding: 24px;
    flex-grow: 1; /* Kart boylarını eşitler */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    flex-grow: 1; /* Açıklamayı esneterek etiketleri en alta iter */
}

/* --- Teknoloji Etiketleri --- */
.card-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags li {
    background-color: rgba(0, 246, 255, 0.1); /* Vurgu renginin çok şeffaf hali */
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
