/*
Theme Name: Ilker Tokat Portfolio
Theme URI: https://example.com/
Author: Ilker Tokat
Author URI: https://example.com/
Description: Kisisel portfolyo temasi. Customizer ile metinler ozellestirilebilir.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: ilker-portfolio
*/

:root {
  --bg: #020306;
  --bg-soft: #070a12;
  --bg-soft-2: #0b1020;
  --text: #eef2ff;
  --muted: #9ba7bc;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --border: rgba(152, 172, 206, 0.22);
  --card: rgba(8, 12, 23, 0.62);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(66, 84, 148, 0.2) 0%, transparent 35%),
    radial-gradient(circle at 88% 0%, rgba(20, 120, 180, 0.15) 0%, transparent 26%),
    linear-gradient(180deg, #020306 0%, #03050c 45%, #050a15 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  pointer-events: none;
}

.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(3, 5, 10, 0.8);
  border-bottom-color: rgba(157, 176, 206, 0.2);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: #eaf1ff;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 24px rgba(79, 140, 255, 0.25);
  transition: text-shadow 0.22s ease, filter 0.22s ease;
}

.logo:hover {
  text-shadow: 0 0 34px rgba(79, 140, 255, 0.45), 0 0 16px rgba(34, 211, 238, 0.25);
  filter: brightness(1.08);
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.45);
  transition: box-shadow 0.22s ease, filter 0.22s ease;
}

.logo:hover::after {
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.65), 0 0 10px rgba(34, 211, 238, 0.45);
  filter: brightness(1.12);
}

.logo span {
  background: linear-gradient(90deg, #a5bff8, #85d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu a {
  text-decoration: none;
  color: #a9b7cf;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 4px 0;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(79, 140, 255, 0.45);
}

.menu a:hover,
.menu a.active {
  color: #fff;
  transform: translateY(-1px);
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(179, 197, 224, 0.25);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

header.site-header {
  padding-top: 128px;
  min-height: 96vh;
  display: grid;
  place-items: center;
  position: relative;
}

.hero {
  text-align: center;
  max-width: 880px;
  animation: fadeUp 0.8s ease;
}

.hero h1 {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -1.4px;
  text-wrap: balance;
}

.hero h1 .name {
  background: linear-gradient(90deg, #ffffff 10%, #b8ceff 50%, #86e9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 16px auto 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 760px;
}

.typing-wrap {
  margin-top: 12px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #d7e8ff;
  letter-spacing: 0.2px;
}

.cursor {
  width: 2px;
  height: 1.25em;
  background: #8cc8ff;
  animation: blink 0.8s steps(1, end) infinite;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn,
button.btn,
input.btn {
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn.primary,
button.btn.primary,
input.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, #3376f7 0%, #0ea5e9 100%);
  box-shadow: 0 8px 24px rgba(58, 113, 240, 0.35);
  border: 1px solid transparent;
}

.btn.secondary {
  color: #dce7ff;
  border: 1px solid var(--border);
  background: rgba(15, 24, 45, 0.5);
}

.btn:hover,
button.btn:hover,
input.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover,
button.btn.primary:hover,
input.btn.primary:hover {
  box-shadow: 0 12px 30px rgba(58, 113, 240, 0.45);
}

.btn.secondary:hover {
  border-color: rgba(120, 172, 255, 0.55);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

section {
  padding: 90px 0;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.5px;
}

.section-title p {
  margin-top: 8px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 181, 255, 0.5);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.45);
}

.about-grid,
.resume-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.skill-item {
  background: rgba(7, 12, 24, 0.7);
  border: 1px solid rgba(157, 174, 204, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.meter {
  margin-top: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(139, 162, 196, 0.2);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work {
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(150, 170, 203, 0.26);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.9));
}

.work:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(127, 174, 255, 0.65);
}

.work-info {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.work-info small {
  color: #bfcee7;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form h3 {
  margin-bottom: 4px;
}

.form-field {
  display: grid;
}

.form-field label {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a1220;
  color: #fff;
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(120, 172, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2);
}

.form-field.hp {
  display: none;
}

.contact-form .btn {
  margin-top: 4px;
  justify-self: start;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(160, 178, 208, 0.2);
  margin-top: 12px;
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid;
}

.notice-success {
  border-color: rgba(20, 196, 110, 0.5);
  background: rgba(13, 64, 39, 0.3);
}

.notice-error {
  border-color: rgba(241, 101, 101, 0.5);
  background: rgba(80, 25, 25, 0.35);
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .menu {
    position: fixed;
    top: 76px;
    right: 4%;
    width: 230px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(160, 176, 205, 0.22);
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(130%);
    transition: transform 0.27s ease;
  }

  .menu.open {
    transform: translateX(0);
  }

  .about-grid,
  .resume-grid,
  .contact-grid,
  .testimonials,
  .portfolio-grid,
  .skills {
    grid-template-columns: 1fr;
  }
}
