/* ============================================================
   Jeff Kangar – Cybersecurity Expert
   v4 – full layout overhaul
   Colors: Blue #2c2cff | Dark #1a1a2e | Text #4a5568
   Fonts: Yeseva One (headings) | Poppins (body)
   ============================================================ */

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  color: #4a5568;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { display: block; width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Yeseva One', serif;
  color: #1a1a2e;
  line-height: 1.2;
}

/* ---- Shared container ------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: 80px 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 16px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 48px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a.active { color: #2c2cff; }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: #2c2cff;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #4a5568;
  border-radius: 2px;
  transition: 0.25s;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: #fff;
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%,
    rgba(180,160,255,0.28) 0%,
    rgba(220,180,255,0.14) 40%,
    transparent 70%);
  pointer-events: none;
}
.page-banner h1 {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* ============================================================
   HOME – HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}

/* Left text panel */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 64px 48px 64px 40px;
}
.hero-left-inner {
  max-width: 500px;
  width: 100%;
}
.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2cff;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: #1a1a2e;
  margin-bottom: 24px;
  line-height: 1.15;
}
.hero-left p {
  font-size: 0.93rem;
  color: #5a6578;
  margin-bottom: 14px;
  max-width: 480px;
}
.hero-subhead {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  color: #1a1a2e;
  margin: 18px 0 8px;
}

/* Right photo panel */
.hero-right {
  position: relative;
  background: #111830;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 40px 0 0 40px;
}
/* Subtle fade on the left edge so photo blends cleanly into the white left panel */
.hero-right::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, rgba(17,24,48,0.45), transparent);
  z-index: 2;
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}

/* Role cards floating on right side */
.role-cards {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 9px 18px 9px 9px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  color: #fff;
  min-width: 148px;
  max-width: 148px;
  cursor: default;
  transition: background 0.3s ease, border-radius 0.3s ease,
              border-color 0.3s ease, max-width 0.35s ease,
              box-shadow 0.3s ease;
}
.role-card:hover {
  background: rgba(44,44,255,0.72);
  border-radius: 14px;
  border-color: rgba(255,255,255,0.35);
  max-width: 240px;
  box-shadow: 0 8px 28px rgba(44,44,255,0.35);
}
.role-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2c2cff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
  margin-top: 1px;
}
.role-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 36px;
  overflow: hidden;
}
.role-label {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  line-height: 1.2;
}
.role-desc {
  font-size: 0.71rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.08s, margin-top 0.3s ease;
  white-space: normal;
  max-width: 170px;
}
.role-card:hover .role-desc {
  max-height: 72px;
  opacity: 1;
  margin-top: 5px;
}

/* ============================================================
   SHARED INNER-PAGE WRAPPER
   ============================================================ */
.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}

/* ============================================================
   RESUME PAGE
   ============================================================ */
.resume-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.resume-main h1,
.resume-main h2 {
  font-family: 'Yeseva One', serif;
  font-size: 1.4rem;
  color: #2c2cff;
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e8ff;
}
.resume-main h1:first-child,
.resume-main h2:first-child { margin-top: 0; }
.resume-main h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 18px 0 3px;
}
.resume-main p {
  font-size: 0.88rem;
  color: #4a5568;
  margin-bottom: 10px;
}
.resume-main ul {
  margin: 6px 0 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
}
.resume-main li {
  font-size: 0.85rem;
  color: #4a5568;
  padding-left: 14px;
  position: relative;
}
.resume-main li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #2c2cff;
  font-size: 0.65rem;
  top: 5px;
}
.resume-main strong { color: #1a1a2e; }
.resume-main hr {
  border: none;
  border-top: 1px solid #eeeeff;
  margin: 20px 0;
}

/* Resume sidebar */
.resume-sidebar { display: flex; flex-direction: column; gap: 20px; }

.resume-photo-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
  line-height: 0;
}
.resume-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.sidebar-box {
  background: #f8f7ff;
  border: 1px solid #e4e0ff;
  border-radius: 12px;
  padding: 22px;
}
.sidebar-box h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2c2cff;
  margin-bottom: 12px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li {
  font-size: 0.8rem;
  color: #4a5568;
  padding: 5px 0;
  border-bottom: 1px solid #eeeeff;
}
.sidebar-box li:last-child { border-bottom: none; }

.resume-form-box {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 22px;
  color: #fff;
}
.resume-form-box h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a0a8ff;
  margin-bottom: 8px;
}
.resume-form-box p {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 14px;
}
.resume-form-box input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.resume-form-box input::placeholder { color: rgba(255,255,255,0.4); }
.resume-form-box input:focus { border-color: #6060ff; }
.resume-form-error {
  background: rgba(255,80,80,0.18);
  border: 1px solid rgba(255,120,120,0.4);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #ffb3b3;
  margin-bottom: 10px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 40px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
.contact-info > p {
  font-size: 0.88rem;
  color: #5a6578;
  margin-bottom: 28px;
}

.contact-bullets { display: flex; flex-direction: column; gap: 20px; margin-bottom: 0; }
.contact-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-bullet-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2c2cff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.contact-bullet strong {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.contact-bullet p { font-size: 0.82rem; color: #6b7280; margin: 0; }

.contact-form h2 { font-size: 1.4rem; margin-bottom: 22px; }

.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.contact-success i {
  font-size: 1.4rem;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-success strong {
  display: block;
  color: #15803d;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.contact-success p {
  font-size: 0.85rem;
  color: #166534;
  margin: 0;
}

.contact-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7f7;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #b91c1c;
  margin-bottom: 14px;
}
.contact-error i { flex-shrink: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #1a1a2e;
  margin-bottom: 12px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  display: block;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #2c2cff; }
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.portfolio-item { overflow: hidden; border-radius: 12px; }
.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
  display: block;
}
.portfolio-item:hover img { transform: scale(1.04); }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 72px;
}
.blog-heading {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 32px;
  color: #1a1a2e;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog card */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.11);
}
.card-thumb {
  display: block;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #c8c0ff, #f0c0e8);
  position: relative;
  flex-shrink: 0;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.blog-card:hover .card-thumb img { transform: scale(1.06); }
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8c0ff 0%, #e8c0f0 100%);
}
.card-thumb-placeholder span {
  background: #2c2cff;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 80%;
}
.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-cat {
  display: inline-block;
  background: #2c2cff;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 9px;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 7px;
  line-height: 1.45;
}
.card-body h3 a:hover { color: #2c2cff; }
.card-excerpt {
  font-size: 0.8rem;
  color: #6b7280;
  flex: 1;
  margin-bottom: 12px;
  line-height: 1.6;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card-date {
  font-size: 0.75rem;
  color: #9ca3af;
}
.card-read {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2c2cff;
  letter-spacing: 0.02em;
}
.card-read:hover { text-decoration: underline; }

/* ============================================================
   BLOG POST (single)
   ============================================================ */
.post-wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-cat {
  background: #2c2cff;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-date { font-size: 0.85rem; color: #9ca3af; }
.post-hero {
  margin-bottom: 32px;
  border-radius: 10px;
  overflow: hidden;
}
.post-hero img { width: 100%; max-height: 400px; object-fit: cover; }
.post-body h2 { font-size: 1.4rem; margin: 28px 0 10px; }
.post-body h3 { font-size: 1.1rem; margin: 22px 0 7px; }
.post-body h4 { font-size: 1rem; margin: 18px 0 6px; font-family: 'Poppins', sans-serif; font-weight: 700; }
.post-body p { margin-bottom: 16px; font-size: 0.95rem; color: #4a5568; }
.post-body ul, .post-body ol { margin: 8px 0 16px 20px; }
.post-body li { margin-bottom: 5px; list-style: disc; color: #4a5568; font-size: 0.93rem; }
.post-body blockquote {
  border-left: 4px solid #2c2cff;
  padding: 12px 20px;
  background: #f5f5ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 20px 0;
  color: #5a6578;
}
.post-body strong { color: #1a1a2e; font-weight: 700; }
.post-body em { font-style: italic; }
.post-body a { color: #2c2cff; text-decoration: underline; }
.post-body img { border-radius: 8px; margin: 18px 0; }
.post-back {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: #2c2cff; color: #fff; }
.btn-primary:hover { background: #1a1acc; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44,44,255,0.28); }
.btn-outline { background: transparent; color: #2c2cff; border: 2px solid #2c2cff; }
.btn-outline:hover { background: #2c2cff; color: #fff; }
.btn-dark { background: #1a1a2e; color: #fff; }
.btn-dark:hover { background: #2d2d4e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #f9f9fb;
  border-top: 1px solid #ebebf0;
  padding: 44px 40px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 24px;
}
.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.footer-nav a::before {
  content: '▸';
  font-size: 0.5rem;
  color: #2c2cff;
}
.footer-nav a:hover { color: #2c2cff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c2cff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: #1a1acc; transform: translateY(-2px); }
.footer-copy { font-size: 0.8rem; color: #a0aec0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 52px 40px; order: 2; }
  .hero-right { min-height: 420px; order: 1; }
  .resume-wrapper { grid-template-columns: 1fr; }
  .resume-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: 62px; padding: 0 24px; }
  .site-logo img { height: 38px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 20px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 11px 0; border-bottom: 1px solid #f4f4f4; font-size: 15px; }
  .site-nav a.active::after { display: none; }

  .page-banner { padding: 36px 0 28px; }
  .page-banner h1 { padding: 0 24px; }
  .hero-left { padding: 36px 24px; }
  .hero-right { min-height: 300px; }
  .role-cards { display: none; }

  .resume-wrapper,
  .contact-wrapper,
  .portfolio-wrapper,
  .blog-wrapper { padding: 32px 24px 52px; }

  .resume-sidebar { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .post-wrapper { padding: 32px 24px 52px; }
  .footer-nav ul { gap: 5px 16px; }
  .site-footer { padding: 36px 24px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .contact-wrapper { padding: 28px 20px 48px; }
}
