/* Global Stylesheet for Dark Theme and Layout Components */



::selection {
  background: #fff000; /* Yellow highlight */
  color: #000000;
}/* 1. Grayscale Dark Theme Overrides */
body.dark-theme {
  --black: #ffffff;
  --charcoal: #f2f1ef;
  --graphite: #d9d9d9;
  --graphite-mid: #b8b8b8;
  --gray: #999999;
  --silver: #6b6b6b;
  --silver-light: #3a3a3a;
  --light: #2d2d2d;
  --off-white: #1a1a1a;
  --white: #0a0a0a;
  --border: rgba(255, 255, 255, 0.15);
  --border-dark: rgba(0, 0, 0, 0.3);
}

/* Additional dark theme specifics */
body.dark-theme .nav.scrolled,
body.dark-theme .footer,
body.dark-theme .mobile-overlay {
  background: rgba(10, 10, 10, 0.95) !important;
}

body.dark-theme .nav__link::after {
  background: var(--white);
}

body.dark-theme .mobile-overlay__close span,
body.dark-theme .nav__hamburger span {
  background: var(--charcoal);
}

/* 2. Floating Bottom-Right Dark Mode Button */
.dark-mode-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.dark-mode-toggle:hover {
  transform: scale(1.05);
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
}

/* Toggle sun/moon based on theme */
body:not(.dark-theme) .dark-mode-toggle .sun-icon {
  display: none;
}

body.dark-theme .dark-mode-toggle .moon-icon {
  display: none;
}

/* 3. Fixed Language Selector on Right Edge */
.fixed-lang-selector {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 12px 24px 16px;
  border-radius: 20px 0 0 20px;
  box-shadow: -4px 8px 24px rgba(0,0,0,0.15);
}

.fixed-lang-selector .lang-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 4px;
  text-transform: uppercase;
  text-align: center;
  border: none;
  background: none;
  cursor: pointer;
}

.fixed-lang-selector .lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.fixed-lang-selector .lang-btn.active {
  color: #ffffff;
  font-weight: 700;
}

/* Adjust layout on small screens */
@media (max-width: 768px) {
  .fixed-lang-selector {
    right: 0;
    gap: 8px;
    padding: 16px 8px 16px 12px;
  }
  .fixed-lang-selector .lang-btn {
    font-size: 0.6875rem;
  }
}

/* 4. Filterable Menus Styling (More Prominent) */
.activities__filter,
.works__filter,
.publications__filter {
  color: var(--gray) !important;
  font-weight: 500 !important;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.activities__filter:hover,
.works__filter:hover,
.publications__filter:hover {
  color: var(--black) !important;
  opacity: 1;
}

.activities__filter.active,
.works__filter.active,
.publications__filter.active {
  color: var(--black) !important;
  font-weight: 700 !important;
  opacity: 1;
}

body.dark-theme .activities__filter,
body.dark-theme .works__filter,
body.dark-theme .publications__filter {
  color: var(--gray) !important;
}

body.dark-theme .activities__filter.active,
body.dark-theme .works__filter.active,
body.dark-theme .publications__filter.active {
  color: var(--white) !important;
}

/* Biography Action Buttons */
.about__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  width: 100%;
}

.about__btn {
  flex: 1;
  min-width: 180px;
  background: transparent;
  color: #383838;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem 1.5rem;
  border: 1px solid #383838;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about__btn:hover {
  background: #383838;
  color: #ffffff;
}

body.dark-theme .about__btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

body.dark-theme .about__btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

@media (max-width: 768px) {
  .about__actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: var(--space-sm);
  }
  .about__btn {
    min-width: 0;
    padding: 0.85rem 1rem;
  }
}

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

/* ════════════════════════════════════════
   ADMINISTRATIVE TASKS MODAL
   ════════════════════════════════════════ */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.admin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.4s ease;
}

.admin-modal__content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 720px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.admin-modal.open .admin-modal__content {
  transform: translateY(0) scale(1);
}

.admin-modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: background 0.3s, transform 0.3s;
}

.admin-modal__close:hover {
  background: var(--light);
  transform: rotate(90deg);
}

.admin-modal__close span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--charcoal);
  position: absolute;
}
.admin-modal__close span:first-child {
  transform: rotate(45deg);
}
.admin-modal__close span:last-child {
  transform: rotate(-45deg);
}

.admin-modal__header {
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.admin-modal__header h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--black);
}

.admin-modal__body {
  padding: var(--space-xl);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--light) transparent;
}

.admin-modal__body::-webkit-scrollbar {
  width: 4px;
}
.admin-modal__body::-webkit-scrollbar-track {
  background: transparent;
}
.admin-modal__body::-webkit-scrollbar-thumb {
  background: var(--light);
  border-radius: 2px;
}

.admin-modal__timeline {
  position: relative;
  padding-left: 24px;
}

.admin-modal__timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.admin-modal__timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.admin-modal__timeline-item:last-child {
  padding-bottom: 0;
}

.admin-modal__timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.3s, background-color 0.3s;
}

.admin-modal__timeline-item:hover::before {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.admin-modal__timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 4px;
}

.admin-modal__timeline-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--graphite);
}

.admin-modal__timeline-content strong {
  color: var(--black);
  font-weight: 600;
}

/* ════════════════════════════════════════
   GLOBAL DYNAMIC NAVIGATION & OVERLAYS
   ════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 1000;
  transition: all .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 75px;
  border-bottom: 1px solid var(--border);
}
body.dark-theme .nav.scrolled {
  background: rgba(10, 10, 10, .9) !important;
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: .02em;
}
.nav__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}
.nav__link {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color .3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width .3s ease;
}
.nav__link:hover {
  color: var(--black);
}
.nav__link:hover::after {
  width: 100%;
}
.nav__link.active {
  color: var(--black);
}
.nav__link.active::after {
  width: 100%;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--charcoal);
}

/* Mobile Overlay Menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; /* Left-align the flex container items */
  padding: 120px 40px 60px 40px; /* Adjusted padding for better left-aligned look */
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: all .4s var(--ease);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.mobile-overlay__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2001;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.mobile-overlay__close:hover {
  background: var(--light);
  transform: rotate(90deg);
}
.mobile-overlay__close span {
  display: block;
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--charcoal);
}
.mobile-overlay__close span:first-child {
  transform: rotate(45deg);
}
.mobile-overlay__close span:last-child {
  transform: rotate(-45deg);
}
.mobile-overlay__link {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--charcoal);
  transition: color .3s ease;
  text-align: left; /* Left-align the text */
  padding: 2px 0;
  width: 100%; /* Take full width to ensure clickability */
}
.mobile-overlay__link:hover {
  color: var(--black);
}

body.menu-open {
  overflow: hidden !important;
}
body.menu-open .nav__hamburger {
  display: none !important;
}

@media(max-width:768px) {
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
}

/* 5. Nav Dropdown */
.nav__item { position: relative; display: inline-block; }
.nav__dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 150px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; padding: 10px 0; border-radius: 4px; }
body.dark-theme .nav__dropdown { background: var(--off-white); border: 1px solid var(--border); }
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-link { display: block; padding: 10px 20px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--gray); text-transform: uppercase; transition: color 0.3s ease, background 0.3s ease; }
.nav__dropdown-link:hover { color: var(--black); background: rgba(0,0,0,0.03); }
body.dark-theme .nav__dropdown-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }

/* 6. Drawings Masonry Layout */
.drawings-layout { display: flex; height: calc(100vh - 90px); margin-top: 90px; width: 100%; overflow: hidden; background: var(--white); }
body.dark-theme .drawings-layout { background: var(--black); }

.drawings-masonry { flex: 0 0 50%; height: 100%; overflow-y: auto; padding: 50px 60px 80px 60px; scroll-behavior: smooth; background: var(--white); }
.drawings-masonry::-webkit-scrollbar { width: 6px; }
.drawings-masonry::-webkit-scrollbar-thumb { background-color: var(--gray); border-radius: 10px; }
body.dark-theme .drawings-masonry::-webkit-scrollbar-thumb { background-color: var(--border); }

.drawings-header { margin-bottom: 60px; max-width: 400px; }
.drawings-title { font-family: var(--serif); font-size: 3rem; font-weight: 400; color: var(--black); margin-bottom: 16px; }
.drawings-subtitle { font-size: 0.875rem; color: var(--gray); line-height: 1.6; }

.masonry-grid { column-count: 4; column-gap: 16px; }
.masonry-item { break-inside: avoid; margin-bottom: 16px; cursor: pointer; overflow: hidden; position: relative; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); border-radius: 8px; }
.masonry-item img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.masonry-item:hover { transform: translateY(-4px); }
.masonry-item:hover img { transform: scale(1.02); }
.masonry-item.active { border-radius: 8px; }
.masonry-item.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid var(--charcoal);
  pointer-events: none;
  z-index: 1;
}

.drawings-viewer { flex: 0 0 50%; height: 100%; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; border-left: 1px solid #000; }
body.dark-theme .drawings-viewer { background: var(--off-white); border-left: 1px solid rgba(255,255,255,0.15); }

.viewer-empty-state { font-family: var(--serif); font-size: 1.5rem; color: var(--gray); font-style: italic; opacity: 0.5; transition: opacity 0.3s ease; text-align: center; }
.viewer-image-container { position: absolute; inset: 60px; display: flex; align-items: center; justify-content: center; }
.viewer-image-container img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.viewer-image-container img.active { opacity: 1; transform: scale(1); }

@media (max-width: 768px) {
  .drawings-layout { flex-direction: column; overflow: auto; }
  .drawings-masonry { flex: 1 1 auto; padding: 100px 20px 40px 20px; }
  .masonry-grid { column-count: 1; }
  
  .drawings-viewer { position: fixed; inset: 0; z-index: 5000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; padding: 20px; }
  .drawings-viewer.mobile-active { opacity: 1; pointer-events: auto; }
  .viewer-image-container { inset: 20px; }
  
  .drawings-viewer-close { position: absolute; top: 24px; right: 24px; background: var(--black); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; border: 1px solid rgba(255,255,255,0.1); }
  .drawings-viewer-close span { position: absolute; width: 16px; height: 1.5px; background: var(--white); }
  .drawings-viewer-close span:first-child { transform: rotate(45deg); }
  .drawings-viewer-close span:last-child { transform: rotate(-45deg); }
}



/* ════════════════════════════════════════
   LAPTOP RESPONSIVENESS AND SIZING
   ════════════════════════════════════════ */
@media screen and (max-width: 1440px) {
  html {
    font-size: 14.5px !important;
  }
  :root {
    --space-xl: 2rem !important;
    --space-2xl: 3rem !important;
    --space-3xl: 4.5rem !important;
    --space-4xl: 7rem !important;
  }
  .container {
    max-width: 1180px !important;
  }
  .hero__visual {
    max-height: 480px !important;
  }
}

@media screen and (max-width: 1280px) {
  html {
    font-size: 13.5px !important;
  }
  :root {
    --space-xl: 1.75rem !important;
    --space-2xl: 2.75rem !important;
    --space-3xl: 4rem !important;
    --space-4xl: 6rem !important;
  }
  .container {
    max-width: 1080px !important;
  }
  .hero__visual {
    max-height: 420px !important;
  }
}

/* Specific component tweaks for laptops */
@media screen and (min-width: 769px) and (max-width: 1440px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .masonry-grid {
    column-count: 2;
  }
}

/* ════════════════════════════════════════
   GLOBAL FOOTER STYLING (White Background)
   ════════════════════════════════════════ */
.footer {
  background: var(--white) !important;
  border-top: 1px solid var(--border) !important;
  padding: var(--space-xl) 0 !important;
  color: var(--silver) !important;
}
.footer__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: var(--space-md) !important;
}
.footer__copy {
  font-size: .75rem !important;
  color: var(--silver) !important;
  letter-spacing: .04em !important;
}
.footer__copy span {
  color: var(--silver) !important;
}
.footer__links {
  display: flex !important;
  gap: var(--space-lg) !important;
}
.footer__link {
  font-size: .6875rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--silver) !important;
  transition: color .3s var(--ease) !important;
}
.footer__link:hover {
  color: var(--charcoal) !important;
}
body.dark-theme .footer {
  background: rgba(10, 10, 10, 0.95) !important;
  border-top: 1px solid var(--border) !important;
}

/* ════════════════════════════════════════
   SECRET STATS DASHBOARD (ORHUN)
   ════════════════════════════════════════ */
.secret-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.secret-stats-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.secret-stats-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.4s ease;
}

.secret-stats-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  font-family: var(--sans);
}

.secret-stats-modal.open .secret-stats-content {
  transform: translateY(0) scale(1);
}

.secret-stats-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.secret-stats-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.secret-stats-close span {
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: #fff;
}

.secret-stats-close span:first-child { transform: rotate(45deg); }
.secret-stats-close span:last-child { transform: rotate(-45deg); }

.secret-stats-header {
  margin-bottom: 30px;
}

.secret-stats-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.secret-stats-subtitle {
  font-size: 0.9rem;
  color: #aaa;
  letter-spacing: 0.05em;
}

.secret-stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.secret-stats-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.secret-stats-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}

.secret-stats-val {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}

.secret-stats-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.secret-stats-chart-container {
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .secret-stats-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .secret-stats-content {
    padding: 24px;
  }
  .secret-stats-title {
    font-size: 2rem;
  }
}

