/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d4ace;
    --secondary-color: #0e7bd4;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --accent-glow: #399ed8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animasyonlu Arka Plan Parçacıkları */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-50px) translateX(-50px);
    }
    75% {
        transform: translateY(-150px) translateX(100px);
    }
}

/* Header ve Navigasyon */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--primary-color));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--secondary-color));
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-glow);
    transform: translateY(-2px);
}

/* Ana Bölüm */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #075cbd, var(--accent-glow), #0441b3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #0746ce, var(--accent-glow), #0851be);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Bölümler */
section {
    min-height: 100vh;
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

#about {
    min-height: auto;
    padding-bottom: 8rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

/* Projeler Bölümü */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.2);
    /* Kartın kendisine z-index vermiyoruz ki içindekiler üste çıkabilsin */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1; /* Efekt altta kalsın */
    pointer-events: none; /* Bu katman tıklamaları engellemesin */
}

.project-content {
    padding: 2rem;
    position: relative; 
    z-index: 10; /* Yazıları ve linkleri efektin üzerine çıkardık */
}


.links-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 20;
}

.project-link {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white !important; /* Rengin görünür olduğundan emin olalım */
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer !important; /* Tıklama imlecini zorla */
    position: relative;
    z-index: 30;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    opacity: 0.9;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}


.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}




.links_container {
    display: flex;
    gap: 1rem;
}




/* Hakkımda Bölümü */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    animation: fadeInUp 0.8s ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-glow);
}
.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-glow);
}

.about-content h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-glow);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 2rem;
}

.about-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero_content h2 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Scroll Animasyonları */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Hakkımda içeriği için özel kural */
#about .about-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#about .about-content.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hamburger Menü (Mobil) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
}
