/* ============================================================
   PERSONAL WEBSITE — LIGHT CORPORATE THEME
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary:      #1a1a2e;
  --accent:       #0077b6;
  --accent-light: #e8f4fd;
  --bg:           #ffffff;
  --bg-alt:       #f8f9fb;
  --text:         #2d2d2d;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --radius:       10px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --transition:   0.25s ease;
  --max-width:    1100px;
  --font:         'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #005f91;
  border-color: #005f91;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  text-decoration: none;
}
.btn-full { width: 100%; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  padding: 64px 0 48px;
  background: var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1rem;
  color: var(--text);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Avatar */
.avatar-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-light);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.avatar { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 3rem;
  font-weight: 700;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
.about-text p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.02rem;
}
.about-highlights { display: flex; flex-direction: column; gap: 12px; }
.highlight-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.highlight-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.highlight-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.highlight-card strong { display: block; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.highlight-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  margin-top: 28px;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.timeline-bullets {
  margin: 12px 0 16px 18px;
  color: var(--text);
  font-size: 0.95rem;
}
.timeline-bullets li { margin-bottom: 6px; }

/* ---------- TAGS ---------- */
.timeline-tags,
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.project-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.project-link {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.project-link:hover { transform: translate(2px,-2px); text-decoration: none; }
.project-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Mini timeline items (eski pozisyonlar) */
.timeline-item--mini .timeline-content {
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
  padding: 10px 16px;
}
.timeline-item--mini .timeline-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.timeline-item--mini .timeline-company {
  font-size: 0.82rem;
}
.timeline-item--mini .timeline-date {
  font-size: 0.78rem;
}
.timeline-item--mini .timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--border);
  box-shadow: 0 0 0 2px var(--border);
  top: 10px;
}
.timeline-item--mini .timeline-content:hover {
  box-shadow: none;
}

/* Featured project cards */
.project-card--featured {
  border-top: 3px solid var(--accent);
}
.project-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 8px;
}
.project-results {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-results li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}
.project-results li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}
.project-results strong {
  color: var(--primary);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Form */
.contact-form-wrap { display: flex; flex-direction: column; gap: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,119,182,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0b7c3; }

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 24px;
}
.form-status.success { color: #059669; }
.form-status.error   { color: #dc2626; }

/* Calendly */
.calendly-wrap { display: flex; flex-direction: column; gap: 12px; }
.calendly-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}
.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.88rem; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-socials a:hover { color: #fff; text-decoration: none; }

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-delay { transition-delay: 0.18s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner  { grid-template-columns: 1fr; text-align: center; }
  .hero-image  { order: -1; display: flex; justify-content: center; }
  .hero-tagline { margin: 0 auto 36px; }
  .hero-cta    { justify-content: center; }

  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .avatar-wrapper { width: 160px; height: 160px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero    { padding: 64px 0 48px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .timeline { padding-left: 24px; }
  .timeline-dot { left: -22px; }
  .timeline-header { flex-direction: column; }

  .projects-grid { grid-template-columns: 1fr; }
}
