/* --- DEĞİŞKENLER --- */
:root {
    --bg-color: #0f0f0f;
    --primary-color: #00bfff;
    --secondary-color: #1a1a1a;
    --text-color: #cccccc;
    --heading-color: #ffffff;
    --font-family: 'Inter', sans-serif;
    --card-bg: rgba(255, 255, 255, 0.03);
}

/* --- GENEL AYARLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- YÜKLEME EKRANI (LOADER) --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- HEADER & NAVİGASYON --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- ANA SAYFA (HERO) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--heading-color);
    margin: 20px 0;
}

.typed-text {
    color: var(--primary-color);
}

.cursor {
    display: inline-block;
    background-color: var(--primary-color);
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

/* --- HAKKIMDA --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text h3 span {
    color: var(--primary-color);
}

.info-list p {
    margin: 10px 0;
}

.info-list span {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.skills-chart .chart-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-chart .chart-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.2);
}

.chart-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* --- YETENEKLER --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.skill-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.3);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}

/* --- PORTFOLYO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 191, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: var(--bg-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overlay p {
    color: var(--bg-color);
    margin-bottom: 20px;
}

.overlay a {
    color: var(--bg-color);
    font-weight: 700;
    text-decoration: none;
}

/* --- İLETİŞİM --- */
.contact-content {
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 30px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 300px;
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateX(10px);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

footer i {
    color: var(--primary-color);
}

/* --- ANİMASYONLAR --- */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* --- RESPONSIVE (MOBİL UYUM) --- */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact-links {
        width: 100%;
    }
    .contact-link {
        width: 100%;
        max-width: 300px;
    }
}