:root {
  --bg: #0f1117;
  --text: #c8cdd3;
  --accent: #4a90d9;
  --accent-light: #6aabef;
  --divider: #1e2230;
  --surface: #161922;
  --nav-height: 130px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- NAVIGASYON --- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  padding: 1.5rem 0;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  width: 100%;
  position: relative;
}

.nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  color: #8891a0;
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.25s ease;
  padding-bottom: 4px;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: #fff !important; }

.nav-links a.active-link {
  color: var(--accent-light);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.lang-wrapper {
  position: absolute;
  right: 12rem;
  bottom: 1.5rem;
}
.home-wrapper {
  position: absolute;
  left: 12rem;
  bottom: 1.5rem;
}
.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.home-icon:hover {
  background: var(--accent);
  color: #fff;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
}

/* --- CONTENT SECTIONS --- */
.content-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  padding-top: 4rem;
  padding-bottom: 6rem;
  margin-top: 2rem;
  scroll-margin-top: var(--nav-height);
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- HERO (HOME) --- */
#home.active {
  display: flex !important;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding-top: 0;
  padding-left: 3rem;
  margin-top: 0;
  text-align: left;
}

.hero-content {
  display: flex;
  align-items: center; 
  justify-content: flex-start; 
  gap: 4rem; 
  width: 100%;
  max-width: 1200px;
  margin: 0;
}

.profile-img {
  width: 310px;
  height: 440px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-top: -1.5rem;
  align-self: flex-start;
}
.profile-img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.hero-text h1 {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 3.5rem;
  line-height: 1.2;
  color: #fff;
}

.hero-intro-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem 0;
}
.hero-intro {
  font-size: 1.2rem;
  font-style: italic;
  max-width: 800px;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

@media (min-width: 1200px) {
  #home.active {
    margin-left: -100px;
    margin-right: -100px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.5rem; }
  #home.active { flex-direction: column; text-align: center; justify-content: center; }
  .hero-content { flex-direction: column; gap: 2rem; }
}

/* --- SOSYAL LINKLER --- */
.social-links { 
  display: flex; 
  justify-content: flex-start; 
  gap: 1.5rem; 
  margin-top: 1rem; 
}
.social-links a {
  text-decoration: none;
  color: #c8cdd3;
  border: 1.5px solid var(--divider);
  background: var(--surface);
  padding: 0.65rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-width: 120px;
}
.social-links a .btn-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.contact-actions .social-links a .btn-logo {
  transform: scale(2);
}
.contact-actions .social-links a {
  border-color: #0077B5;
}
.contact-actions .social-links a:hover {
  border-color: #0077B5;
  background: rgba(0, 119, 181, 0.18);
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(74, 144, 217, 0.08);
  transform: translateY(-2px);
}

/* --- ALT SEKMELER --- */
.sub-nav {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--divider);
}

.sub-tab-link {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}

.sub-tab-link:hover { color: #fff; }
.sub-tab-link.active { color: var(--accent-light); }
.sub-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.sub-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sub-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- BAŞLIKLAR --- */
.content-section h2 {
  font-family: 'Lora', serif;
  color: #fff;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 8px;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

/* --- MARKDOWN BODY --- */
.markdown-body p {
  margin-bottom: 1.2rem;
  line-height: 1.85;
  color: var(--text);
}

.markdown-body h3 {
  font-family: 'Lora', serif;
  color: #fff;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--divider);
}

.markdown-body ul, .markdown-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.markdown-body li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}

.markdown-body li strong {
  color: #e2e6ea;
}

.markdown-body a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.markdown-body a:hover {
  border-bottom-color: var(--accent-light);
}

/* --- İLETİŞİM (CONTACT) --- */

#contact.content-section {
    padding-top: 2rem;      
    padding-bottom: 2rem;
    margin-top: 0.5rem;
}

#contact h2 {
    margin-bottom: 1.2rem;
    font-size: 2.2rem;
}

#contact .markdown-body {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #a0a8b3;
    margin-bottom: 1rem;
}

#contact .markdown-body p {
    margin-bottom: 0.8rem;
    color: var(--text);
}

.contact-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-group input, .form-group textarea {
  background-color: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 1.4rem 1.1rem 0.5rem 1.1rem;
  color: #fff;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

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

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  pointer-events: none;
  color: #8891a0;
  font-size: 1rem;
  transition: top 0.1s ease, font-size 0.1s ease, color 0.1s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent-light);
}

.submit-btn {
  background-color: var(--surface);
  color: #c8cdd3;
  border: 1.5px solid var(--divider);
  padding: 0.65rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 120px;
  align-self: flex-start;
}

.submit-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}
/* --- GENEL KONTEYNER --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- RESPONSIVE (MOBIL UYUMLULUK) --- */
@media (max-width: 768px) {
    .sticky-nav {
        padding: 0.3rem 0;
        min-height: auto;
    }

    .nav-container {
        display: block !important;
        position: relative;
        padding: 0 1rem !important;
        padding-top: 2.2rem !important;
    }

    .nav-content {
        grid-column: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        font-size: 1.4rem;
        text-align: center;
        display: block;
        width: 100%;
        line-height: 1.2;
        margin: 0 auto;
    }

    .nav-links {
        margin-top: 0.6rem;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .lang-wrapper {
        position: absolute !important;
        top: 0.4rem !important;
        right: 0.8rem !important;
        margin: 0 !important;
        z-index: 1005;
    }

    .home-wrapper {
        position: absolute !important;
        top: 0.4rem !important;
        left: 0.8rem !important;
        bottom: auto !important;
        margin: 0 !important;
        z-index: 1005;
    }

    .home-icon {
        width: 30px;
        height: 30px;
        background-color: var(--bg);
    }
    .home-icon svg {
        width: 18px;
        height: 18px;
    }

    .lang-toggle {
        width: 30px;
        height: 30px;
        padding: 0;
        font-size: 0.75rem;
        font-weight: 400;
        background-color: var(--bg);
    }

    #home.active {
        flex-direction: column;
        text-align: center;
        padding-top: 3.5rem;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.2rem;
    }

    .profile-img {
        width: 145px;
        height: 200px;
        margin-top: 0;
        align-self: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-intro {
        font-size: 1.05rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .social-links a {
        padding: 0.55rem 1.1rem;
        font-size: 0.9rem;
    }

    #contact.content-section {
        padding-top: 0.5rem;
    }

    #contact h2 {
        font-size: 1.6rem;
    }

    #contact .markdown-body {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .submit-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .container {
        padding: 0 1rem;
    }

    .content-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
        margin-top: 1rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        display: block;
        text-align: center;
    }

    .markdown-body h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .sub-nav {
        border-bottom: 1px solid var(--divider);
        margin-bottom: 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
    }

    .sub-tab-link {
        text-align: left;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid var(--divider);
        font-size: 1rem;
    }

    .sub-tab-link.active::after {
        width: 4px;
        height: 100%;
        left: 0;
        bottom: 0;
    }
}

/* --- ÇOK KÜÇÜK EKRANLAR (iPhone SE vb.) --- */
@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem;
    }

    .nav-links {
        gap: 0.35rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .profile-img {
        width: 130px;
        height: 180px;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .markdown-body h3 {
        font-size: 1.05rem;
    }
}
