* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111;
    color: #f5f5f5;
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e50914;
    display: inline-block;
}

section {
    padding: 6rem 0;
}
section#home {
    padding: 0;
}

section .container {
    text-align: center;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #000;
    border-bottom: 1px solid #222;
}

.navbar {
    width: 90%;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f5f5f5;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease-out;
}

.logo::before,
.logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    opacity: 0;
}

.logo::before {
    color: #e50914;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.logo::after {
    color: #f5f5f5;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.logo:hover::before,
.logo:hover::after {
    opacity: 1;
}
.logo:hover {
    color: #e50914;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #e50914;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: #f5f5f5;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.scramble-wrapper {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
    min-height: 2.2rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

#scramble-text {
    color: #e50914;
}

/* YENİ: Ana buton kapsayıcısı tekrar yatay oldu */
.hero-buttons {
    display: flex;
    justify-content: center; /* Buton grubunu yatayda ortala */
    align-items: center; /* Dikeyde hizala (önemli değil ama iyi olur) */
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap; /* Küçük ekranda alt satıra geç */
}

/* YENİ: İç satır div'i kaldırıldığı için bu kurala gerek kalmadı */
/* .hero-buttons-row {...} */

.cta-button {
    display: inline-block;
    background-color: #e50914;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    border: 2px solid #e50914;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #f60c18;
    border-color: #f60c18;
    transform: scale(1.05);
}

.cta-button.secondary {
    /* YENİ: display:block ve margin:auto kaldırıldı */
    background-color: transparent;
    color: #e50914;
}

.cta-button.secondary:hover {
    background-color: #e50914;
    color: #fff;
    transform: scale(1.05);
}

.about {
    background-color: #1a1a1a;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-top: 2rem;
    gap: 2rem;
}

.about-text {
    flex-basis: 60%;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.skills-list {
    flex-basis: 35%;
}

.skills-list h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.skills-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.skills-list li {
    background-color: #333;
    color: #f5f5f5;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.skills-list li:hover {
    background-color: #e50914;
    border-color: #f60c18;
    color: #fff;
}

.projects {
    background-color: #111;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.project-card {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
}

.project-card h3 {
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.project-tech li {
    background-color: #e50914;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.timeline-section {
    background-color: #1a1a1a;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8.5px;
    background-color: #1a1a1a;
    border: 3px solid #e50914;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -6.5px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #222;
    position: relative;
    border-radius: 6px;
    border: 1px solid #333;
    text-align: left;
    transition: border-color 0.3s ease;
}
.timeline-item.show .timeline-content {
    border-color: #e50914;
}


.timeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.timeline-content .company {
    font-size: 1.1rem;
    color: #ccc;
    display: block;
    margin-bottom: 0.3rem;
    font-style: italic;
}
.timeline-content .date {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 1rem;
}
.timeline-content p {
    font-size: 1rem;
    color: #ccc;
}

.contact {
    background-color: #111;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
    text-align: left;
}

.contact-info {
    flex-basis: 40%;
}

.contact-info h3 {
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1rem;
}
.contact-info p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    color: #ccc;
}
.contact-info li {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}
.contact-info li i {
    color: #e50914;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.contact-info li strong {
    color: #f5f5f5;
    margin-right: 0.5rem;
}

.contact-info li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.contact-info li a:hover {
    color: #e50914;
    text-decoration: underline;
}

.contact-form {
    flex-basis: 55%;
}
.contact-form h3 {
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
    color: #f5f5f5;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e50914;
}

.form-button {
    display: inline-block;
    background-color: #e50914;
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-button:hover {
    background-color: #f60c18;
    transform: scale(1.05);
}

footer {
    background-color: #000;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: auto;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

.hidden {
    opacity: 0;
}

.show {
    opacity: 1;
}

.animate-fade-in {
    filter: blur(5px);
    transform: translateY(50px);
    transition: all 0.7s ease-out;
}
.animate-fade-in.show {
    filter: blur(0);
    transform: translateY(0);
}

.animate-slide-left {
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}
.animate-slide-left.show {
    transform: translateX(0);
}

.animate-slide-right {
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}
.animate-slide-right.show {
    transform: translateX(0);
}

.projects-grid .project-card:nth-child(2) {
    transition-delay: 200ms;
}
.projects-grid .project-card:nth-child(3) {
    transition-delay: 400ms;
}
.projects-grid .project-card:nth-child(4) {
    transition-delay: 600ms;
}

.timeline .timeline-item:nth-child(2) { transition-delay: 100ms; }
.timeline .timeline-item:nth-child(3) { transition-delay: 200ms; }
.timeline .timeline-item:nth-child(4) { transition-delay: 300ms; }
.timeline .timeline-item:nth-child(5) { transition-delay: 400ms; }
.timeline .timeline-item:nth-child(6) { transition-delay: 500ms; }


@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .section-title {
        font-size: 2rem;
    }
    section {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .hero-buttons {
        gap: 0.5rem;
    }
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
    }
    .about-text, .skills-list {
        flex-basis: 100%;
    }
    .skills-list {
        margin-top: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card:nth-child(2),
    .projects-grid .project-card:nth-child(3),
    .projects-grid .project-card:nth-child(4) {
        transition-delay: 0s;
    }

    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 15px;
    }
    .timeline .timeline-item:nth-child(n) {
        transition-delay: 0s !important;
    }

    .contact-content {
        flex-direction: column;
    }
    .contact-info, .contact-form {
        flex-basis: 100%;
    }

    .animate-slide-left,
    .animate-slide-right {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.7s ease-out;
    }
    .animate-slide-left.show,
    .animate-slide-right.show {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .contact-info li {
        font-size: 1rem;
    }
    .scramble-wrapper {
        font-size: 1.2rem;
        min-height: 1.8rem;
    }
}

@keyframes glitch-anim-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(3px, 3px); }
  100% { transform: translate(0); }
}

@keyframes glitch-anim-2 {
  0% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(-3px, 3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(-3px, -3px); }
  100% { transform: translate(0); }
}