/* Global Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #2f2f41;
    --text-color: #2c3e50;
    --light-text: #888;
    --light-bg: #f9fafc;
    --dark-bg: #1f2937;
    --white: #ffffff;
    --max-width: 1200px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header yüksekliği kadar */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: all 0.3s ease;
}

header.scrolled .container {
    height: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: auto;
    max-width: 60%;
    transition: all 0.3s ease;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.logo-container a:hover {
    opacity: 0.9;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

header.scrolled .logo {
    font-size: 1.6rem;
}

/* Hamburger Menü */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 110;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

nav {
    position: relative;
}

.nav-menu {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--white);
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 1000px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
    line-height: 1.8;
    padding: 0 10px;
}

.about-text h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.language-list {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 20px;
}

.language-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.language-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-color);
}

.language-list li strong {
    margin-right: 5px;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 10px 0;
}

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 100%;
    position: relative;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.15);
    background-color: #fafbff;
    border-color: rgba(74, 108, 247, 0.1);
}

.project-card:hover .project-img img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.project-img {
    overflow: hidden;
    height: 200px;
    width: 100%;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: all 0.3s ease-in-out;
    display: block;
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.project-info h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.project-info p {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 60px;
}

.project-tags span {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease-in-out;
}

.project-card:hover .project-tags span {
    background-color: rgba(74, 108, 247, 0.15);
    transform: translateY(-1px);
}

.project-card:hover .project-info h3 {
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.project-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.project-links .btn {
    min-width: 150px;
    text-align: center;
    padding: 12px 24px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(74, 108, 247, 0.2);
}

.project-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(74, 108, 247, 0.3);
    background-color: #3955d8;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
    width: 100%;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    width: 100%;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-link p {
    margin: 0;
}

.contact-link-wrapper {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: var(--transition);
    margin-bottom: 30px;
}

.contact-link-wrapper:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-link-wrapper .contact-item {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 25px;
    text-align: center;
}

.contact-item p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(74, 108, 247, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tüm bölümler için scroll-margin ekliyorum */
section {
    scroll-margin-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    section {
        scroll-margin-top: 70px;
    }
    
    header .container {
        height: 70px;
    }
    
    header.scrolled .container {
        height: 50px;
    }
    
    header.scrolled .hamburger-menu {
        transform: scale(0.9);
    }
    
    .hamburger-menu {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .close-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 250px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        padding-top: 60px;
        z-index: 100;
    }
    
    nav.active {
        right: 0;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        padding-top: 20px;
    }
    
    .nav-menu li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 8px 15px;
        font-size: 1rem;
        border-radius: 4px;
        margin: 0 15px;
        transition: all 0.2s ease;
    }
    
    .nav-menu li a:hover {
        background-color: rgba(74, 108, 247, 0.1);
    }
    
    .nav-profile {
        width: 36px;
        height: 36px;
    }
    
    header.scrolled .nav-profile {
        width: 28px;
        height: 28px;
    }
    
    .logo {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    header.scrolled .logo {
        font-size: 1.3rem;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 90px 0 40px;
        align-items: flex-start;
    }
    
    .hero .container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .profile-image {
        margin: 0 auto 30px;
        width: 160px;
        height: 160px;
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        left: 0;
        right: 0;
    }
    
    .hero-text {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .project-card {
        height: 550px;
    }
    
    .project-img {
        height: 200px;
    }
    
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .cert-item {
        min-height: 120px;
    }
    
    .logo-container {
        max-width: 70%;
    }

    /* Contact section */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .contact-item {
        justify-content: flex-start;
        align-items: center;
    }
    
    .contact-item i {
        margin-right: 12px;
    }
    
    .contact-link-wrapper {
        margin-bottom: 20px;
    }
    
    .contact-form {
        width: 100%;
        max-width: 400px;
    }

    .language-list {
        padding-left: 5px;
    }
    
    .language-list li {
        padding-left: 20px;
        display: flex;
        align-items: center;
    }
    
    .language-list li::before {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .about-content, 
    .contact-container {
        flex-direction: column;
    }
    
    .logo-container {
        max-width: 80%;
    }
    
    nav {
        width: 55%;
        max-width: 200px;
    }
    
    .nav-menu li a {
        padding: 7px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-profile {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .logo-container {
        max-width: 85%;
    }
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-date {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 15px;
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--white);
}

.education-container {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.education-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.edu-date {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 15px;
}

.cert-title {
    text-align: center;
    margin: 40px 0 30px;
    color: var(--secondary-color);
}

.certificates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cert-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-date {
    font-style: italic;
    color: var(--light-text);
}

/* Profil resmi için stil */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.2);
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

/* Navbar profil resmi için stil */
.nav-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    margin-right: 10px;
    position: relative;
    z-index: 101;
    transition: all 0.3s ease;
}

header.scrolled .nav-profile {
    width: 32px;
    height: 32px;
}

.nav-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

/* Mobil menü overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Menü kapatma butonu */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: none;
}

.close-menu::before,
.close-menu::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    top: 50%;
    left: 0;
}

.close-menu::before {
    transform: rotate(45deg);
}

.close-menu::after {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-profile {
        width: 28px;
        height: 28px;
    }
    
    /* Experience section */
    .timeline {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        max-width: 320px;
        margin: 0 auto 30px;
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .timeline-content {
        text-align: left;
    }
}
