:root {
    --primary-color: #0a0a0a; /* Koyu siyah arka plan */
    --secondary-color: #1a1a1a; /* Biraz daha açık siyah */
    --accent-color: #ffd700; /* Altın sarısı */
    --text-color: #ffffff; /* Beyaz metin */
    --text-secondary: #cccccc; /* Açık gri metin */
    --hover-color: #ffeb3b; /* Hover için daha parlak sarı */
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Stilleri */
header {
    position: fixed;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Büyük logo için başlangıç stili */
header.top {
    padding: 2rem;
}

header.top .logo {
    font-size: 32px;
}

/* Scroll edildiğinde küçük logo */
header.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

header.scrolled .logo {
    font-size: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

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

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

.nav-links a:hover {
    color: var(--accent-color);
}

/* Animasyonlu Başlık Stilleri */
.animated-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-wrapper {
    position: relative;
    display: inline-block;
    padding: 0.2em 0.5em;
    overflow: hidden;
}

.letters {
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    transform-origin: center;
    animation: fadeInScale 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.letters span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotate(20deg);
    animation: rollIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    letter-spacing: -1px;
}

.line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 235, 0, 0.8),
        transparent
    );
    transform: scaleX(0);
    transform-origin: left;
    animation: expandLine 1s ease forwards 1s, glowLine 2s ease-in-out infinite;
    box-shadow: 
        0 0 10px rgba(255, 235, 0, 0.5),
        0 0 20px rgba(255, 235, 0, 0.3);
}

@keyframes rollIn {
    0% {
        opacity: 0;
        transform: translateY(100%) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes glowLine {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-color);
    }
}

/* Her harf için ayrı animasyon gecikmesi */
.letters span:nth-child(1) { animation-delay: 0.1s; }
.letters span:nth-child(2) { animation-delay: 0.2s; }
.letters span:nth-child(3) { animation-delay: 0.3s; }
.letters span:nth-child(4) { animation-delay: 0.4s; }
.letters span:nth-child(5) { animation-delay: 0.5s; }
.letters span:nth-child(6) { animation-delay: 0.6s; }
.letters span:nth-child(7) { animation-delay: 0.7s; }
.letters span:nth-child(8) { animation-delay: 0.8s; }
.letters span:nth-child(9) { animation-delay: 0.9s; }
.letters span:nth-child(10) { animation-delay: 1s; }
.letters span:nth-child(11) { animation-delay: 1.1s; }
.letters span:nth-child(12) { animation-delay: 1.2s; }
.letters span:nth-child(13) { animation-delay: 1.3s; }

/* Boşluk karakteri için özel stil */
.letters span:nth-child(5) {
    margin: 0 0.2em;
}

/* Mevcut hero stillerini güncelle */
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 235, 0, 0.5),
        0 0 40px rgba(255, 165, 0, 0.3);
}

/* Hero Bölümü güncellenmiş stiller */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a; /* Daha koyu siyah */
    overflow: hidden;
}

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

/* Hexagon grid arka plan */
.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background-image: 
        linear-gradient(
            30deg,
            rgba(255, 235, 0, 0.2) 12%, /* Daha parlak sarı */
            transparent 12.5%,
            transparent 87%,
            rgba(255, 235, 0, 0.2) 87.5%,
            rgba(255, 235, 0, 0.2)
        );
    background-size: 50px 90px;
    opacity: 0.15;
    animation: moveGrid 20s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 235, 0, 0.3)); /* Neon efekti */
}

/* Parlayan ışık efekti */
.particles-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 235, 0, 0.4) 0%, /* Daha parlak merkez */
        rgba(255, 165, 0, 0.2) 30%, /* Turuncu tonu */
        transparent 60%
    );
    opacity: 0.15;
    animation: pulseLight 4s ease-in-out infinite;
    mix-blend-mode: screen; /* Işık efekti için */
}

/* Ek parlama efekti */
.particles-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at 30% 20%,
            rgba(255, 235, 0, 0.2) 0%,
            transparent 25%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(255, 165, 0, 0.2) 0%,
            transparent 25%
        );
    animation: shimmerEffect 8s ease-in-out infinite alternate;
}

@keyframes moveGrid {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(10deg);
    }
}

@keyframes pulseLight {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

@keyframes shimmerEffect {
    0% {
        opacity: 0.1;
        transform: translate(-5%, -5%);
    }
    100% {
        opacity: 0.3;
        transform: translate(5%, 5%);
    }
}

/* Hero content güncelleme */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--hover-color);
}

/* Portfolyo Kartları - Carousel kapsayıcı */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel::before,
.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(10,10,10,0) 100%);
}

.carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--primary-color) 0%, rgba(10,10,10,0) 100%);
}

.portfolio-grid {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
}

.portfolio-grid::-webkit-scrollbar { display: none; }

.portfolio-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* Kart stili */
.portfolio-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.1);
    min-width: 320px;
    max-width: 360px;
    scroll-snap-align: start;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--scale, 0.96));
}

/* (Eski kart stili korunuyor; artık kullanılmıyor) */

.portfolio-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.portfolio-card.is-active {
    --scale: 1.02;
    border-color: rgba(255, 235, 59, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 235, 59, 0.08) inset;
}

.card-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-preview {
    position: relative;
    overflow: hidden;
}

.card-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 235, 59, 0.12), rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-card:hover .card-preview::after {
    opacity: 1;
}

.portfolio-card:hover .card-preview img {
    transform: scale(1.06);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--hover-color);
}

/* Carousel ok butonları */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(26, 26, 26, 0.7);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: blur(0.5px);
}

/* Hakkımda Bölümü */
.about-content {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Floating animasyonu */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.about-text {
    flex: 1.5;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
    text-align: left;
}

.skill-name {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 1s ease;
}

/* İletişim Formu */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 5px;
    color: var(--text-color);
}

.submit-button {
    background-color: var(--accent-color);
    color: #000000;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--hover-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--hover-color);
}

/* Genel Bölüm Stilleri */
section {
    padding: 5rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .portfolio-card {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .portfolio-card {
        min-width: 260px;
    }

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

    .about-image {
        margin-bottom: 2rem;
    }

    .about-image img {
        max-width: 300px;
    }

    .skills-container {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 16px;
        margin: 0 0.5rem;
    }
    
    nav {
        padding: 0 0.5rem;
    }

    header {
        padding: 0.5rem;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 0.5rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        margin-right: 0.5rem;
    }

    .nav-links a {
        font-size: 14px;
        padding: 0.25rem 0.5rem;
    }

    header.top {
        padding: 0.75rem;
    }

    header.top .logo {
        font-size: 18px;
    }

    header.scrolled {
        padding: 0.5rem;
    }

    header.scrolled .logo {
        font-size: 16px;
    }
}

/* Logo stilleri güncelleme */
.logo {
    font-size: 24px;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: left;
    margin-left: 2rem;
    padding: 0;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Responsive Styles */
@media screen and (max-width: 415px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}