/*
Theme Name: HZE Portfolio
Theme URI: https://hzerturk.com
Author: Harun Zafer Ertürk
Author URI: https://hzerturk.com
Description: Premium dark portfolio theme for Harun Zafer Ertürk — Aviation / Operations / Technology. Single-page top-nav layout with full-bleed hero, 2-col hero, 4-col expertise, 3-col highlights, brandless aviation imagery. No build step, no framework, no Elementor.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: hze-portfolio
Tags: dark, portfolio, single-page, premium, aviation, operations, technology
*/

/*
 * Design language adapted from Portfolio Starter (MIT, Benjamin Mullins).
 * v12 restructure: removed floating-glass sidebar; introduced
 * full-width top navbar + 2-column hero + brandless aviation visuals.
 *
 * HZE Palette (v12):
 *   background  #070B14
 *   surface     #0D1827
 *   accent      #4D8DFF
 *   text        #F4F7FB
 *   muted       #9BAABD
 *   border      rgba(155,170,189,.15)
 */

:root {
  --bg:        #070B14;
  --surface:   #0D1827;
  --surface-2: #09121F;
  --ink:       #F4F7FB;
  --muted:     #9BAABD;
  --line:      rgba(155,170,189,.15);
  --accent:    #4D8DFF;
  --accent-lit:#72A7FF;
  --display:   "Archivo","Helvetica Neue",Arial,sans-serif;
  --body:      "Inter","Helvetica Neue",Arial,sans-serif;
  --content-max: 1200px;
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; overflow-x:clip; }
body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   Accessibility
   ============================================================ */
.skip {
  position:absolute; left:12px; top:-60px; z-index:200;
  background: var(--accent); color:#06101F; font-weight:600;
  padding:11px 18px; border-radius:8px; text-decoration:none;
  transition: top .18s ease;
}
.skip:focus { top:12px; }
a:focus-visible, button:focus-visible {
  outline:2px solid var(--accent); outline-offset:3px;
}

/* ============================================================
   Top navbar (v12 — replaces floating sidebar)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(7,11,20,.85);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.navbar .nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar .brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar .nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .18s ease;
}
.navbar .nav-links a:hover { color: var(--ink); }
.navbar .nav-links a[aria-current="true"] { color: var(--ink); }
.navbar .nav-links a[aria-current="true"]::after {
  content:"";
  position:absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* hamburger (mobile only) */
.navbar .navburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  align-items: center; justify-content: center;
  font-size: 18px;
}
.navbar .navburger .bars { display:inline-block; width:16px; height:12px; position:relative; }
.navbar .navburger .bars span {
  position:absolute; left:0; right:0; height:1.5px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.navbar .navburger .bars span:nth-child(1) { top: 0; }
.navbar .navburger .bars span:nth-child(2) { top: 5px; }
.navbar .navburger .bars span:nth-child(3) { top: 10px; }
.navbar[data-mobile-open="true"] .navburger .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.navbar[data-mobile-open="true"] .navburger .bars span:nth-child(2) { opacity: 0; }
.navbar[data-mobile-open="true"] .navburger .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ============================================================
   Content layout (single full-width surface)
   ============================================================ */
.page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 96px 0 88px;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(77,141,255,.025), transparent); }

/* ============================================================
   Eyebrow + headings
   ============================================================ */
.eyebrow {
  display:inline-block;
  font-family: var(--body);
  font-size: 12px; letter-spacing:.28em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom:14px;
}
.sec-head { margin-bottom:36px; max-width: 720px; }
.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing:-.02em; line-height:1.12;
  color: var(--ink);
}

/* ============================================================
   HERO — v12: full-width top navbar above, 2-col layout below
   ============================================================ */
.hero {
  padding: 80px 0 112px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero .copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -.025em;
  line-height: 1.02;
  color: var(--ink);
}
.hero .title em {
  font-style: normal;
  color: var(--accent);
}
.hero .sub {
  margin-top: 22px;
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--muted);
  max-width: 46ch;
}
.hero .actions {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  border:1px solid transparent;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #06101F;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-lit); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.hero .visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.78);
  min-height: 360px;
}
.hero .visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero .visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7,11,20,.55) 100%);
  pointer-events: none;
}

/* ============================================================
   ABOUT (2-col: image left, copy right)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.about-grid .visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.about-grid .visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-grid .copy .sec-title { margin-bottom: 18px; }
.about-grid .copy .lead {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 14px;
}
.about-grid .copy .lead:last-child { margin-bottom: 0; }

/* ============================================================
   EXPERTISE — 4 equal cards on desktop
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  min-height: 200px;
  display: flex; flex-direction: column;
  transition: transform .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(77,141,255,.45); }
.card .ic {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(77,141,255,.10);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 11px;
}
.card p {
  font-size: 14px; line-height: 1.55; color: var(--muted);
}

/* ============================================================
   EXPERIENCE — clean card list
   ============================================================ */
.exp-list { display: flex; flex-direction: column; gap: 14px; }
.exp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 32px 28px;
  transition: transform .22s ease, border-color .22s ease;
}
.exp:hover { transform: translateY(-3px); border-color: rgba(77,141,255,.45); }
.exp .role {
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700; letter-spacing: -.01em;
  color: var(--ink);
}
.exp .meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .04em;
}
.exp p { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 64ch; }

/* ============================================================
   HIGHLIGHTS — 3 equal cards
   ============================================================ */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hl {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px 30px;
  transition: transform .22s ease, border-color .22s ease;
}
.hl:hover { transform: translateY(-4px); border-color: rgba(77,141,255,.45); }
.hl h3 {
  font-family: var(--display);
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.hl p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ============================================================
   CONTACT — left copy + right actions
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-grid .copy .sec-title { margin-bottom: 16px; }
.contact-grid .copy .lead { color: var(--muted); max-width: 50ch; font-size: clamp(15px, 1.25vw, 18px); }
.contact-grid .actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.contact-grid .actions .btn { width: 100%; max-width: 320px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 16px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .navbar .nav-inner { padding: 0 20px; }
  .navbar .nav-links { display: none; }
  .navbar .navburger { display: flex; }
  .navbar[data-mobile-open="true"] .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 20px;
    gap: 18px;
    align-items: flex-start;
  }
  .navbar[data-mobile-open="true"] .nav-links a {
    font-size: 17px;
    padding: 8px 0;
    width: 100%;
  }
  .page { padding: 0 20px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 72px;
  }
  .hero .visual { aspect-ratio: 16 / 11; min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .hero .title { font-size: 44px; }
  .exp { padding: 24px 22px; }
  .hero .actions .btn { width: 100%; justify-content: center; }
}

/* safety: prevent horizontal overflow */
html, body { max-width: 100vw; }
.hero, .section, .about-grid, .cards, .highlights, .exp-list, .contact-grid, .footer {
  overflow-wrap: anywhere; word-break: break-word;
}
