/* ===================================================================
   Yunus Ege Küçük — Portfolio
   Vanilla CSS (converted from Tailwind v4 utilities)
   =================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --light-bg: #f9f9f9;
  --light-surface: #ffffff;

  /* Zinc palette */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;

  --amber-500: #f59e0b;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--light-bg);
  color: var(--zinc-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: var(--zinc-200);
  color: var(--zinc-900);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--zinc-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--zinc-400);
}

/* ---------- Background Blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blobs .blob {
  position: absolute;
  border-radius: 50%;
}

.bg-blobs .blob--top {
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: var(--light-surface);
  filter: blur(120px);
}

.bg-blobs .blob--bottom {
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: rgba(228, 228, 231, 0.5); /* zinc-200/50 */
  filter: blur(120px);
}

/* ---------- Container ---------- */
.container {
  max-width: 64rem; /* 1024px — matches max-w-5xl */
  margin: 0 auto;
  padding: 6rem 1.5rem 0;
}

.container > * + * {
  margin-top: 8rem; /* space-y-32 */
}

/* ---------- Glassmorphism Utilities ---------- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--zinc-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--zinc-200);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--zinc-300);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* ---------- Section Header ---------- */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--zinc-900);
  white-space: nowrap;
}

.section-header .divider {
  height: 1px;
  flex: 1;
  background: linear-gradient(to bottom right, var(--zinc-200), transparent);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
  }
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--zinc-900);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--zinc-500);
  font-weight: 300;
  max-width: 36rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.5rem;
  }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--zinc-900);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--zinc-800);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 9999px;
  color: var(--zinc-600);
  transition: background 0.2s, color 0.2s;
  border: 1px solid var(--zinc-200);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-icon:hover {
  background: var(--zinc-50);
  color: var(--zinc-900);
}

/* Avatar */
.hero__avatar {
  position: relative;
  width: 12rem;
  height: 12rem;
}

@media (min-width: 768px) {
  .hero__avatar {
    width: 16rem;
    height: 16rem;
  }
}

.hero__avatar .glow {
  position: absolute;
  inset: 0;
  background: var(--zinc-200);
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.5;
  transition: opacity 0.5s;
}

.hero__avatar:hover .glow {
  opacity: 0.75;
}

.hero__avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--light-surface);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* ===================================================================
   EDUCATION SECTION
   =================================================================== */
.edu-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edu-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.edu-card__icon {
  padding: 0.5rem;
  background: var(--zinc-100);
  border-radius: 0.5rem;
  border: 1px solid var(--zinc-200);
  color: var(--zinc-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-900);
}

.edu-card .subtitle {
  color: var(--zinc-600);
  font-weight: 500;
  margin-top: 0.25rem;
}

.edu-card .location {
  color: var(--zinc-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.edu-card .gpa {
  color: var(--zinc-700);
  font-weight: 500;
}

.edu-card .dates {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  color: var(--zinc-700);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ===================================================================
   EXPERIENCE SECTION (Timeline)
   =================================================================== */
.timeline {
  position: relative;
  border-left: 1px solid var(--zinc-200);
  margin-left: 1rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .timeline {
    margin-left: 0;
    padding-left: 1.5rem;
  }
}

.timeline__item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline__item {
    padding-left: 0;
  }
}

.timeline__dot {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  top: 0.25rem;
}

/* First (current) dot */
.timeline__dot--current {
  background: var(--zinc-800);
  left: calc(-0.5rem + 31px);
  box-shadow: 0 0 0 4px var(--light-bg);
}

/* Past dots */
.timeline__dot--past {
  background: var(--zinc-300);
  border: 1px solid var(--zinc-400);
  left: calc(-0.5rem + 31px);
  box-shadow: 0 0 0 4px var(--light-bg);
}

@media (min-width: 768px) {
  .timeline__dot--current,
  .timeline__dot--past {
    left: calc(-1.5rem - 0.5rem);
  }
}

.exp-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .exp-card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.exp-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-900);
}

.exp-card .role {
  color: var(--zinc-700);
  font-weight: 500;
}

.exp-card .meta-mobile {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .exp-card .meta-mobile {
    display: none;
  }
}

.exp-card .details {
  margin-top: 1rem;
  color: var(--zinc-600);
  font-size: 0.875rem;
  list-style: disc inside;
}

.exp-card .details li + li {
  margin-top: 0.25rem;
}

.exp-card__aside {
  display: none;
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .exp-card__aside {
    display: block;
  }
}

.exp-card__aside .date {
  color: var(--zinc-700);
  font-size: 0.875rem;
}

.exp-card__aside .place {
  color: var(--zinc-500);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ===================================================================
   PROJECTS SECTION
   =================================================================== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-card__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.star-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zinc-700);
}

.star-badge svg {
  color: var(--amber-500);
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--light-surface);
  border: 1px solid var(--zinc-200);
  color: var(--zinc-600);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.repo-link:hover {
  background: var(--zinc-50);
  color: var(--zinc-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.repo-link:active {
  box-shadow: 0 0 0 2px var(--zinc-200);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zinc-900);
  margin-bottom: 0.5rem;
}

.project-card .desc {
  color: var(--zinc-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  border-radius: 9999px;
  color: var(--zinc-700);
}

/* ===================================================================
   SKILLS SECTION
   =================================================================== */
.skills-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-group h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zinc-900);
  margin-bottom: 1rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  padding: 0.375rem 0.75rem;
  background: var(--light-surface);
  border: 1px solid var(--zinc-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--zinc-700);
  transition: border-color 0.2s;
  cursor: default;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.skill-pill:hover {
  border-color: var(--zinc-300);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  padding: 5rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--zinc-200);
  margin-top: 8rem;
}

.footer p {
  color: var(--zinc-500);
  font-size: 0.875rem;
}

/* ---------- Bottom padding ---------- */
.page-bottom-pad {
  padding-bottom: 5rem;
}

/* ---------- SVG icon sizing helpers ---------- */
.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-md {
  width: 22px;
  height: 22px;
}

.icon-xs {
  width: 14px;
  height: 14px;
}
