/*
Theme Name: Hasan Erdem Portfolio
Theme URI: https://hasanerdem.net/
Description: Hasan Erdem kişisel portfolyo sitesi.
Version: 1.0.0
Text Domain: hasanerdem-portfolio
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1110;
  --bg-soft: #111a18;
  --panel: #151f1d;
  --text: #f2f4ef;
  --muted: #9ba9a2;
  --line: rgba(221, 238, 229, .12);
  --accent: #2d4ce7;
  --accent-dark: #7daf42;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--bg); background: var(--accent); }

.site-header { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; height: 82px; padding: 0 max(6.5vw, calc((100vw - var(--content)) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(184,243,108,.55); border-radius: 50%; color: var(--accent); font-size: 10px; letter-spacing: .04em; }
.desktop-nav { display: flex; align-items: center; gap: 31px; color: #c1cbc4; font-size: 12px; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover, .contact-socials a:hover, .back-top:hover { color: var(--accent); }
.desktop-nav .nav-contact { padding: 10px 14px; border: 1px solid rgba(184,243,108,.4); border-radius: 4px; color: var(--accent); }
.nav-contact span { margin-left: 6px; }
.mobile-menu { display: none; }

.hero { position: relative; min-height: 710px; min-height: max(710px, 100svh); display: flex; align-items: center; overflow: hidden; padding: 130px max(10vw, calc((100vw - 1010px) / 2)) 115px; background: radial-gradient(ellipse at 76% 49%, rgba(54,94,61,.18), transparent 44%), linear-gradient(120deg, #0b1110 42%, #0c1512); }
.hero::before { position: absolute; inset: 0; content: ''; opacity: .26; background-image: radial-gradient(rgba(210,236,215,.28) .65px, transparent .65px); background-size: 29px 29px; mask-image: linear-gradient(90deg, transparent 10%, black 100%); }
.hero-glow { position: absolute; width: 500px; height: 500px; right: 9%; top: 20%; border: 1px solid rgba(184,243,108,.12); border-radius: 50%; box-shadow: 0 0 0 64px rgba(184,243,108,.025), 0 0 0 130px rgba(184,243,108,.02); }
.hero-glow::before, .hero-glow::after { position: absolute; content: ''; border-radius: 50%; }
.hero-glow::before { inset: 72px; border: 1px solid rgba(184,243,108,.12); background: radial-gradient(circle at 40% 45%, rgba(139,188,99,.18), rgba(12,20,17,.2) 60%); }
.hero-glow::after { width: 9px; height: 9px; top: 72px; left: 89px; background: var(--accent); box-shadow: 0 0 22px 7px rgba(184,243,108,.38); }
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(184,243,108,.75); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; }
.hero h1 { margin: 0; font-size: clamp(55px, 7vw, 92px); line-height: 1.06; letter-spacing: -.075em; font-weight: 600; }
.hero h1 span, .section-heading h2 span, .contact-section h2 span { color: var(--accent); }
.hero-copy { max-width: 465px; margin: 25px 0 30px; color: #aab5ad; font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 19px; border-radius: 3px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #10170d; background: var(--accent); }
.button-primary:hover { background: #c9ff84; }
.button span { font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #d5ddd7; font-size: 12px; font-weight: 600; }
.text-link span { color: var(--accent); font-size: 16px; }
.hero-note { position: absolute; right: 6.5vw; bottom: 97px; display: flex; align-items: center; gap: 12px; color: #77837b; font-size: 9px; letter-spacing: .18em; writing-mode: vertical-rl; }
.hero-note span { color: var(--accent); }
.scroll-cue { position: absolute; bottom: 0; left: 50%; width: 1px; height: 64px; background: rgba(255,255,255,.2); }
.scroll-cue span { position: absolute; top: 0; left: -1px; width: 3px; height: 20px; background: var(--accent); }

.section { max-width: var(--content); margin: 0 auto; padding: 125px 30px; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; row-gap: 64px; }
.section-heading h2, .contact-section h2 { margin: 0; font-size: clamp(37px, 4vw, 54px); line-height: 1.16; letter-spacing: -.065em; font-weight: 600; }
.section-heading .eyebrow { margin-bottom: 21px; }
.about-copy { padding-top: 44px; }
.about-copy p { color: var(--muted); font-size: 13px; }
.about-copy .lead { max-width: 480px; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 20px; line-height: 1.5; letter-spacing: -.03em; }
.about-copy .text-link { margin-top: 12px; }
.about-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about-stats div { padding: 23px 20px 0 0; display: flex; align-items: center; gap: 13px; }
.about-stats strong { color: var(--accent); font-family: 'Manrope', sans-serif; font-size: 25px; font-weight: 500; }
.about-stats span { color: var(--muted); font-size: 11px; }

.skills-section { max-width: none; padding: 115px max(30px, calc((100vw - var(--content)) / 2)); background: var(--bg-soft); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-intro { max-width: 355px; margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.skill-grid { max-width: var(--content); margin: 53px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.skill-card { position: relative; min-height: 225px; padding: 26px 22px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: transform .25s ease, border-color .25s ease; }
.skill-card:hover { transform: translateY(-5px); border-color: rgba(184,243,108,.4); }
.card-index { position: absolute; top: 22px; right: 20px; color: #77837b; font-size: 9px; letter-spacing: .1em; }
.skill-icon { height: 42px; margin-bottom: 20px; color: var(--accent); font-size: 29px; line-height: 1; }
.skill-card h3 { margin-bottom: 8px; font-size: 15px; letter-spacing: -.03em; }
.skill-card p { min-height: 39px; margin-bottom: 19px; color: var(--muted); font-size: 10px; }
.skill-line { height: 2px; background: rgba(255,255,255,.09); }
.skill-line span { display: block; width: var(--level); height: 100%; background: var(--accent); }
.small-note { max-width: var(--content); margin: 18px auto 0; color: #758179; font-size: 10px; }

.experience-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { position: absolute; top: 8px; bottom: 34px; left: 4px; width: 1px; content: ''; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding-bottom: 36px; }
.timeline-dot { position: absolute; top: 4px; left: -26px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); }
.timeline-date { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.timeline-detail h3 { margin: -5px 0 3px; font-size: 15px; letter-spacing: -.02em; }
.timeline-detail p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.timeline-detail .timeline-place { margin-bottom: 10px; color: #d2d9d3; font-size: 10px; }

.projects-section { max-width: none; padding: 115px max(30px, calc((100vw - var(--content)) / 2)); background: var(--bg-soft); }
.project-grid { max-width: var(--content); margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { min-width: 0; }
.project-art { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; }
.art-one { background: linear-gradient(135deg, #1e4137, #16211e 72%); }
.art-window { width: 70%; height: 64%; overflow: hidden; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: #e8eee2; transform: rotate(-4deg); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.art-window > span { display: inline-block; width: 5px; height: 5px; margin: 8px 0 0 8px; border-radius: 50%; background: #85ae6c; }
.art-window-body { height: calc(100% - 25px); padding: 20px; display: flex; align-items: end; gap: 8px; }
.art-window-body i { flex: 1; height: 50%; background: #a7ca82; }
.art-window-body i:nth-child(2) { height: 80%; background: #416d51; }
.art-window-body i:nth-child(3) { height: 65%; background: #d2a17d; }
.art-two { background: linear-gradient(145deg, #34304e, #1a1828 75%); }
.art-orbit { position: relative; width: 155px; height: 155px; display: grid; place-items: center; border: 1px solid rgba(190,177,255,.6); border-radius: 50%; transform: rotate(-25deg); }
.art-orbit::before, .art-orbit::after { position: absolute; content: ''; width: 205px; height: 78px; border: 1px solid rgba(190,177,255,.45); border-radius: 50%; }
.art-orbit::after { transform: rotate(65deg); }
.art-orbit strong { color: #f2eaff; font-family: 'Manrope', sans-serif; font-size: 18px; letter-spacing: .14em; transform: rotate(25deg); }
.art-orbit b { position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #cab6ff; box-shadow: 0 0 14px #b79cff; }
.art-orbit b:nth-child(1) { top: 18px; left: 24px; }.art-orbit b:nth-child(2) { right: -3px; bottom: 52px; }.art-orbit b:nth-child(3) { bottom: 2px; left: 55px; }
.art-three { background: linear-gradient(125deg, #4c321f, #201813 72%); }
.art-type { position: relative; z-index: 1; color: #f8dfc1; font-family: 'Manrope', sans-serif; font-size: 35px; font-weight: 800; line-height: .93; letter-spacing: -.09em; transform: rotate(-8deg); }
.art-type em { color: #f0a66e; font-style: normal; }
.art-shape { position: absolute; right: 21%; bottom: -63px; width: 180px; height: 180px; border: 1px solid rgba(255,205,154,.5); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,205,154,.04), 0 0 0 42px rgba(255,205,154,.035); }
.project-meta { margin: 20px 0 8px; display: flex; justify-content: space-between; color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.project-meta span + span { color: #78847c; }
.project-card h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.03em; }
.project-card > p { margin: 0; color: var(--muted); font-size: 11px; }

.contact-section { position: relative; min-height: 525px; padding: 110px 24px 95px; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 70%, rgba(80,120,55,.13), transparent 42%), #0b1110; }
.contact-orb { position: absolute; z-index: 0; width: 380px; height: 380px; left: calc(50% - 190px); top: 13%; border: 1px solid rgba(184,243,108,.09); border-radius: 50%; box-shadow: 0 0 0 45px rgba(184,243,108,.02), 0 0 0 92px rgba(184,243,108,.015); }
.contact-section > *:not(.contact-orb) { position: relative; z-index: 1; }
.contact-section .eyebrow { margin-bottom: 20px; }
.contact-section h2 { font-size: clamp(42px, 5vw, 65px); }
.contact-copy { margin: 17px auto 25px; color: var(--muted); font-size: 12px; }
.contact-socials { margin-top: 38px; display: flex; justify-content: center; gap: 28px; color: #9da9a1; font-size: 10px; }
.site-footer { min-height: 78px; padding: 18px max(6.5vw, calc((100vw - var(--content)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 11px; }
.site-footer .brand-mark { width: 29px; height: 29px; font-size: 9px; }
.site-footer p, .back-top { margin: 0; color: #77837b; font-size: 9px; }
.back-top { transition: color .2s ease; }

/* Fotoğraf Kapsayıcısı */
.about-image-wrapper {
  margin-top: 36px;
  position: relative;
  width: 100%;
  max-width: 440px;
}

/* Hafif neon/yeşil arka plan ışığı (sitenin temasına uyumlu) */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(184, 243, 108, 0.4), transparent 60%);
  border-radius: 20px;
  z-index: 0;
}

.about-image {
  height: 320px;
}

/* Border Radius'lu Fotoğraf */
.about-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 480px;            /* İsteğe göre 420px - 500px arası ayarlayabilirsiniz */
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  filter: grayscale(15%) contrast(105%); /* Hafif estetik filtre */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Ana Halka Kapsayıcısı */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  right: 9%;
  top: 20%;
  border: 1px solid rgba(184, 243, 108, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(184, 243, 108, .025), 0 0 0 130px rgba(184, 243, 108, .02);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Metin seçimini veya tıklamaları engellemesin */
}

/* Eski ::before yeşil arka planını kaldırıp avatarın arkasına taşıyoruz */
.hero-glow::before {
  display: none;
}

hero-glow {
    width: 300px;
    height: 300px;
    right: -70px;
    top: 22%;
    opacity: 0.55;
  }

  .hero-avatar-wrap {
    width: 210px;
    height: 210px;
    padding: 5px;
  }


  /* Proje Görsel Alanı */
.project-art {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: 8px; /* Köşeleri yumuşatır */
  border: 1px solid var(--line);
  background: var(--panel);
}

/* Eklenen Proje Fotoğrafı */
.project-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.92); /* Karanlık temayla uyumlu durması için hafif kısık */
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Karta gelindiğinde fotoğrafa hafif zoom ve canlanma efekti */
.project-card:hover .project-img {
  transform: scale(1.05);
  filter: brightness(1.02);
}


/* Yörüngedeki küçük parlayan yeşil nokta (üstte kalması için z-index 3 verildi) */
.hero-glow::after {
  position: absolute;
  content: '';
  border-radius: 50%;
  width: 9px;
  height: 9px;
  top: 72px;
  left: 89px;
  background: var(--accent);
  box-shadow: 0 0 22px 7px rgba(184, 243, 108, .38);
  z-index: 3;
}

/* Görseli çevreleyen iç halka ve çerçeve */
.hero-avatar-wrap {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  padding: 8px; /* Dış ince çizgi ile görsel arası boşluk */
  border: 1px solid rgba(184, 243, 108, 0.25);
  background: radial-gradient(circle at 40% 45%, rgba(139, 188, 99, .15), rgba(12, 20, 17, .6) 70%);
  box-shadow: inset 0 0 35px rgba(184, 243, 108, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Daire Görsel */
.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(184, 243, 108, 0.18);
  /* Sayfanın karanlık ve yeşil atmosferine yediren estetik harmanlama */
  filter: contrast(105%) brightness(95%);
}

.about-image:hover {
  filter: grayscale(0%) contrast(100%);
  transform: translateY(-4px);
}
@media (max-width: 850px) {
  .site-header { padding: 0 28px; }
  .desktop-nav { gap: 19px; }
  .hero { padding-left: 9vw; }
  .hero-glow { right: -14%; opacity: .65; }
  .section { padding: 95px 28px; }
  .skills-section, .projects-section { padding: 95px 28px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-section { gap: 45px; }
  .timeline-item { grid-template-columns: 105px 1fr; }
  .project-art { height: 190px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 68px; }
  .site-header { height: 68px; padding: 0 21px; }
  .desktop-nav { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary { width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; list-style: none; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 19px; height: 1px; background: var(--text); }
  .mobile-menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; top: 50px; right: -8px; width: min(280px, calc(100vw - 42px)); padding: 10px; display: grid; border: 1px solid var(--line); background: #111a18; box-shadow: 0 18px 35px rgba(0,0,0,.3); }
  .mobile-menu nav a { padding: 13px 12px; color: #d6ded8; font-size: 13px; }
  .mobile-menu nav a + a { border-top: 1px solid var(--line); }
  .hero { min-height: 680px; min-height: max(680px, 100svh); padding: 120px 25px 105px; }
  .hero h1 { font-size: clamp(54px, 15vw, 78px); }
  .hero-copy { max-width: 380px; font-size: 13px; }
  .hero-glow { width: 330px; height: 330px; right: -170px; top: 24%; opacity: .45; }
  .hero-note { right: 20px; bottom: 88px; }
  .hero-actions { gap: 17px; flex-wrap: wrap; }
  .button { min-height: 45px; padding: 0 14px; font-size: 11px; }
  .section { padding: 78px 23px; }
  .about-section { grid-template-columns: 1fr; gap: 25px; }
  .about-copy { padding-top: 0; }
  .about-stats { margin-top: 15px; }
  .about-stats div { padding-right: 8px; gap: 7px; }
  .about-stats strong { font-size: 21px; }
  .about-stats span { font-size: 9px; }
  .skills-section, .projects-section { padding: 78px 23px; }
  .section-heading-row { display: block; }
  .section-intro { margin-top: 19px; }
  .skill-grid { gap: 10px; margin-top: 33px; }
  .skill-card { min-height: 206px; padding: 22px 15px 17px; }
  .skill-card h3 { font-size: 13px; }
  .skill-card p { font-size: 9px; }
  .small-note { line-height: 1.5; }
  .experience-section { grid-template-columns: 1fr; gap: 38px; }
  .timeline { padding-left: 23px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-bottom: 28px; }
  .timeline-dot { left: -23px; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 32px; }
  .project-art { height: 230px; }
  .contact-section { min-height: 490px; padding: 85px 22px 75px; }
  .contact-orb { width: 290px; height: 290px; left: calc(50% - 145px); top: 20%; }
  .contact-copy { max-width: 300px; line-height: 1.7; }
  .contact-socials { gap: 19px; }
  .site-footer { padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
