/* --- GENEL AYARLAR --- */
html {
    scroll-behavior: smooth;
}

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

body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

/* --- HEADER & NAV --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid #1a1a1a;
}

.nav-left {
    width: 30%;
    display: flex;
    gap: 25px;
}

.nav-text {
    text-decoration: none;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-text:hover {
    color: #fff;
}

.nav-center {
    width: 40%;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.nav-center h1 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.logo-text {
    transition: opacity 0.3s ease;
}

.logo-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-center:hover .logo-text {
    opacity: 0;
}

.nav-center:hover .logo-svg {
    opacity: 1;
}

/* SOSYAL İKONLAR */
.nav-right {
    width: 30%;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    position: relative;
    z-index: 20;
}

.nav-right a {
    color: #bbb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-right a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero-section {
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 30px 40px 30px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    margin-top: 40px;
}

.greeting {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

/* HERO BAŞLIK & FONT */
.hero-title {
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
}

/* "Creative" Kelimesi için Özel Font */
.hero-title span {
    font-family: 'Playfair Display', serif;
    /* Farklı Font */
    font-style: italic;
    font-weight: 400;
    color: #fff;
}

/* TYPEWRITER EFFECT */
.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    border-right: 3px solid #fff;
    width: 0;
    max-width: fit-content;
    animation:
        typing 6s steps(20, end) infinite,
        blink-caret .75s step-end infinite;
    vertical-align: bottom;
}

/* The typing effect */
@keyframes typing {
    0% {
        width: 0
    }

    30% {
        width: 5.8em
    }

    /* Increased width to be safe */
    60% {
        width: 5.8em
    }

    /* Wait */
    90% {
        width: 0
    }

    /* Delete */
    100% {
        width: 0
    }

    /* Wait */
}

/* The typewriter cursor effect */
@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #fff;
    }
}

/* BIO & BUTTON */
.hero-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #aaa;
    max-width: 450px;
    margin-bottom: 40px;
    border-left: 1px solid #444;
    padding-left: 20px;
}

.hire-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hire-btn:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* HERO IMG */
.hero-image {
    flex: 1;
    height: 750px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: 0.5s;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

.hero-image:hover img {
    transform: scale(1.02);
    filter: grayscale(0%) contrast(110%);
}

/* SEPARATOR */
.section-separator {
    padding: 20px 30px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* WORK GRID (Değişmedi - Özet) */
.portfolio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 10px;
    margin-bottom: 100px;
}

.project-card {
    background-color: transparent;
    aspect-ratio: 16 / 9;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0;
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background-color: #000;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid #222;
}

.back-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.back-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.15;
}

.back-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* VIEW PROJECT BUTTON (NEW) */
.view-project-btn {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 25px;
    margin: 10px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-project-btn:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.card-back h3 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.project-date {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
    border-top: 1px solid #333;
    padding-top: 5px;
}

/* VISUAL SEPARATOR */
.visual-separator {
    width: 100%;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.separator-image {
    width: 100%;
    height: 400px;
}

.separator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.separator-image:hover img {
    filter: grayscale(0%);
}

/* --- CONTACT FORM SECTION --- */
footer {
    padding: 100px 30px;
    background-color: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 50px;
    cursor: default;
}

/* AKSİYON BUTONLARI */
.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.email-btn-large {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.email-btn-large:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.email-btn-large svg {
    transition: transform 0.3s ease;
}

.email-btn-large:hover svg {
    transform: translate(5px, -5px);
}

.footer-socials {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.footer-socials a {
    color: #888;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 50%;
}

.footer-socials a:hover {
    color: #fff;
    border-color: #333;
    transform: translateY(-3px);
    background-color: #111;
}

.footer-links {
    margin-top: 60px;
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #444;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-left,
    .nav-right,
    .nav-center {
        width: 100%;
        justify-content: center;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-bio {
        margin: 0 auto 30px auto;
        border: none;
    }

    .hero-image {
        width: 100%;
        height: 350px;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .separator-image {
        height: auto;
        padding: 20px 0;
    }

    .separator-image img {
        height: 160px;
        object-fit: cover;
        width: 100%;
    }
}