/* ═══════════════════════════════════════════
   DESIGN SYSTEM
═══════════════════════════════════════════ */
:root {
  --bg-primary:   #0D0F1A;
  --bg-card:      #1A1D2E;
  --accent-main:  #496DEE;
  --accent-amber: #6B8DF5;
  --accent-coral: #2D52CC;
  --text-primary: #F0F0F5;
  --text-muted:   #8B8FA8;
  --border:       rgba(73, 109, 238, 0.15);
  --gradient:     linear-gradient(135deg, #496DEE, #6B8DF5);
  --gradient-alt: linear-gradient(135deg, #496DEE, #2D52CC);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:  0 0 40px rgba(73, 109, 238, 0.2);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  999px;
  --nav-h:        68px;
  --ease:         0.3s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-main);
  background: rgba(73, 109, 238, 0.08);
  border: 1px solid rgba(73, 109, 238, 0.2);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-primary);
}

.section-subtitle {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease), border-color var(--ease), color var(--ease), background var(--ease);
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(73, 109, 238, 0.3);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(73, 109, 238, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.btn-outline:hover { border-color: var(--accent-main); color: var(--accent-main); }

.btn-sm  { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg  { padding: 1rem 2.25rem; font-size: 1rem; }

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-text   { opacity: 0.5; }
.btn.loading .btn-loader { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 999;
  padding: 1.1rem 0;
  transition: background var(--ease), padding var(--ease), border-color var(--ease);
}

.navbar.scrolled {
  background: rgba(13, 15, 26, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 34px;
  width: auto;
  display: block;
}

.site-logo--footer {
  height: 28px;
}

.nav-links { display: none; }

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: var(--radius-pill);
  transition: width var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--ease);
  letter-spacing: 0.05em;
}
.lang-btn:hover { border-color: var(--accent-main); color: var(--accent-main); }

.lang-sep { opacity: 0.35; margin: 0 1px; }

html[lang="tr"] .lang-tr,
html[lang="en"] .lang-en { color: var(--accent-main); }

.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 0.4rem; }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  z-index: 998;
}
.nav-links.open .nav-link {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav-close svg { width: 24px; height: 24px; }
.nav-close:hover { color: var(--text-primary); }
.nav-links.open .nav-close { display: flex; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
}

/* ── Hero marquee strips ── */
.hero-marquee {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  transform: translate(-50%, -50%) rotate(-14deg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0.24;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, black 100%);
}

.marquee-row {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 0.875rem;
  width: max-content;
  will-change: transform;
}

.marquee-track--left  { animation: mq-left  34s linear infinite; }
.marquee-track--right { animation: mq-right 38s linear infinite; }

@keyframes mq-left  {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}
@keyframes mq-right {
  from { transform: translateX(-25%); }
  to   { transform: translateX(0); }
}

.marquee-track img {
  width: 260px;
  height: 162px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: block;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}
.blob-1 {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: radial-gradient(circle, #496DEE, #6B8DF5);
  top: -12%;
  right: -8%;
  animation: blob-float 22s ease-in-out infinite;
}
.blob-2 {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  background: radial-gradient(circle, #2D52CC, #496DEE);
  bottom: 0;
  left: -8%;
  animation: blob-float 28s ease-in-out infinite reverse;
}
.blob-3 {
  width: min(300px, 60vw);
  height: min(300px, 60vw);
  background: radial-gradient(circle, #6B8DF5, #496DEE);
  top: 45%;
  left: 32%;
  animation: blob-float 18s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(28px, -42px) scale(1.04); }
  50%       { transform: translate(-18px, 24px) scale(0.97); }
  75%       { transform: translate(36px, 14px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-greeting {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  transition-delay: 0.05s;
}

.hero-name {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  transition-delay: 0.15s;
}

.hero-role {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-primary);
  min-height: 2.2em;
  margin-bottom: 1.5rem;
  transition-delay: 0.25s;
}

.role-prefix { color: var(--accent-amber); }
.typed-cursor { color: var(--accent-main) !important; }

.hero-desc {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  transition-delay: 0.35s;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  transition-delay: 0.45s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-main), transparent);
  animation: scroll-fade 2.2s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
  50%       { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
#hakkimda { background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(26,29,46,0.4) 100%); }

.about-grid { display: grid; gap: 3rem; align-items: center; }

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.25;
  filter: blur(28px);
  animation: pulse-glow 3.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0.38; transform: scale(1.12); }
}

.avatar-initials {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(73, 109, 238, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font-weight: 800;
  color: var(--accent-main);
  box-shadow: var(--shadow-card);
}

.avatar-line1 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.avatar-line2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stats { display: flex; gap: 2.25rem; }

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }

.stat-label--full {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }

.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-amber);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.875rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 109, 238, 0.3);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px;
  height: 46px;
  color: var(--accent-main);
  margin-bottom: 1.125rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════ */
#portfolyo { background: linear-gradient(180deg, rgba(26,29,46,0.4) 0%, var(--bg-primary) 100%); }

.portfolio-grid { display: grid; gap: 1.5rem; }

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
  will-change: transform;
}
.portfolio-card:hover { box-shadow: var(--shadow-glow); }

/* Slider */
.portfolio-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.slider-dots {
  position: absolute;
  bottom: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--ease), transform var(--ease);
  cursor: pointer;
}
.dot.active {
  background: var(--accent-main);
  transform: scale(1.3);
}

/* Portfolio info below slider */
.portfolio-info {
  padding: 1.25rem 1.375rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.portfolio-meta { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portfolio-tag {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.portfolio-meta h3 { font-size: 1.0625rem; font-weight: 700; }
.portfolio-meta p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-wrapper { max-width: 680px; margin: 0 auto; }

.contact-form { display: grid; gap: 1.125rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.55; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px rgba(73, 109, 238, 0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit { align-items: flex-start; }

.form-status {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.success { color: #4ade80; }
.form-status.error   { color: var(--accent-coral); }

.contact-info { margin-top: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-main); }
.contact-detail a { color: var(--text-muted); transition: color var(--ease); }
.contact-detail a:hover { color: var(--accent-main); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border); padding: 1.75rem 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { display: flex; align-items: center; }
.footer-copy { font-size: 0.875rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   MEDIA QUERIES — tablet 640px
═══════════════════════════════════════════ */
@media (min-width: 640px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   MEDIA QUERIES — desktop 1024px
═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .nav-links  { display: flex; gap: 2rem; }
  .hamburger  { display: none; }

  .about-grid { grid-template-columns: 1fr 1.6fr; }

  /* 6-col base lets 3 cards/row (each span 2) and centers the last-row pair */
  .services-grid  { grid-template-columns: repeat(6, 1fr); }
  .service-card   { grid-column: span 2; }
  .service-card:nth-child(7) { grid-column: 2 / 4; }
  .service-card:nth-child(8) { grid-column: 4 / 6; }

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

/* ═══════════════════════════════════════════
   ACCESSIBILITY — reduced motion
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .marquee-track { animation-play-state: paused; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Focus ring */
:focus-visible { outline: 2px solid var(--accent-main); outline-offset: 3px; }
