:root {
  --text-primary: #111;
  --text-muted: #777;
  --panel-bg: #fff;
  --border: #e6e6e6;
  --bg-color: #f7f7f7;
  --text-dark: #111;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  background: linear-gradient(180deg, #fcfcfc 0%, #f0f0f0 100%);
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  text-align: center;
}

/* --- MODERN TYPOGRAPHY SYSTEM --- */
h1,
h2,
h3,
h4,
h5,
h6,
.logo a,
.page-title,
.hub-card h3,
.signature-area strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1.main-name,
.page-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

/* --- DİL SEÇİCİ --- */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 10px;
}

.lang-switcher a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  padding: 5px;
  transition: 0.3s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: #000;
  border-bottom: 2px solid #000;
}

.personal-hero {
  width: min(1100px, 100%);
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 3rem clamp(1.5rem, 3vw, 4rem);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.08);
}

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

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #f0f0f0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.main-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 2px;
  margin: 1rem 0 0;
  text-transform: uppercase;
}

.tagline {
  margin: 0.25rem 0 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-muted);
}

.bio-text {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.motto-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #333;
  max-width: 700px;
  margin: 20px auto 50px;
  line-height: 1.4;
  position: relative;
}

/* --- CASS GRID (Legacy layout) --- */
.cass-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  width: 100%;
}

.cass-card {
  background: #fff;
  padding: 30px 15px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.4s ease;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.cass-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #000;
  transition: width 0.4s ease;
}

.cass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.cass-card:hover::after {
  width: 100%;
}

.cass-card:hover .icon-box {
  color: #000;
  transform: scale(1.1);
}

.cass-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: #000;
}

.cass-card span {
  font-size: 0.75rem;
  color: #777;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-box {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
  transition: 0.4s;
}

/* --- THE 4 QUARTERS GRID --- */
.quarters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.quarter-card {
  background: #fff;
  padding: 40px 20px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.4s ease;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.quarter-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #000;
  transition: width 0.4s ease;
}

.quarter-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.quarter-card:hover::after {
  width: 100%;
}

.quarter-card .icon-box {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
  transition: 0.4s;
}

.quarter-card:hover .icon-box {
  color: #000;
  transform: scale(1.1);
}

.quarter-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #000;
  font-weight: 700;
}

.quarter-card span {
  font-size: 0.95rem;
  /* Increased size */
  color: #555;
  /* Slightly darker for better readability */
  font-family: 'Open Sans', sans-serif;
  letter-spacing: normal;
  /* Removed letter spacing */
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn {
  border: 1px solid #000;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline {
  background: transparent;
  color: #000;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

.btn-black {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-black:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.hub-section,
.short-bio,
.projects-preview {
  width: 100%;
  padding: 3.5rem 1.5rem;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 2rem 1.75rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card .category {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #999;
  text-transform: uppercase;
}

.hub-card h3 {
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: 0.15em;
}

.hub-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.arrow-icon {
  margin-top: auto;
  font-size: 1.6rem;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #000;
  transition: background 0.2s ease, color 0.2s ease;
}

.hub-card:hover .arrow-icon {
  background: #000;
  color: #fff;
}

.short-bio {
  background: #fdfdfd;
}

.short-bio h2,
.projects-preview h2 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.bio-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #444;
  font-family: 'Open Sans', sans-serif;
}

.link-arrow {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #000;
}

.link-arrow:hover {
  text-decoration: underline;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.p-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.p-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-family: 'Montserrat', sans-serif;
}

.center-btn {
  margin-top: 2rem;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #000;
}

.back-link:hover {
  text-decoration: underline;
}

.sub-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sub-card {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.sub-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.sub-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sub-card span {
  margin-top: auto;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000;
}

.sub-card.premium {
  border: 1px solid #000;
}

.card-icon {
  font-size: 1.6rem;
  color: #000;
}

.page-content {
  padding: 60px 20px 100px;
  background-color: #fcfcfc;
}

.text-block {
  max-width: 750px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lead-text {
  font-size: 1.1rem;
  color: #777;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: #000;
  margin-bottom: 50px;
}

.text-block h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: #000;
  margin-top: 50px;
  margin-bottom: 20px;
  border-left: 4px solid #000;
  padding-left: 15px;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.text-block p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.text-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #000;
  font-weight: 700;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  margin-top: 5px;
  text-decoration: none;
}

.text-link:hover {
  border-bottom-color: #000;
}

.bio-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  text-align: center;
  color: #333;
  margin: 60px 0;
  padding: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.signature-area {
  margin-top: 40px;
}

.signature-area p {
  margin-bottom: 5px;
  color: #666;
}

.signature-area strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #000;
}

/* --- HEADER --- */
header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  position: relative;
}

.logo a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 45px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-weight: 400;
  text-decoration: none;
  transition: 0.3s;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
  border-bottom-color: #000;
}

.hub-link a {
  color: #000;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.hub-link a:hover {
  border-bottom-color: #000;
}

/* --- LANGUAGE DROPDOWN --- */
.lang-dropdown {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1100;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  transition: color 0.3s;
}

.lang-btn:hover,
.lang-dropdown.active .lang-btn {
  color: #000;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 100px;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.lang-dropdown.active .lang-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.lang-menu a {
  text-decoration: none;
  color: #666;
  font-size: 0.8rem;
  padding: 8px 16px;
  font-weight: 600;
  transition: 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-menu a:hover {
  background: #f9f9f9;
  color: #000;
}

.lang-menu a.current {
  color: #000;
  font-weight: 800;
  background: #f5f5f5;
}

/* --- KARTLAR --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.p-card {
  background: #fff;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: 0.3s;
  min-height: 0;
}

.p-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.p-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

/* --- MOBİL --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .header-flex {
    flex-direction: column;
    gap: 15px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .motto-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .text-block {
    padding: 0 10px;
  }
}

footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #000;
}

/* İkonlara Özel Hover Renkleri */
.social-links a:hover .fa-instagram {
  color: #e1306c;
}

.social-links a:hover .fa-linkedin {
  color: #0077b5;
}

.social-links a:hover .fa-whatsapp {
  color: #25d366;
}

.social-links a:hover .fa-envelope {
  color: #333;
}

footer p {
  margin: 0;
  letter-spacing: 0.05em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* --- HOME ICON (Global) --- */
.home-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1100;
  color: #000;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
}

.home-btn:hover {
  background: #000;
  color: #fff;
  transform: scale(1.1);
  border-color: #000;
}

/* --- ARAPÇA (RTL) DESTEĞİ --- */
html[lang='ar'] {
  direction: rtl;
}

html[lang='ar'] .lang-dropdown {
  right: auto;
  left: 0;
}

html[lang='ar'] .home-btn {
  left: auto;
  right: 20px;
}

html[lang='ar'] h1,
html[lang='ar'] h3 {
  font-family: 'Arial', sans-serif;
}

/* --- MOBİL UYUM --- */
@media (max-width: 900px) {
  .cass-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quarters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .cass-grid {
    grid-template-columns: 1fr;
  }

  .quarters-grid {
    grid-template-columns: 1fr;
  }

  /* Fix for Language Dropdown on Mobile */
  .lang-dropdown,
  .lang-switcher {
    position: relative;
    top: 0;
    right: 0;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .lang-menu {
    width: 200px;
    /* Prevent full width menu */
    right: 50%;
    transform: translateX(50%);
    top: 100%;
  }

  /* Fix for Home Button on Mobile */
  .home-btn {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 10px;
  }

  html[lang='ar'] .lang-dropdown {
    left: 0;
  }

  html[lang='ar'] .home-btn {
    right: 0;
  }

  .personal-hero {
    padding: 2rem 1.25rem;
  }

  .personal-hero .content {
    padding-top: 20px;
    pointer-events: none;
    /* Prevent accidental clicks on bg elements if any */
  }

  .personal-hero .content * {
    pointer-events: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}


/* --- BOOK PREVIEW CARD --- */
.book-preview-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.book-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.book-info {
  flex: 1;
  padding-right: 20px;
}

.book-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #000;
}

.status-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 15px;
}

.book-info p {
  font-family: 'Open Sans', sans-serif;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.book-meta {
  font-size: 0.9rem;
  color: #888;
}

.book-icon {
  font-size: 3rem;
  color: #000;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .book-preview-card {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .book-info {
    padding-right: 0;
  }
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 25px;
  margin-top: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}