/* styles.css */
:root {
    --primary-color: #1E1E2F;
    --secondary-color: #FF6B6B;
    --accent-color: #4ECDC4;
    --light-bg: #F5F5F5;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--primary-color);
}
/* Banner Bölümü */
#banner {
    position: relative;
    height: 60vh; /* İhtiyacınıza göre yüksekliği ayarlayabilirsiniz */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
  }
  
  /* Banner Resmi */
  .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmin container'a sığması için */
    z-index: 1;
  }
  
  /* Yarı Saydam Overlay */
  #banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Resmin üzerine koyulacak karartma katmanı */
    z-index: 2;
  }
  
  /* Banner İçeriği */
  .banner-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
  }
  
  .banner-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
  }
  
  .banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  
  .banner-content .btn {
    background-color: #ff5a5f;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .banner-content .btn:hover {
    background-color: #e04e4e;
  }
  

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255, 107, 107, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.sticky-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-header h1 {
    font-size: 1.8rem;
    color: #1E1E2F;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.sticky-header p {
    color: #6C6C6C;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.sticky-header a {
    background: #4ECDC4;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-header a:hover {
    background: #3AB9B0;
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(58, 185, 176, 0.3);
}

.sticky-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-header .title-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sticky-header h1 {
    font-size: 1.8rem;
    color: #1E1E2F;
    margin: 0;
    line-height: 1.2;
    order: 1; 
}

.sticky-header p {
    color: #6C6C6C;
    margin: 0;
    font-size: 0.95rem;
    order: 2; 
    font-weight: 500;
}

.sticky-header a {
    order: 3; 
    margin-left: auto; 
}

section {
    padding: 5rem 0;
}

h1, h2, h3 {
    margin: 0 0 1rem;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.skill-bars {
    display: grid;
    gap: 1rem;
}

.skill {
    padding: 0.8rem;
    color: white;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: translateY(-3px);
}

.html { background: var(--accent-color); width: 95%; }
.python { background: var(--secondary-color); width: 95%; }
.design { background: #9B59B6; width: 95%; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* İletişim Bölümü */
#contact {
    background: #F5F5F5;
    padding: 4rem 0;
}

#contact h2 {
    text-align: center;
    color: #1E1E2F;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

#contact h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #FF6B6B;
    margin: 1rem auto 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.contact-info p {
    color: #6C6C6C;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    font-size: 1.3rem;
    color: #4ECDC4;
    min-width: 30px;
    text-align: center;
}

.contact-info a {
    color: #1E1E2F;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #4ECDC4;
}

.social-links {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4ECDC4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: #3AB9B0;
    transform: translateY(-3px);
}

        /* Footer */
        footer {
            background: #1E1E2F;
            color: white;
            padding: 2rem 5%;
            text-align: center;
        }

        footer a {
            color: var(--primary);
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }
/* RESPONSIVE TASARIM */
@media (max-width: 1024px) {
    .about-content {
        gap: 2rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .sticky-header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .sticky-header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .sticky-header p {
        font-size: 0.9rem;
    }

    .sticky-header a {
        margin: 0.5rem auto 0;
        padding: 0.7rem 1.3rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
        margin-bottom: 2rem;
    }

    h2::after {
        margin: 0.8rem auto;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Projects */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Footer */
    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    footer .logo {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    /* Küçük mobil cihazlar için ekstra ayarlamalar */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    .sticky-header h1 {
        font-size: 1.4rem !important;
    }

    .project-card {
        padding: 1rem;
    }

    .skill {
        font-size: 0.9rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-info i {
        font-size: 1.1rem;
    }

    /* Mobil menü için ekstra boşluk ayarlamaları */
    .sticky-header {
        padding: 0.8rem 0;
    }

    .sticky-header a {
        width: 35%;
        justify-content: center;
    }
}

/* Tablet için optimize edilmiş stiller */
@media (min-width: 769px) and (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .social-links {
        margin-top: 2rem;
        width: 100%;
    }
}
