/* ═══════════════════════════════════════════════════
   Serkan Ekenel — css/main.css
   Shared styles — all pages
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&display=swap');

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manjari', 'Segoe UI', Arial, sans-serif;
  color: #222;
  background-color: #fff;
  background-image: url('../images/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 640px 740px;
}

/* ── HEADER — default (about / portfolio / resume) ── */
header {
  background: rgba(255,255,255,0.97);
  text-align: center;
  padding: 28px 20px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.site-name {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 52px; font-weight: 700; color: #111;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 4px;
}
.site-email { font-family: 'Manjari', Arial, sans-serif; font-size: 16px; color: #444; margin-bottom: 18px; }
.site-email a { color: #444; text-decoration: none; }
.site-email a:hover { color: #007ecc; }

/* (home header is now identical to all other pages) */

/* ── NAVIGATION ──────────────────────────────────── */
nav { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 20px 14px; }
nav a {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 18px; font-weight: 700; color: #000;
  text-decoration: none; padding: 4px 12px;
  position: relative; transition: color .18s;
}
nav a:hover { color: #007ecc; }
nav a.active { color: #007ecc; }
nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 12px; right: 12px;
  height: 2.5px; background: #007ecc; border-radius: 2px;
}
nav .sep { font-family: 'Manjari', Arial, sans-serif; font-size: 18px; font-weight: 700; color: #007ecc; padding: 0 2px; user-select: none; }

/* ── PAGE HERO ───────────────────────────────────── */
.page-hero { text-align: center; padding: 52px 20px 32px; }
.page-hero h1 { font-family: 'Manjari', Arial, sans-serif; font-size: 38px; font-weight: 700; color: #111; }
.page-hero p { font-size: 16px; color: #6b7280; margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── SECTION DIVIDER ─────────────────────────────── */
.section-label {
  max-width: 1180px; margin: 32px auto 12px; padding: 0 40px 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: #9ca3af; border-bottom: 1px solid #e5e7eb;
}

/* ── CONTENT CARD ────────────────────────────────── */
.content-card {
  max-width: 860px; margin: 0 auto 40px; padding: 40px 48px;
  background: rgba(255,255,255,0.95); border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ── PORTFOLIO GRID ──────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 32px;
}

/* ── PROJECT CARD ────────────────────────────────── */
.proj-card {
  display: block; text-decoration: none;
  overflow: hidden; cursor: pointer;
  border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1; position: relative;
}
.card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.card-front {
  position: absolute; inset: 0;
  background: #f0f0f0;
  overflow: hidden;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .35s ease;
}
.proj-card:hover .card-img { transform: scale(1.04); }
.card-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.proj-card:hover .card-overlay { opacity: 1; transform: translateY(0); }
.overlay-content { text-align: center; padding: 20px 18px; width: 100%; }
.overlay-title {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 20px; font-weight: 700; color: #333;
  text-transform: uppercase; letter-spacing: .5px;
  line-height: 1.25; margin-bottom: 8px;
}
.overlay-sub { font-size: 13px; color: #333; opacity: 0.85; margin-bottom: 18px; line-height: 1.4; }
.overlay-btn {
  display: inline-block; padding: 8px 20px; border-radius: 4px;
  background: rgba(0,0,0,0.2); color: #fff;
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  transition: background .2s;
}
.proj-card:hover .overlay-btn:hover { background: rgba(0,0,0,0.35); }

/* ══════════════════════════════════════════════════
   HOME INTRO — editorial, no card/box
══════════════════════════════════════════════════ */
.home-intro {
  max-width: 820px;
  margin: 48px auto 44px;
  padding: 0 40px;
  text-align: center;
}

.intro-lead {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  letter-spacing: 0.1px;
}

.intro-body {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 18px;
  font-style: italic;
  border-left: 3px solid #007ecc;
  padding-left: 24px;
  text-align: left;
}

.intro-close {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 768px) {
  .home-intro { padding: 0 20px; margin: 32px auto 32px; }
  .intro-lead  { font-size: 18px; }
  .intro-body  { font-size: 15px; padding-left: 16px; }
  .intro-close { font-size: 14px; }
}

/* ══════════════════════════════════════════════════
   SLIDESHOW
══════════════════════════════════════════════════ */
.slideshow-wrap {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 40px;
}

.slideshow-container {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  min-height: 340px;
  overflow: hidden;
}

/* Vertical "PRODUCT FEATURES" label on the left */
.slide-side-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6b7280;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  padding: 20px 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  user-select: none;
}

/* Slides viewport */
.slides-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Individual slide */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Top caption (e.g. "Encourages Socializing:") */
.slide-caption-top {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-align: center;
  padding: 12px 20px 6px;
  width: 100%;
  letter-spacing: 0.3px;
}

/* Slide image */
.slide img:not(.slide-icon) {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  flex: 1;
}

/* Placeholder when image missing */
.slide-placeholder {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  min-height: 260px;
}

/* Bottom caption row: small icon + text */
.slide-caption-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 14px;
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 13px;
  color: #374151;
  width: 100%;
  justify-content: center;
}
.slide-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Arrow buttons */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #374151;
  cursor: pointer;
  z-index: 10;
  transition: background .2s, box-shadow .2s;
  line-height: 1;
  padding: 0;
}
.slide-arrow:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.slide-prev { left: 6px; }
.slide-next { right: 6px; }

/* ══════════════════════════════════════════════════
   HOME ICON BUTTONS
══════════════════════════════════════════════════ */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 60px;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.93);
  background-image: url('../images/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 320px 370px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  text-decoration: none;
  color: #374151;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.icon-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }

/* Coloured bottom bar */
.icon-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 0 0 10px 10px;
}
.icon-btn.blue::after   { background: #007ecc; }
.icon-btn.red::after    { background: #e11d48; }
.icon-btn.green::after  { background: #05cc73; }
.icon-btn.orange::after { background: #d97706; }

/* Inline SVG icon */
.icon-svg {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  display: block;
  flex-shrink: 0;
}

/* Fallback placeholder */
.icon-ph {
  width: 52px; height: 52px; border-radius: 8px;
  background: #f3f4f6; border: 1.5px dashed #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #9ca3af; margin-bottom: 14px;
}

/* Label text — coloured to match bottom bar */
.icon-btn span {
  font-family: 'Manjari', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.icon-btn.blue   span { color: #007ecc; }
.icon-btn.red    span { color: #e11d48; }
.icon-btn.green  span { color: #05cc73; }
.icon-btn.orange span { color: #d97706; }

/* ── RESUME ──────────────────────────────────────── */
.resume-wrap { max-width:900px; margin:0 auto; padding:20px 40px 60px; }
.resume-doc { background:#fff; border-radius:12px; padding:48px 56px; box-shadow:0 4px 24px rgba(0,0,0,.10); border:1px solid #e5e7eb; }
.resume-doc h1 { font-size:24px; font-weight:900; color:#1e3a8a; text-align:center; letter-spacing:1px; margin-bottom:4px; }
.r-contact { text-align:center; font-size:13px; color:#555; margin-bottom:24px; border-bottom:2px solid #e5e7eb; padding-bottom:14px; }
.r-contact a { color:#007ecc; text-decoration:none; }
.r-section { margin-bottom:22px; }
.r-section h2 { font-size:11px; font-weight:700; color:#007ecc; text-transform:uppercase; letter-spacing:2px; border-bottom:1.5px solid #bfdbfe; padding-bottom:4px; margin-bottom:10px; }
.r-job { margin-bottom:14px; }
.r-job-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:2px; }
.r-job-title { font-size:14px; font-weight:700; color:#111; }
.r-job-date { font-size:13px; color:#6b7280; }
.r-job-org { font-size:13px; color:#374151; font-style:italic; margin-bottom:5px; }
.r-job ul { padding-left:16px; }
.r-job ul li { font-size:13px; color:#374151; margin-bottom:4px; line-height:1.5; }
.r-job ul li b { color:#111; }
.skills-grid { display:grid; grid-template-columns:1fr 1fr; gap:3px 24px; }
.skills-grid li { font-size:13px; color:#374151; list-style:disc; margin-left:16px; margin-bottom:3px; }
.r-cert { font-size:13px; color:#374151; margin-bottom:4px; }
.r-courses-grid { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; margin-top:6px; }
.r-courses-grid span { font-size:12px; color:#374151; }
.r-courses-grid .lbl { font-weight:700; color:#6b7280; font-size:11px; }
.download-bar { text-align:center; margin:24px 0; }
.btn-download { display:inline-block; padding:11px 30px; background:#007ecc; color:#fff; border-radius:8px; text-decoration:none; font-size:14px; font-weight:700; border:2px solid #007ecc; box-shadow:0 3px 12px rgba(0,126,204,.25); transition:background .2s, transform .2s; }
.btn-download:hover { background:#005fa3; transform:translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────── */
footer { background:rgba(255,255,255,0.97); border-top:1px solid #e5e7eb; text-align:center; padding:20px; font-size:13px; color:#6b7280; }
footer a { color:#007ecc; text-decoration:none; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width:900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px 32px; }
}
@media (max-width:768px) {
  .site-name { font-size:36px; }
  nav a { font-size:15px; padding:4px 8px; }
  nav .sep { font-size:15px; }
  .icon-grid { grid-template-columns:1fr 1fr; padding:16px 20px 40px; }
  .resume-doc { padding:28px 20px; }
  .content-card { padding:28px 20px; }
  .slideshow-wrap { padding:0 20px; }
  .resume-wrap { padding:20px 20px 40px; }
  .slide-side-label { display: none; }
}
@media (max-width:480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns:1fr; }
}
