:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --background-color: #ffffff;
    --text-color: #333333;
    --section-bg: #f5f6fa;
    --transition: all 0.3s ease;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --footer-bg: #f8f9fa;
    --hover-color: #007bff;
    --bio-text-color: #666;
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #3498db;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --section-bg: #2d2d2d;
    --card-bg: #333333;
    --border-color: #404040;
    --header-bg: rgba(26, 26, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --footer-bg: #2d2d2d;
    --hover-color: #3498db;
    --bio-text-color: #cccccc;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.profile-container {
    max-width: 1200px;
    margin: 7rem auto 2rem;
    padding: 2rem;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile-info h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    gap: 1rem;
    color: #666;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
    background: var(--background-color);
}

section:nth-child(even) {
    background: var(--section-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

/* Bio Section */
.bio-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bio-text-color);
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.experience-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.experience-card h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
}

.experience-card ul {
    list-style: none;
    color: var(--text-color);
    padding-left: 0;
}

.experience-card li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1.4;
}

.experience-card p {
    color: var(--text-color);
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Languages List */
#languagesList {
    list-style: none;
}

#languagesList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.language-level {
    display: flex;
    gap: 0.3rem;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.level-dot.empty {
    background: var(--border-color);
}

/* Hobbies List */
#hobbiesList {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#hobbiesList li {
    background: var(--card-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 2px 5px var(--shadow-color);
}

#hobbiesList li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: var(--transition);
}

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

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .bio-text {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .experience-card,
    .skill-category,
    .contact-item {
        padding: 1.5rem;
    }
}

.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--footer-bg);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.copyright {
    margin-bottom: 1rem;
    color: #666;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--hover-color);
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 10px 0;
}

.sticky-header.visible {
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--hover-color);
}

.header-nav a i {
    color: var(--text-color);
}

.header-nav a:hover i {
    color: var(--hover-color);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.header-profile span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Ana içeriği yukarı kaydır */
main {
    padding-top: 0px; /* Üst boşluğu azalt */
}

.bio-section {
    margin-top: 0px; /* Üst boşluğu azalt */
    padding-top: 0px;
}/* Profil bilgileri için mobil düzenlemeler */
@media screen and (max-width: 768px) {
    .profile-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .profile-info {
      margin-top: 1rem;
    }
  
    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
  }
  
  /* İletişim bilgileri için genel stil düzenlemeleri */
  .contact-info a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
  }
  
  .contact-info a:hover {
    color: var(--hover-color); /* veya tercih ettiğiniz bir vurgu rengi */
  }
  
  .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .contact-info i {
    min-width: 20px; /* ikonlar için sabit genişlik */
  }
  
  .education-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
  }

  .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
  }

  .education-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }

  .education-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .education-card .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
  }

  .education-card .description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
  }

  @media (max-width: 768px) {
    .education-card {
        padding: 1.5rem;
    }
  }
  
  .technologies-container {
    padding: 2rem;
  }

  .tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
  }

  .tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .tech-item i {
    font-size: 2.5rem;
    color: var(--text-color);
  }

  .tech-item span {
    font-size: 1rem;
    color: var(--text-color);
  }

  .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .scroll-to-top:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--shadow-color);
  }

  .scroll-to-top.visible {
    display: flex;
  }
  
  /* Mobil görünümde metinleri gizle */
  @media screen and (max-width: 768px) {
    .nav-text {
        display: none;
    }
    
    .header-nav {
        gap: 15px; /* Mobilde ikonlar arası boşluğu azalt */
    }
  }
  
  /* Masaüstü görünümde daha geniş boşluk */
  @media screen and (min-width: 769px) {
    .header-nav {
        gap: 25px;
    }

    .sticky-header {
        padding: 15px 0;
    }

    .header-profile img {
        width: 45px;
        height: 45px;
    }
  }
  
  /* Dark mode toggle button styles */
  .dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
  }

  .dark-mode-toggle:hover {
    background-color: var(--section-bg);
  }

  .dark-mode-toggle i {
    color: var(--text-color);
  }

  /* Dark mode styles */
  [data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: #404040;
  }

  [data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f5f5f5;
    --border-color: #e0e0e0;
  }
  
  /* Card styles */
  .experience-card,
  .education-card,
  .skill-category {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 2px 8px var(--shadow-color);
      transition: all 0.3s ease;
  }

  .experience-card:hover,
  .education-card:hover,
  .skill-category:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 12px var(--shadow-color);
  }

  /* Technologies grid items */
  .tech-item {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
      transition: all 0.3s ease;
  }

  .tech-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px var(--shadow-color);
      border-color: var(--secondary-color);
  }

  /* Bio section */
  .bio-text {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 1.5rem;
      margin-top: 1.5rem;
      box-shadow: 0 2px 8px var(--shadow-color);
  }
  .back-to-top-container {
    text-align: center;
    padding: 2rem 0;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: var(--text-color);
    color: var(--background-color);
    cursor: pointer;
    transition: var(--transition);
}

.back-to-top-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.theme-toggle-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--background-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
}

.toggle-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-toggle-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
}

.language-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px var(--shadow-color);
    border: 1px solid black;
    position: relative;
    margin-bottom: 10px;

}

.language-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    transition: all 0.3s ease;
}

.flag.active {
    opacity: 1;
    transform: scale(1);
}

.flag:not(.active) {
    opacity: 0;
    transform: scale(0.8);
}

/* Bayraklar için özel stiller */


.button-stack {
    display: block;

}

.flag {
    display: none; /* Varsayılan olarak bayrakları gizle */
    
}

#enFlag {
    display: none;
}

/* Türkçe dil seçiliyken İngilizce bayrağını göster */
html[lang="tr"] .en-flag {
    display: block;
}

/* İngilizce dil seçiliyken Türkçe bayrağını göster */
html[lang="en"] .tr-flag {
    display: block;
}

.language-toggle-btn .tr-flag,
.language-toggle-btn .en-flag {
    display: none;
    font-size: 24px;
}

/* Türkçe seçili olduğunda sadece İngilizce bayrağı göster */
[data-language="tr"] .language-toggle-btn .en-flag {
    display: inline-block;
}

/* İngilizce seçili olduğunda sadece Türk bayrağı göster */
[data-language="en"] .language-toggle-btn .tr-flag {
    display: inline-block;
}