/* 
    GENEL AYARLAR
    */
:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --accent-color: #d946ef;
  --glow-color: rgba(217, 70, 239, 0.25);
  --nav-bg: rgba(15, 23, 42, 0.95);
}
/* 
   SCROLLBAR 
    */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-color);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 20px;
  border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #fff;
}
html {
  scroll-behavior: smooth;
}
body,
.logo,
.menu li a,
.section-title,
.hero-subtitle,
button,
.card h3,
.interest-box,
.skill-tag,
.timeline-item::before,
.timeline-item .year {
  transition: all 0.5s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: linear-gradient(
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.95)
    ),
    linear-gradient(var(--accent-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-color) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* 
   2. NAVİGASYON
  */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 100%;
}

.logo {
  font-family: "Consolas", monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
  z-index: 1001;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.menu {
  display: flex;
  gap: 30px;
  margin-left: 40px;
}

.menu li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 0;
  border-radius: 6px;
  display: inline-block;
  width: 85px;
  text-align: center;
  transition: all 0.3s ease;
}

.menu li a.active,
.menu li a:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}
/* 
    RESPONSIVE (MOBİL) MENÜ
    */
.hamburger {
  display: none;
  cursor: pointer;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--accent-color);
  border-radius: 3px;
  box-shadow: 0 0 5px var(--accent-color);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
    border-radius: 0 0 15px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.15s ease-out;
  }
  .menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .menu li {
    margin: 3px 0;
  }

  /* Hamburger X Animasyonu */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* =========================================
   SAYFA BÖLÜMLERİ VE DÜZEN (GÜNCEL)
   ========================================= */

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-section {
  min-height: 100vh;
  padding: 120px 0 60px 0;
}
/* SADECE ANA SAYFA (HOME) - SOLA HİZALI */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  padding-top: 0;
  text-align: left;
}

header {
  height: 80px;
  display: flex;
  align-items: center;
}

/* Hero */
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: -5px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--accent-color);
  letter-spacing: 2px;
}
.hero-dionysos {
  font-family: "Consolas", monospace;
  color: #64748b;
  margin-top: 10px;
}

/* About */
.content-container {
  max-width: 800px;
}
.lead-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #cbd5e1;
}
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.interest-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}
.interest-box h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
}

/* CV Section */
.cv-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cv-column h3.cv-heading {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}
.timeline-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
}
.timeline-item .year {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: bold;
}
.timeline-item h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 5px 0;
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.skill-tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Projects */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 20px;
}
.card {
  height: auto !important;
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: all 0.5s ease;
}
.card::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.1),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}
.cards-wrapper:hover .card::before {
  opacity: 1;
}
.card-content {
  background: #0f172a;
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}
.card p {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.card a {
  margin-top: auto;
  color: #fff;
  font-size: 0.85rem;
  width: max-content;
  border-bottom: 1px solid var(--accent-color);
}

/* Contact */
.contact-container {
  max-width: 600px;
}
.form-group {
  margin-bottom: 15px;
}
input,
textarea {
  width: 100%;
  padding: 15px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}
button {
  background: var(--accent-color);
  color: #0f172a;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}
button:hover {
  background: #fff;
}

/* 
    SOSYAL MEDYA KONUMLANDIRMA 
    */

.social-connect {
  margin-top: 40px;
  text-align: left;
}

.social-connect h3 {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 15px;
}

.social-links-row {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
}

.social-icon {
  font-size: 2rem;
  color: #94a3b8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  text-shadow: 0 0 15px var(--glow-color);
}
/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 0.9rem;
}

/* 
   8. PROFİL FOTOĞRAFI TASARIMI 
    */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
  position: relative;
}

.profile-frame {
  flex-shrink: 0;
  position: relative;
  margin-top: 20px;
  z-index: 10;
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 20px var(--glow-color);
  transition: all 0.5s ease;
}

.profile-frame:hover .profile-img {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--accent-color);
}
/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .profile-img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }
  .interests-grid {
    justify-content: center;
  }
}
.nav-icon {
  flex-shrink: 0;
  height: 40px;
  width: auto;

  filter: brightness(0) invert(1);
}

.logo .nav-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 3px var(--accent-color))
    drop-shadow(0 0 3px var(--accent-color));
}
@media (max-width: 768px) {
  .nav-icon {
    height: 40px !important;
    width: auto !important;
  }
  .logo {
    font-size: 1.3rem;
  }
}
/*  GLITCH EFFECT  */
.hero-title {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.hero-title:hover {
  text-shadow: 0 0 15px rgba(217, 70, 239, 0.5);

  color: #fff;
  animation: breathe-effect 0.5s ease-out forwards;
}

@keyframes breathe-effect {
  0% {
    transform: scale(1);
    letter-spacing: normal;
  }
  50% {
    transform: scale(1.02);
    letter-spacing: 1px;
  }
  100% {
    transform: scale(1);
    letter-spacing: normal;
  }
}

/* Ana Başlık (Sarp Mataş) ve Bölüm Başlıkları için */
.hero-title,
.section-title {
  background: linear-gradient(135deg, #fff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.2));
}
/* =========================================
   GELİŞMİŞ PROJE KARTLARI (projects.html)
   ========================================= */
.project-card {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: auto !important;
  min-height: 320px;
  justify-content: flex-start !important;
}

/* Kart İçeriği Düzeni */
.card-content {
  background: transparent !important;
  padding: 25px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 1. Üst Kısım: İkon ve Başlık */
.card-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.title-area h3 {
  margin: 0 !important;
  font-size: 1.2rem;
  color: #fff;
}

/* Durum Rozeti  */
.status-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-badge.ongoing {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* 2. Orta Kısım: Açıklama */
.card-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px !important;
  flex-grow: 1;
}

/* 3. Alt Kısım: Teknoloji Etiketleri */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-stack span {
  font-size: 0.75rem;
  font-family: "Consolas", monospace;
  background: rgba(15, 23, 42, 0.8);
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--accent-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.project-card:hover .tech-stack span {
  border-color: var(--accent-color);
  background: rgba(217, 70, 239, 0.1);
}

/*Butonlar */
.card-actions {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.btn-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e2e8f0 !important;
  text-decoration: none;
  transition: 0.3s;
  border-bottom: none !important;
}

.btn-source:hover {
  color: var(--accent-color) !important;
  transform: translateX(5px);
}
/* KARTLARIN DÜZENİ */
.project-card {
  cursor: pointer;
  height: auto !important;
  min-height: 250px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}
.click-hint {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* MODAL (POPUP) TASARIMI */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--accent-color);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

/* Kapatma Çarpısı */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-modal:hover {
  color: #fff;
}

/* Modal İçeriği */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}
.modal-header h2 {
  color: #fff;
  margin: 0;
}

#m-desc {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-tech h4 {
  color: var(--accent-color);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.modal-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.modal-btn:hover {
  background: #fff;
}
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}
/* INFINITE SCROLL BAR */
.tech-marquee {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}
.tech-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}
.tech-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.tech-marquee .content {
  display: flex;
  gap: 50px;
  padding-right: 50px;
}

.tech-marquee span {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.tech-marquee span i {
  color: var(--accent-color);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 3. Mobil */
@media (max-width: 768px) {
  .profile-frame {
    margin-top: 0 !important;
    margin-bottom: 20px;
  }

  .about-container {
    align-items: center !important;
  }
}
/* HERO BÖLÜMÜNDEKİ SOSYAL İKONLAR */
.hero-socials {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-socials a {
  font-size: 1.8rem;
  color: #94a3b8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-socials a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  text-shadow: 0 0 15px var(--glow-color);
}
