/* ======================= */
/* VARIABLES & GLOBAL      */
/* ======================= */
:root {
    --bg-color: #101127;           
    --surface-color: #1c1d3a;      
    --primary-color: #f923a1;      
    --accent-purple: #a077ff;      
    --text-color: #d7d8f7;         
    --secondary-text-color: #8b8fc2;
    --border-color: #2a2c4b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 50px;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

section {
    padding: 80px 20px;
}

/* ======================= */
/* HERO SECTION            */
/* ======================= */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;   
}

#particles-js {
    position: absolute; 
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;        
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-color);
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    margin: 10px 0 30px;
}

.social-links a {
    color: var(--secondary-text-color);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ======================= */
/* FEATURED PROJECTS       */
/* ======================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(249, 35, 161, 0.1);
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-description {
    color: var(--secondary-text-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    background-color: rgba(249, 35, 161, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: rgba(249, 35, 161, 0.1);
}

.btn .fa-github, .btn .fa-youtube {
    font-size: 1.2em;
}


/* ======================= */
/* SKILLS                  */
/* ======================= */
#skills {
    background-color: var(--surface-color);
}
.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 15px;
    border: 1px solid var(--border-color);
}

th {
    background-color: #101127;
    font-size: 1.2rem;
    color: var(--accent-purple); /* Tablo başlıkları için mor vurgu */
}

/* ======================= */
/* OTHER PROJECTS          */
/* ======================= */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.other-project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--border-color);
}

.other-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.other-project-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.other-project-title {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
}

.other-project-item:hover .other-project-title {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ======================= */
/* ABOUT & FOOTER          */
/* ======================= */
#about {
    background-color: var(--bg-color);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
}
.about-container p {
    color: var(--secondary-text-color);
}


footer {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--surface-color);
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.email-link {
    display: inline-block;
    margin: 10px 0 30px;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.email-link:hover {
    background-color: rgba(249, 35, 161, 0.1);
}

.copyright {
    margin-top: 30px;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* ======================= */
/* FADE-IN ANIMATION       */
/* ======================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================= */
/* RESPONSIVENESS          */
/* ======================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero h3 { font-size: 1.2rem; }
    h2.section-title { font-size: 2rem; }
    section { padding: 60px 15px; }
}
