/* ======================================================= */
/* ===              PORTFOLYO SİTESİ CSS               === */
/* ===         TEMİZ VE OPTİMİZE EDİLMİŞ SÜRÜM         === */
/* ======================================================= */

/* FONT VE TEMEL AYARLAR */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #5ea8d3;
    --background-color: #111;
    --box-bg-color: #1a1a1a;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --border-color: #555;
    --app-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
}

/* ======================================================= */
/* ===                 TEMEL YAPILAR                   === */
/* ======================================================= */

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.fullscreen-section {
    height: var(--app-height);
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px;
    z-index: 1;
    isolation: isolate;
}

.container {
    max-width: 1100px;
    width: 100%;
    padding: 0 40px;
}

/* ======================================================= */
/* ===                GENEL ELEMANLAR                  === */
/* ======================================================= */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--text-color);
    transform: scale(1.05);
}

.dot {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

/* ======================================================= */
/* ===                SABİT ELEMANLAR                  === */
/* ======================================================= */

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 80px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 5px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

#hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* SOSYAL MEDYA İKONLARI */
.social-icons {
    position: fixed;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 100;
}

.social-icons::before,
.social-icons::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: var(--border-color);
}

.social-icons::before {
    height: 100px;
    bottom: 100%;
    margin-bottom: 30px;
}

.social-icons::after {
    height: 100px;
    top: 100%;
    margin-top: 30px;
}

.social-icons a i {
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-icons a:hover i {
    color: var(--primary-color);
}

/* GENEL BÖLÜM AYARLARI */
#anasayfa {
    z-index: 6;
}

#hakkimda {
    z-index: 5;
}

#portfolyo {
    z-index: 4;
}

#is-tecrubeleri {
    z-index: 3;
}

#ne-dediler {
    z-index: 2;
}

#iletisim {
    z-index: 1;
}

#anasayfa {
    justify-content: flex-start;
    padding-left: 150px;
}

.hero-content-left {
    text-align: left;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.typing-headline {
    font-size: 48px;
    font-weight: 600;
    height: 60px;
    display: flex;
    align-items: center;
}

.typing-container {
    color: var(--primary-color);
    padding-left: 10px;
}

.cursor {
    display: inline-block;
    font-weight: 300;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-email {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    color: #888;
    transition: color 0.3s;
}

.hero-email:hover {
    color: var(--primary-color);
}

/* ======================================================= */
/* ===                 HAKKIMDA                        === */
/* ======================================================= */

#hakkimda {
    background-color: var(--background-color);
    z-index: 5;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-left {
    flex-basis: 30%;
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.about-left::before,
.about-left::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: #444;
    border-style: solid;
}

.about-left::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.about-left::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.experience-year {
    font-size: 150px;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    margin-top: 10px;
}

.experience-text::before {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--border-color);
    margin: 20px auto;
}

.experience-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

.about-right {
    flex-basis: 70%;
}

.about-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 40px;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 14px;
}

.skill-percentage {
    color: var(--text-light);
    font-size: 13px;
}

.progress-bar {
    width: 100%;
    height: 7px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* ======================================================= */
/* ===                 PORTFOLYO                       === */
/* ======================================================= */

#portfolyo {
    background-color: var(--background-color);
    z-index: 4;
}

#portfolyo .portfolio-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
}

#portfolyo .image-slider-box {
    flex: 1;
    height: 500px;
    background-color: var(--box-bg-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.portfolio-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.8s ease;
}

.portfolio-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image-container.current {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.portfolio-image-container.outgoing {
    transform: translateX(-100%);
    z-index: 1;
}

#portfolyo .slider-arrow-next {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
}

#portfolyo .slider-arrow-next:hover {
    background-color: var(--primary-color);
}

#portfolyo .text-info-box {
    flex: 1;
    padding: 40px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-align: left;
}

#portfolyo .text-info-box h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

#portfolyo .text-info-box p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ======================================================= */
/* ===              İŞ TECRÜBELERİM                    === */
/* ======================================================= */

#is-tecrubeleri {
    background-color: var(--box-bg-color);
    align-items: flex-start;
    padding-top: 150px;
    z-index: 3;
}

#is-tecrubeleri .section-title {
    text-align: left;
    margin-bottom: 60px;
}

.experience-list {
    width: 100%;
}

.experience-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #444;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-icon {
    flex: 0 0 100px;
    justify-content: center;
}

.experience-logo {
    max-width: 80px;
    height: auto;
}

.experience-details {
    flex: 0 0 300px;
    text-align: left;
}

.experience-details .year {
    font-size: 14px;
    color: #888;
}

.experience-details .company {
    font-size: 22px;
    font-weight: 600;
}

.experience-description {
    flex: 1;
    text-align: left;
}

.experience-description p {
    color: var(--text-light);
    font-size: 15px;
}

/* ======================================================= */
/* ===                REFERANSLAR                      === */
/* ======================================================= */

#ne-dediler {
    background-color: var(--background-color);
    z-index: 2;
}

.testimonial-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    height: 100%;
    width: 100%;
}

.testimonial-intro {
    flex-basis: 40%;
    text-align: left;
}

.testimonial-intro h2 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.4;
}

.testimonial-slider {
    flex-basis: 60%;
    position: relative;
    padding-left: 80px;
    min-height: 400px;
}

.testimonial-slider::before {
    content: '\201C';
    font-family: serif;
    position: absolute;
    top: -50px;
    left: 0;
    font-size: 150px;
    color: var(--primary-color);
    z-index: 2;
}

.slider-content {
    position: relative;
    width: 100%;
    min-height: 300px;
    padding-bottom: 100px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
    text-align: center;
    z-index: 2;
}

.testimonial-slide.active-slide {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid #555;
    background-color: var(--background-color);
    color: #fff;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.nav-arrow:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--background-color);
}

.testimonial-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
    border: none;
    padding: 0;
    text-align: left;
}

.testimonial-author {
    text-align: left;
}

.testimonial-author .name {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.testimonial-author .title {
    font-size: 14px;
    color: #aaaaaa;
}

/* ======================================================= */
/* ===                 İLETİŞİM                        === */
/* ======================================================= */

#iletisim {
    background-color: var(--box-bg-color);
    z-index: 1;
    position: relative;
}

.contact-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 100px;
    width: 100%;
    height: 100%;
    padding-top: 50px;
}

.contact-info {
    flex-basis: 45%;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: auto;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-description {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    max-width: 350px;
    margin-bottom: 60px;
}

.contact-details p {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-email {
    margin-top: 40px;
    text-align: left;
    padding: 20px 0;
    text-decoration: none;
    color: #888;
    font-size: 14px;
    transition: color 0.3s;
}

.contact-email:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    flex-basis: 55%;
    text-align: left;
    height: auto;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 35px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 10px 0;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ======================================================= */
/* ===              RESPONSIVE DESIGN                  === */
/* ======================================================= */

/* TABLET (992px ve altı) */
@media (max-width: 992px) {
    .scroll-container {
        scroll-snap-type: none;
    }

    .fullscreen-section,
    header {
        padding-left: 40px;
        padding-right: 40px;
    }

    .social-icons {
        left: 20px;
    }

    header nav ul {
        display: none;
    }

    #hamburger-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .about-content,
    .testimonial-wrapper,
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .testimonial-intro,
    .testimonial-slider,
    .contact-info,
    .contact-form-wrapper {
        flex-basis: 100%;
        text-align: center;
    }

    .testimonial-author,
    .slider-nav {
        justify-content: center;
    }

    .contact-info h2,
    .contact-email,
    #is-tecrubeleri .section-title {
        text-align: center;
    }

    #is-tecrubeleri {
        height: auto;
        min-height: 100vh;
    }

    .experience-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 40px 0;
    }
}

/* MOBİL (768px ve altı) */
@media (max-width: 768px) {
    .fullscreen-section,
    header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .social-icons {
        display: none;
    }

    /* MOBİL MENÜ */
    header nav.mobile-nav-open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    header nav.mobile-nav-open ul {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    header nav.mobile-nav-open ul li {
        margin: 0;
    }

    header nav.mobile-nav-open ul li a {
        font-size: 24px;
    }

    #hamburger-menu.active i::before {
        content: '\f00d';
    }

    /* ANA SAYFA */
    #anasayfa {
        justify-content: center;
        text-align: center;
        padding-left: 20px;
    }

    .hero-content-left {
        text-align: center;
    }

    .typing-headline {
        justify-content: center;
        font-size: 38px;
        height: auto;
        min-height: 90px;
        flex-wrap: wrap;
    }

    /* PORTFOLYO */
    #portfolyo .portfolio-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 40px !important;
        width: 100% !important;
    }

    #portfolyo .image-slider-box {
        display: block !important;
        flex: none !important;
        width: 90% !important;
        max-width: 350px !important;
        height: 350px !important;
    }

    #portfolyo .text-info-box {
        display: block !important;
        flex: none !important;
        width: 90% !important;
        max-width: 350px !important;
        padding: 30px !important;
        border: 1px solid #444 !important;
        border-radius: 15px !important;
        text-align: center !important;
        background-color: #1c1c1c !important;
    }

    #portfolyo .text-info-box h1 {
        font-size: 28px !important;
    }

    /* İŞ TECRÜBELERİ */
    #is-tecrubeleri {
        padding-top: 80px;
    }

    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 0;
    }

    .experience-icon {
        flex: none;
        margin-bottom: 10px;
    }

    .experience-details {
        flex: none;
        text-align: left;
    }

    .experience-details .company {
        font-size: 18px;
    }

    .experience-description p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* REFERANSLAR */
    .testimonial-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .testimonial-intro {
        flex-basis: 100%;
        text-align: center;
    }

    .testimonial-intro h2 {
        font-size: 28px;
    }

    .testimonial-slider {
        flex-basis: 100%;
        padding-left: 0;
    }

    .testimonial-slider::before {
        display: none;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .testimonial-author {
        text-align: center;
    }

    .slider-nav {
        margin-top: 30px;
        justify-content: center;
    }

    /* İLETİŞİM */
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .contact-info,
    .contact-form-wrapper {
        flex-basis: 100%;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 32px;
    }

    .contact-description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .contact-details p {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .contact-email {
        font-size: 13px;
        margin-top: 20px;
    }

    .contact-form-wrapper h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
}
/* ======================================================= */
/* ===         POP-UP (FİNAL VERSİYON - TÜM CİHAZLAR)  === */
/* ======================================================= */

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    background-color: #1c1c1c;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    /* MASAÜSTÜ İÇİN SENİN İSTEDİĞİN BOYUT */
    max-width: 600px;
    width: 90%; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #111;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MOBİL İÇİN KÜÇÜLTME */
@media (max-width: 868px) {
    .popup-content {
        width: 95%;
        /* Maksimum genişliği de sınırla */
        max-width: 580px;
    }
}