@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Değişkenler */
:root {
  --primary-bg-color: #ffffff;
  --primary-accent: #111111;
  --secondary-accent: #990000;
  --main-text-color: #111111;
  --supportive-text-color: #1a1a1a;
  --gray-text-color: #444444;
  --white-color: #ffffff;
  --gray-color: #eeeeee;
  --gray-color-2: #111111;
  --gray-color-3: #eeeeee;
  --color-preloader-bg: var(--white-color);
  --color-dots: #990000;
}

/* Genel Stiller */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--primary-bg-color);
  color: var(--main-text-color);
  font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.4px;
  -webkit-font-smoothing: antialiased;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.container {
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.container-lg {
  max-width: 1600px;
}

.title {
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 54px;
  color: var(--primary-accent);
  letter-spacing: 1px;
}

h5 {
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.6;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-accent);
}

.white {
  color: var(--white-color);
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-accent);
}

/* Butonlar */
.btn {
  display: inline-block;
  height: 52px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 52px;
  padding: 0 36px;
  margin: 0 12px 16px 0;
  color: var(--white-color) !important;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  transition: all 0.2s ease-in-out;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--white-color) !important;
  outline: 0;
}

.btn:active {
  background-color: #660000;
}

.btn-white {
  background: var(--white-color);
  font-weight: 700;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent) !important;
}

.btn-white:hover,
.btn-white:focus {
  background: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--white-color) !important;
}

.btn-white:active {
  background-color: #660000;
}

.btn-red {
  background: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
  color: var(--white-color) !important;
}

.btn-red:hover,
.btn-red:focus {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
}

.btn-red:active {
  background-color: #000000;
}

.back-btn {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--primary-accent) !important;
  font-weight: bold;
  font-size: 1.1rem;
  position: relative;
  z-index: 9999;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--secondary-accent) !important;
  text-decoration: underline;
}

.dark-toggle-btn {
  background: none;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 20px;
  transition: all 0.2s;
}

/* Header & Navigasyon */
.header {
  z-index: 100;
  height: 90px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 90px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--primary-accent);
  transition: all 0.3s ease-in-out;
}

.logo {
  line-height: 1;
  font-weight: bold;
  font-size: clamp(1.125rem, 1.011rem + 0.57vw, 1.375rem);
  color: var(--primary-accent);
}

.nav-list {
  display: flex;
  column-gap: 46px;
  font-weight: 500;
  font-size: 18px;
  align-items: center;
}

.nav-link {
  color: var(--primary-accent);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--secondary-accent);
}

.nav-link.active {
  color: var(--secondary-accent) !important;
  border-bottom: 2px solid var(--secondary-accent);
  padding-bottom: 4px;
}

.nav-btn, 
#nav-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 2000;
}

.nav-btn img,
#nav-btn-img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* CV Dropdown Stilleri */
.cv-dropdown {
  position: relative;
  display: inline-block;
}

.cv-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: var(--white-color);
  border: 2px solid var(--primary-accent);
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 100;
  text-align: center;
}

.cv-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.cv-dropdown-item:hover {
  background-color: var(--gray-color);
  color: var(--secondary-accent);
}

.cv-dropdown-divider {
  height: 1px;
  background-color: var(--primary-accent);
}

/* Hero Bölümü */
.hero {
  position: relative;
  padding-top: 180px;
  background-color: var(--primary-bg-color);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
}

.hero-content {
  align-self: center;
  padding: 20px;
  flex-grow: 1;
}

.hero-greeting {
  font-size: clamp(1rem, 0.929rem + 0.36vw, 1.25rem);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-accent);
}

.hero-heading {
  margin: 5px 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  line-height: 1.2;
  color: var(--primary-accent);
}

.hero-heading-subtitle {
  font-size: clamp(1.125rem, 1.054rem + 0.36vw, 1.375rem);
  font-weight: 400;
  color: var(--supportive-text-color);
  line-height: 1.6;
}

.hero-img {
  display: flex;
  flex: 1 1 356px;
  justify-content: flex-end;
  margin-top: auto;
}

.hero-img img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Sosyal Medya İkonları */
.social-links-row, .about-social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  margin: 40px 0;
  height: 24px;
}

.social-links-row img {
  height: 24px;
  width: 24px;
}

.social-links-row a, .about-social-list a, .footer-social a {
  filter: invert(10%) sepia(10%) saturate(100%) brightness(10%) contrast(100%);
  transition: all 0.2s ease-in-out;
}

.social-links-row a:hover, .about-social-list a:hover, .footer-social a:hover {
  filter: invert(11%) sepia(91%) saturate(5427%) hue-rotate(352deg) brightness(87%) contrast(114%) !important;
}

/* Hakkımda (About) Bölümü */
.about {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
}

.about-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 40px;
  margin-bottom: 80px;
  color: var(--supportive-text-color);
}

.about-content {
  width: 100%;
  text-align: center;
}

.about-descr {
  max-width: 850px;
  margin: 0 auto 30px auto;
  font-size: 1.15rem;
  line-height: 1.9;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.3px;
}

.about-download-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Yetenek Barları */
.skill {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.skill-title,
.skill-percent {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
}

.skill-percent {
  float: right;
  color: var(--secondary-accent);
}

.skill-bar__progress {
  background-color: #e9ecef;
  height: 6px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--primary-accent);
}

.skill-bar__fill {
  background-color: var(--secondary-accent);
  height: 100%;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* Servis / İlgi Alanı Kartları */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.service-card {
  width: 100%;
  max-width: 320px;
  background: var(--gray-color);
  padding: 30px;
  border: 1px solid var(--primary-accent);
}

.service-card-img {
  display: block;
  height: 50px;
  margin: 0 auto 20px;
  filter: invert(11%) sepia(91%) saturate(5427%) hue-rotate(352deg) brightness(87%) contrast(114%);
}

.service-card-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-accent);
  font-size: clamp(1.125rem, 1.089rem + 0.18vw, 1.25rem);
}

.service-card p {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  color: var(--supportive-text-color);
}

/* Projeler Bölümü */
.projects {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
  border-top: 1px solid var(--primary-accent);
}

.projects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.project-box {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 510px;
  height: 250px;
  border: 2px solid var(--primary-accent);
}

.project-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-box:hover .project-img {
  transform: scale(1.05);
}

.project-mask {
  background: rgba(0, 0, 0, 0.85);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.project-box:hover .project-mask {
  opacity: 1;
  visibility: visible;
}

.project-mask .project-caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  padding: 0 30px;
}

.project-mask h3 {
  color: var(--white-color) !important;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.project-mask p {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #ffffff !important;
  font-weight: bold;
  margin-top: 5px;
  line-height: 1.5;
}

/* İletişim Bölümü */
.contact {
  padding: 7rem 0;
  text-align: center;
  background-color: var(--primary-bg-color);
  border-top: 1px solid var(--primary-accent);
}

.contact-content {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  color: var(--supportive-text-color);
  margin: 0 auto 20px;
  line-height: 1.8;
}

.contact form {
  max-width: 500px;
  margin: 20px auto;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--white-color);
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  margin: 7px 0;
  outline: none;
  font-family: "Courier New", Courier, monospace;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  border-color: var(--secondary-accent);
}

/* Akademik Sayfalar & Özel Bileşenler */
.projects-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 100px;
}

.academic-info-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.academic-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--primary-accent);
}

/* Native accordion components used by academic tools and blog pages */
.resource-accordion,
.academic-accordion {
  margin: 0 0 18px;
  border: 2px solid var(--primary-accent);
  border-radius: 10px;
  background: var(--gray-color);
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.resource-accordion__summary,
.academic-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: var(--primary-accent);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.academic-accordion__title {
  flex: 1 1 auto;
  min-width: 0;
}

.academic-accordion__date {
  flex: 0 0 auto;
  margin-left: auto;
  color: rgba(17, 17, 17, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.resource-accordion__summary::-webkit-details-marker,
.academic-accordion__summary::-webkit-details-marker {
  display: none;
}

.resource-accordion__summary::after,
.academic-accordion__summary::after {
  flex: 0 0 auto;
  color: var(--secondary-accent);
  content: "⌄";
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.resource-accordion[open] > .resource-accordion__summary::after,
.academic-accordion[open] > .academic-accordion__summary::after {
  transform: rotate(180deg);
}

.resource-accordion__summary:hover,
.academic-accordion__summary:hover {
  color: var(--secondary-accent);
}

.resource-accordion__summary:focus-visible,
.academic-accordion__summary:focus-visible {
  outline: 3px solid var(--secondary-accent);
  outline-offset: -3px;
}

.resource-accordion__content,
.academic-accordion__content {
  padding: 26px 30px 30px;
  border-top: 1px solid color-mix(in srgb, var(--primary-accent) 35%, transparent);
}

.resource-accordion__content p,
.academic-accordion__content p {
  margin-bottom: 15px;
}

.resource-accordion__content a,
.academic-accordion__content a {
  color: var(--secondary-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resource-accordion__content :not(pre) > code,
.academic-accordion__content :not(pre) > code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-family: "Fira Code", Consolas, Monaco, monospace;
  font-size: 0.9em;
}

body.dark-mode .resource-accordion,
body.dark-mode .academic-accordion {
  border-color: #ffffff;
  background: #1a1a1a;
}

body.dark-mode .resource-accordion__summary,
body.dark-mode .academic-accordion__summary,
body.dark-mode .resource-accordion__content,
body.dark-mode .academic-accordion__content {
  color: #ffffff;
}

body.dark-mode .academic-accordion__date {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .resource-accordion__content,
body.dark-mode .academic-accordion__content {
  border-top-color: rgba(255, 255, 255, 0.35);
}

body.dark-mode .resource-accordion__content a,
body.dark-mode .academic-accordion__content a {
  color: #ffffff;
}

body.dark-mode .resource-accordion__content :not(pre) > code,
body.dark-mode .academic-accordion__content :not(pre) > code {
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.research-card, .link-card, .academic-card {
  background-color: var(--gray-color);
  border: 2px solid var(--primary-accent);
  padding: 35px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.collab-box {
  background-color: var(--gray-color);
  border: 2px solid var(--primary-accent);
  border-left: 5px solid var(--secondary-accent);
  padding: 30px;
  margin-top: 40px;
  line-height: 1.8;
}

.score-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1.1rem;
}

.score-table td, .score-table th {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}

.score-table th {
  text-align: left;
  font-weight: bold;
  background-color: #e9ecef;
  color: var(--primary-accent);
}

.academic-nav {
  border-bottom: 2px solid var(--primary-accent);
}

.project-status {
  display: inline-block;
  background: #e9ecef;
  color: #555;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.quote-text {
  text-align: center !important;
  margin: 0 auto 20px auto;
  display: block;
  font-style: italic;
  line-height: 1.8;
}

.quote-text cite {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-style: normal;
}

/* Footer & Sistem */
.footer {
  background-color: var(--primary-accent);
  color: var(--gray-color-3);
  border-top: 2px solid var(--secondary-accent);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.footer-copyright {
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
  letter-spacing: 1px;
}

.goToTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: var(--primary-accent);
  right: 30px;
  bottom: 30px;
}

.goToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: invert(100%);
}

.goToTop:hover {
  background-color: var(--secondary-accent);
}

#preloader {
  position: fixed;
  display: flex;
  background: var(--color-preloader-bg);
  z-index: 3000;
  height: 100vh;
  width: 100vw;
}

/* Karanlık Mod (Dark Mode) */
body.dark-mode,
body.dark-mode main,
body.dark-mode .hero,
body.dark-mode .about,
body.dark-mode .projects,
body.dark-mode .contact,
body.dark-mode .projects-container,
body.dark-mode .academic-info-container,
body.dark-mode section {
  background-color: #111111 !important;
  color: #ffffff !important;
}

body.dark-mode p, body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6, body.dark-mode span, 
body.dark-mode td, body.dark-mode th, body.dark-mode strong, body.dark-mode em, 
body.dark-mode label, body.dark-mode a:not(.btn), body.dark-mode .logo, body.dark-mode .nav-link,
body.dark-mode .project-status, body.dark-mode .hero-heading-subtitle, 
body.dark-mode .contact-content, body.dark-mode .about-descr {
  color: #ffffff !important;
}

body.dark-mode .header-sticky {
  background-color: rgba(17, 17, 17, 0.98) !important;
  border-bottom: 2px solid #ffffff !important;
}

body.dark-mode .nav-link.active {
  border-bottom-color: var(--secondary-accent) !important;
}

body.dark-mode .dark-toggle-btn {
  border-color: #ffffff !important;
  color: #ffffff !important;
}

body.dark-mode .research-card, 
body.dark-mode .link-card, 
body.dark-mode .collab-box, 
body.dark-mode .academic-card,
body.dark-mode .service-card {
  background-color: #1a1a1a !important;
  border: 2px solid #ffffff !important;
}

body.dark-mode .contact form .input-box input,
body.dark-mode .contact form textarea {
  background-color: #111111 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

body.dark-mode .contact form .input-box input:focus,
body.dark-mode .contact form textarea:focus {
  border-color: var(--secondary-accent) !important;
}

body.dark-mode .score-table th {
  background-color: #222222 !important;
}

body.dark-mode .academic-section,
body.dark-mode .academic-nav {
  border-bottom: 1px solid #ffffff !important;
}

body.dark-mode .social-links-row a,
body.dark-mode .about-social-list a,
body.dark-mode .footer-social a {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
}

body.dark-mode .social-links-row a:hover,
body.dark-mode .about-social-list a:hover,
body.dark-mode .footer-social a:hover {
  filter: invert(11%) sepia(91%) saturate(5427%) hue-rotate(352deg) brightness(87%) contrast(114%) !important;
}

body.dark-mode .cv-dropdown-menu {
  background-color: #1a1a1a !important;
  border-color: #ffffff !important;
}

body.dark-mode .cv-dropdown-item {
  color: #ffffff !important;
}

body.dark-mode .cv-dropdown-item:hover {
  background-color: #222222 !important;
  color: var(--secondary-accent) !important;
}

body.dark-mode .cv-dropdown-divider {
  background-color: #ffffff !important;
}

body.dark-mode #nav-btn-img,
body.dark-mode .nav-btn img {
  filter: invert(100%) !important;
}

body.dark-mode .nav.open .nav-list {
  background-color: #111111 !important;
}
