/* style.css --- START OF FILE */
:root {
    --main-theme-color: #ff3c28; 
    --dark-grey: #2c3e50;
    --light-grey: #f4f4f4;
    --text-color: #333;
    --special-font: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
}
#matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
    filter: brightness(0.7);
}
.panel-toggle { display: none; }

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

/* ======================================================= */
/* --- MASAÜSTÜ DÜZENİ (VARSAYILAN) --- */
/* ======================================================= */
body {
    overflow: hidden;
}
#main-hero {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100vh;
    transition: width 0.5s ease-in-out, left 0.5s ease-in-out;
    display: flex; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    color: white;
}

.slide-panel {
    height: 100vh;
    width: 50%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(244, 244, 244, 0.45);
    backdrop-filter: blur(15px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.5s;
}

#close-arrow-container {
    position: fixed; top: 50%; left: 50%; 
    transform: translate(-50%, -50%) scale(0);
    width: 50px; height: 50px;
    background-color: white; color: var(--dark-grey);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; cursor: pointer; z-index: 1001;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden;
    transition: transform 0.4s ease-in-out, opacity 0.3s ease, visibility 0s 0.4s;
}

#hakkimda-toggle:checked ~ #main-hero,
#ozgecmis-toggle:checked ~ #main-hero { 
    width: 50%;
    left: 50%;
}

#hakkimda-toggle:checked ~ #close-arrow-container,
#ozgecmis-toggle:checked ~ #close-arrow-container {
    opacity: 1; visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.1s;
}

#hakkimda-toggle:checked ~ #hakkimda-panel,
#ozgecmis-toggle:checked ~ #ozgecmis-panel {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out 0.2s, visibility 0s 0s;
}

.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.page-nav, .profile-pic, .hero-content h1, .hero-content p, .social-icons {
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
}

.page-nav { margin-bottom: 40px; animation-delay: 0.2s; }
.profile-pic { animation-delay: 0.4s; }
.hero-content h1 { animation-delay: 0.6s; }
.hero-content p { animation-delay: 0.8s; }
.social-icons { animation-delay: 1s; }

.page-nav-btn { color: white; text-decoration: none; font-family: var(--special-font); font-size: 1.1rem; padding: 10px 20px; margin: 0 10px; border: 1px solid white; border-radius: 5px; transition: background-color 0.3s, color 0.3s; font-weight: bold; cursor: pointer; }

/* Sadece fare ile üzerine gelinebilen cihazlarda hover efektini uygula */
@media (hover: hover) and (pointer: fine) {
    .page-nav-btn:hover {
        background-color: white;
        color: var(--dark-grey);
    }
}

/* Dokunma/tıklama anında anlık geri bildirim efekti (Mobil için) */
.page-nav-btn:active {
    background-color: white; /* İçi beyaz olsun */
    color: var(--dark-grey); /* Yazı rengi koyu olsun */
    transform: scale(0.97); /* Butona basılma hissi için hafif küçültme */
    transition: transform 0.1s; /* Animasyonu yumuşatmak için */
}

.profile-pic { width: 225px; height: 225px; border-radius: 50%; border: 5px solid white; margin-bottom: 20px; object-fit: cover; }
.hero-content h1 { font-family: 'Georgia', serif; font-size: 2.5rem; font-weight: normal; display: flex; align-items: center; justify-content: center; }
.hero-content h1 .line { height: 1px; width: 50px; background-color: white; margin: 0 20px; }
.hero-content p { font-size: 1.2rem; margin-top: 10px; }
.social-icons { margin-top: 25px; }
.social-icons a { color: white; font-size: 1.5rem; margin: 0 15px; text-decoration: none; }
.section-title { font-family: var(--special-font); text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-weight: bold; color: var(--dark-grey); }
.panel-content { padding: 60px 40px; }
.about-content { display: flex; flex-direction: column; gap: 30px; text-align: left; }
.about-info { display: flex; flex-direction: row; flex-wrap: wrap; gap: 20px; }
.info-box { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; flex-grow: 1; }
.info-box:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.timeline-title { text-align: center; margin-bottom: 50px; }
.timeline-title span { font-family: var(--special-font); background-color: var(--dark-grey); color: white; padding: 10px 20px; font-weight: bold; border-radius: 5px; letter-spacing: 1px; }
.timeline { position: relative; max-width: 100%; margin: 0 auto; padding: 20px 0; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: #ccc; top: 0; bottom: 0; left: 30px; margin-left: -1.5px; }
.timeline-item { padding: 10px 0 30px 70px; position: relative; width: 100%; }
.timeline-item:last-child { padding-bottom: 10px; }
.timeline-item::after { content: ''; position: absolute; width: 18px; height: 18px; left: 21px; background-color: var(--light-grey); border: 4px solid var(--dark-grey); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-content { padding: 20px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; word-wrap: break-word; }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.timeline-content::before { content: " "; height: 0; position: absolute; top: 17px; width: 0; z-index: 1; left: -10px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; }
.timeline-content h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark-grey); }
.timeline-content .timeline-meta { font-size: 0.9rem; color: #777; margin-bottom: 10px; font-style: italic; }

/* ======================================================= */
/* --- MOBİL DÜZENİ (992px ALTI) --- */
/* ======================================================= */
@media (max-width: 992px) {
    /* DEĞİŞİKLİK: Mobil için yeni arkaplan stili */
    body { 
        overflow: auto; 
        display: flex; 
        flex-direction: column; 
        /* Kırmızı geçişli ve resimli yeni arkaplan */
        background-image: 
            radial-gradient(ellipse at center, rgba(255, 60, 40, 0.2), transparent 70%),
            linear-gradient(to bottom, rgba(15, 15, 15, 0.8), rgba(0, 0, 0, 0.95)),
            url('arkaplan.jpeg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed; /* Arkaplanın kaydırıldığında sabit kalmasını sağlar */
        background-repeat: no-repeat;
    }

    #matrix-background {
        display: none;
    }

    #main-hero { order: 1; position: relative; width: 100% !important; left: 0 !important; min-height: 100vh; }
    #hakkimda-panel { order: 2; } 
    #ozgecmis-panel { order: 3; }
    .slide-panel { 
        position: relative; 
        width: auto !important; 
        height: auto; 
        margin: -40px 20px 70px 20px; 
        border-radius: 15px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
        background-color: rgba(244, 244, 244, 0.97); 
        padding: 40px 0; 
        overflow: hidden; 
        backdrop-filter: none; 
        transform: none;
        opacity: 1; 
        visibility: visible; 
    }
    
    .scroll-section {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .scroll-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    #close-arrow-container { display: none !important; }
    .panel-content { padding: 15px 25px 30px 25px; }
    .about-info { flex-direction: column; }
    .timeline { padding: 20px 10px 0 0; }
    .timeline::after { left: 20px; }
    .timeline-item { padding: 10px 0 30px 50px; }
    .timeline-item::after { left: 11px; }
}

/* ======================================================= */
/* --- GLITCH & FOTO EFEKTİ (SADECE MASAÜSTÜ) --- */
/* ======================================================= */

/* DEĞİŞİKLİK: Tüm glitch efekt stilleri sadece 993px ve üzeri ekranlarda geçerli olacak */
@media (min-width: 993px) {

    .glitch-effect {
        position: relative;
        animation: glitch-anim 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

    .glitch-effect::before,
    .glitch-effect::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: black;
        overflow: hidden;
        clip-path: inset(0);
    }

    .glitch-effect::before {
        left: -2px;
        text-shadow: 2px 0 red;
        animation: glitch-anim-before 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

    .glitch-effect::after {
        left: 2px;
        text-shadow: -2px 0 cyan;
        animation: glitch-anim-after 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

    @keyframes glitch-anim-before {
        0%, 10% { clip-path: inset(45% 0 50% 0); transform: translate(-0.5em, -0.025em); }
        15% { clip-path: inset(15% 0 75% 0); }
        20% { clip-path: inset(80% 0 10% 0); }
        25%, 45% { clip-path: inset(40% 0 42% 0); transform: translate(-0.5em, 0.025em); }
        50% { clip-path: inset(25% 0 60% 0); transform: translate(0.5em, -0.025em); }
        55%, 75% { clip-path: inset(0% 0 100% 0); transform: translate(0.25em, 0.025em); }
        80% { clip-path: inset(50% 0 50% 0); }
        85%, 100% { clip-path: inset(0); transform: translate(0, 0); }
    }

    @keyframes glitch-anim-after {
        0%, 10% { clip-path: inset(70% 0 25% 0); transform: translate(0.5em, 0.025em); }
        15% { clip-path: inset(80% 0 5% 0); }
        20% { clip-path: inset(20% 0 70% 0); }
        25%, 45% { clip-path: inset(60% 0 30% 0); transform: translate(0.5em, -0.015em); }
        50% { clip-path: inset(40% 0 45% 0); transform: translate(-0.5em, 0.015em); }
        55%, 75% { clip-path: inset(100% 0 0% 0); transform: translate(-0.25em, -0.015em); }
        80% { clip-path: inset(65% 0 30% 0); }
        85%, 100% { clip-path: inset(0); transform: translate(0, 0); }
    }

    @keyframes glitch-anim {
        0%, 85%, 100% { transform: translate(0, 0); }
        90% { transform: translate(-2px, 2px); }
        95% { transform: translate(2px, -2px); }
    }

    .profile-pic-container {
        width: 225px;
        height: 225px;
        border-radius: 50%;
        margin-bottom: 20px;
        position: relative;
        animation-delay: 0.4s;
    }

    .profile-pic-container.glitch-image-active .profile-pic {
        opacity: 0;
    }

    .profile-pic-container::before,
    .profile-pic-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-image: url('profil_fotografi.jpeg');
        background-size: cover;
        background-position: center;
        opacity: 0;
    }

    .profile-pic-container.glitch-image-active::before {
        opacity: 1;
        animation: glitch-image-anim-1 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
    .profile-pic-container.glitch-image-active::after {
        opacity: 1;
        animation: glitch-image-anim-2 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

    @keyframes glitch-image-anim-1 {
        0% { clip-path: inset(40% 0 60% 0); transform: translateX(-5px); }
        10% { clip-path: inset(10% 0 85% 0); }
        20% { clip-path: inset(80% 0 5% 0); transform: translateX(5px); }
        30% { clip-path: inset(5% 0 90% 0); }
        40% { clip-path: inset(60% 0 30% 0); transform: translateX(-5px); }
        50% { clip-path: inset(30% 0 70% 0); }
        60% { clip-path: inset(90% 0 5% 0); transform: translateX(5px); }
        70% { clip-path: inset(25% 0 50% 0); }
        80% { clip-path: inset(55% 0 35% 0); transform: translateX(-5px); }
        90% { clip-path: inset(0); }
        100% { transform: translateX(0); clip-path: inset(0); }
    }

    @keyframes glitch-image-anim-2 {
        0% { clip-path: inset(80% 0 10% 0); transform: translateX(5px); }
        10% { clip-path: inset(20% 0 75% 0); }
        20% { clip-path: inset(50% 0 45% 0); transform: translateX(-5px); }
        30% { clip-path: inset(95% 0 2% 0); }
        40% { clip-path: inset(15% 0 80% 0); transform: translateX(5px); }
        50% { clip-path: inset(75% 0 20% 0); }
        60% { clip-path: inset(5% 0 90% 0); transform: translateX(-5px); }
        70% { clip-path: inset(45% 0 40% 0); }
        80% { clip-path: inset(65% 0 25% 0); transform: translateX(5px); }
        90% { clip-path: inset(0); }
        100% { transform: translateX(0); clip-path: inset(0); }
    }
}