/* ===================================================================
   O B E D  O W U S U – Azure Engineer Portfolio
   =================================================================== */

/* ===========================
   ROOT THEME VARIABLES
   =========================== */
:root {
  /* Palette */
  --bg-page: #020617;              /* main background */
  --bg-panel: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.98);
  --bg-soft: rgba(15, 23, 42, 0.92);
  --bg-soft-alt: rgba(15, 23, 42, 0.88);

  --primary: #38bdf8;              /* Azure blue */
  --primary-soft: rgba(56, 189, 248, 0.18);
  --accent: #f97316;               /* orange accent */
  --accent-soft: rgba(249, 115, 22, 0.25);

  --border-subtle: rgba(148, 163, 184, 0.32);
  --border-strong: rgba(56, 189, 248, 0.9);

  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-soft: #4b5563;

  /* Gradients */
  --grad-page: radial-gradient(circle at 0% 0%, #0f172a 0, #020617 40%, #020617 100%);
  --grad-nav: linear-gradient(120deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98));
  --grad-button: linear-gradient(135deg, #22d3ee, #0ea5e9, #6366f1);
  --grad-outline: conic-gradient(from 140deg, #22d3ee, #6366f1, #f97316, #22d3ee);
  --grad-tag: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(15, 23, 42, 0.98));

  /* Shadows */
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
  --shadow-card: 0 26px 60px rgba(15, 23, 42, 0.95);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.9);

  /* Radius & layout */
  --radius-xl: 1.8rem;
  --radius-lg: 1.3rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --max-width: 1120px;

  /* tighter vertical spacing for all sections */
  --section-y: 1.5rem;

  /* Animations */
  --t-fast: 0.18s ease-out;
  --t-normal: 0.26s ease-out;
  --t-slow: 0.4s ease-out;

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  min-height: 100vh;
  background: var(--grad-page);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Global background fx */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18) 0, transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(129, 140, 248, 0.2) 0, transparent 55%),
    radial-gradient(circle at 60% 15%, rgba(249, 115, 22, 0.16) 0, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.19'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #f9fafb;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 3.9rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: #e0f2fe;
}

/* Generic section layout */
section {
  padding: var(--section-y) 1.5rem;
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Slight glow per section */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

/* =========================================
   ULTRA MODERN  ENTRY OVERLAY
   ========================================= */

:root {
  --bg-body: #020617;
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-soft: rgba(148, 163, 184, 0.35);
  --border-strong: rgba(148, 163, 184, 0.55);
  --radius-xl: 1.8rem;
  --radius-lg: 1.3rem;
  --radius-pill: 999px;
  --t-fast: 0.22s ease-out;
  --grad-button: linear-gradient(135deg, #38bdf8, #818cf8);
}

/* Fix mobile zoom + width overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  overflow-y: auto; /* FIX: allow scrolling on small screens */

  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.18), transparent 55%),
    var(--bg-body);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);

  transition:
    opacity 0.35s ease-out,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.35s ease-out,
    visibility 0.35s ease-out;
}

.entry-overlay.is-hidden {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  filter: blur(2px);
  visibility: hidden;
  pointer-events: none;
}

.entry-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius-xl);
  padding: 2.4rem 2.6rem 2.2rem;
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  color: var(--text-primary);

  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.34s ease-out,
    box-shadow 0.34s ease-out;
}

.entry-overlay.is-hidden .entry-panel {
  transform: translateY(-10px) scale(0.94);
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.entry-panel::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.26), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.22), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.entry-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.6rem;
}

@media (max-width: 880px) {
  .entry-panel {
    padding: 2rem 1.7rem 1.9rem;
    border-radius: 1.4rem;
  }

  .entry-panel-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* SMALL SCREEN FIXES */
@media (max-width: 480px) {
  .entry-overlay {
    align-items: flex-start;
    padding: 1rem;
  }

  .entry-panel {
    margin-top: 1rem;
    padding: 1.7rem 1.3rem 1.5rem;
    border-radius: 1.2rem;
  }

  .entry-title-main {
    font-size: 1.75rem;
  }
  .entry-title-sub {
    font-size: 0.92rem;
  }
  .entry-text {
    font-size: 0.9rem;
  }
}

/* LEFT COLUMN */
.entry-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.entry-avatar {
  width: 44px;
  height: 44px;
  border-radius: 1.3rem;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.24), transparent 60%),
    #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.93);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.entry-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad-button);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.entry-title-main {
  margin-bottom: 0.6rem;
  font-size: clamp(2.2rem, 3.1vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.entry-title-highlight {
  display: block;
  margin-top: 0.15rem;
  background-image: linear-gradient(125deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.entry-title-sub {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.entry-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.entry-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.7rem;
}

.entry-tag {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.entry-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.85);
}

/* CTAs */
.entry-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.entry-cta,
.entry-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    filter var(--t-fast),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}

.entry-cta {
  background: var(--grad-button);
  color: #020617;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.entry-secondary {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}

@media (max-width: 520px) {
  .entry-cta-row {
    flex-direction: column;
  }
  .entry-cta,
  .entry-secondary {
    width: 100%;
  }
}

/* RIGHT COLUMN */
.entry-meta-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 960px) {
  .entry-meta-row {
    grid-template-columns: 1fr;
  }
}

.entry-meta-card {
  padding: 1rem 1.05rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.94));
}

.entry-meta-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.entry-meta-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* TIMELINE */
.entry-meta-timeline {
  margin-top: 0.2rem;
  padding: 1rem 1.1rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background:
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.26), rgba(15, 23, 42, 0.98));
}

.entry-meta-timeline-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.entry-timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  row-gap: 0.2rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  align-items: flex-start;
  padding-block: 0.25rem;
}

.entry-timeline-bullet {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.95);
  margin-top: 0.35rem;
}

.entry-timeline-heading {
  font-weight: 600;
  color: var(--text-primary);
}

.entry-timeline-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ===========================
   HEADER / NAVBAR
   =========================== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  padding: 1rem 1.4rem;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  width: 100%;
  max-width: calc(var(--max-width) + 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  border-radius: 1.4rem;
  background: var(--grad-nav);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  transition: transform var(--t-normal), border-color var(--t-normal), background var(--t-normal);
}

.header.scrolled .header-inner {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.99));
}

/* Brand */
.brand-name {
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.brand-name::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--grad-outline);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 22px rgba(56, 189, 248, 0.9);
}

/* Navbar links */
.navbar {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.88rem;
}

.navbar a {
  position: relative;
  padding: 0.3rem 0.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-button);
  transform: translateX(-50%);
  transition: width var(--t-normal), opacity var(--t-normal);
  opacity: 0;
}

.navbar a:hover,
.navbar a.active {
  color: #e5e7eb;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 80%;
  opacity: 1;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown i {
  font-size: 1rem;
  vertical-align: middle;
}

.dropdown-content {
  position: absolute;
  top: 125%;
  left: 0;
  min-width: 200px;
  padding: 0.4rem 0.35rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity var(--t-normal), transform var(--t-normal);
  z-index: 30;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.dropdown-content a:hover {
  background: rgba(15, 23, 42, 0.96);
  color: var(--primary);
}

/* Mobile menu icon */
#menu-icon {
  display: none;
  font-size: 1.9rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ===========================
   HERO / HOME
   =========================== */
.home {
  padding-top: 7.5rem;
  padding-bottom: 2rem;   /* tighter bottom spacing */
  display: flex;
  justify-content: center;
}

.home-inner {
  max-width: var(--max-width);
  width: 100%;
}

.home-inner-flex {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Left: content */
.home-content h3:first-of-type {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.home-content h1 {
  margin-bottom: 0.2rem;
}

.home-content h3:nth-of-type(2) {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.fancy-title {
  background: var(--grad-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle hero underline */
.home-content::before {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-button);
  margin-bottom: 0.75rem;
}

/* Social buttons row */
.social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  font-size: 0.84rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast),
    color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.social-media svg {
  width: 18px;
  height: 18px;
}

.social-media a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.social-media a:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
  color: #e5e7eb;
  box-shadow: var(--shadow-card);
}

.social-media a:hover::before {
  opacity: 1;
}

/* Right: profile with animated ring */
.home-img {
  display: flex;
  justify-content: center;
}

.home-img-inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

/* Outer animated ring */
.home-img-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32%;
  background: var(--grad-outline);
  opacity: 0.92;
  filter: blur(0.4px);
  animation: rotateRing 14s linear infinite;
  mask:
    radial-gradient(farthest-side, transparent 69%, #000 71%);
}

/* Inner glow */
.home-img-inner::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 30%;
  background: radial-gradient(circle at 30% 0, rgba(56, 189, 248, 0.6), transparent 55%);
  opacity: 0.45;
  filter: blur(10px);
}

/* Actual photo */
.home-img img {
  position: relative;
  z-index: 2;
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 28%;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.9);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.9),
    0 0 42px rgba(56, 189, 248, 0.8);
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}

.home-img-inner:hover img {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(56, 189, 248, 0.9);
}

/* Ring rotation */
@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===========================
   HERO – pill + stats
   =========================== */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--grad-tag);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--grad-button);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

.hero-role {
  font-size: 1.02rem;
  margin: 0.45rem 0 0.4rem;
  font-weight: 500;
  color: #b0c4de;
}

/* Short description under headings */
.hero-meta {
  margin-top: 0.9rem;
  max-width: 32rem;
}

.hero-meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.hero-stat {
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  padding: 0.75rem 0.8rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e5e7eb;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-stat-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===========================
   SECTION HEADINGS
   =========================== */
.heading {
  text-align: center;
  margin-bottom: 1.5rem;  /* tighter */
  position: relative;
}

.heading span {
  background: var(--grad-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading::after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-button);
  margin: 0.7rem auto 0;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;  /* tighter */
  background: var(--grad-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.about-content {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  padding: 2.1rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.about-content h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.about-content p {
  position: relative;
  z-index: 1;
}

/* ===========================
   SKILLS SECTION — FULL STYLE
   (matches About Me heading)
   =========================== */

.skills-modern {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.skills-modern .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* -------------------------------------
   Heading (matches About Me heading)
-------------------------------------- */
.skills-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.skills-title {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f9fafb;  /* White "Skills" */
  margin-bottom: 0.35rem;
}

.skills-title span {
  background: var(--grad-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Gradient "& Tools" */
}

.skills-underline {
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-button);
  margin: 0.3rem auto 0;
  opacity: 0.9;
}

/* -------------------------------------
   Grid layout
-------------------------------------- */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

/* -------------------------------------
   Skill card
-------------------------------------- */
.skills-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 55%),
              rgba(15, 23, 42, 0.92);
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.skills-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.7);
}

/* Card title */
.skills-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Card description */
.skills-card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* -------------------------------------
   Skill Chips
-------------------------------------- */
.skills-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  white-space: nowrap;
}

/* -------------------------------------
   Skill levels
-------------------------------------- */
.skill-level {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

/* Level colors */
.skill-level-advanced {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.skill-level-pro {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.skill-level-growing {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
}

/* -------------------------------------
   Responsive tweaks
-------------------------------------- */
@media (max-width: 640px) {
  .skills-modern {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .skills-card {
    padding: 1.35rem 1.25rem;
  }
}

/* ===========================
   EXPERIENCE – layout
   =========================== */
#work-experience {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Left column: summary */
.experience-summary {
  position: sticky;
  top: 6.5rem;
  align-self: flex-start;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 1.7rem 1.7rem;
}

.experience-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.experience-heading {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.experience-blurb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.experience-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: var(--grad-tag);
  color: var(--text-secondary);
}

/* Right column: timeline */
.experience-timeline {
  position: relative;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Vertical line */
.experience-timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(56, 189, 248, 0.1),
    rgba(56, 189, 248, 0.5),
    rgba(56, 189, 248, 0.1)
  );
}

/* Each node */
.experience-node {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.4rem 1.1rem;
  overflow: hidden;
}

/* Timeline dot */
.experience-node::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 1.2rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle, #38bdf8 0, #0f172a 60%);
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.98),
    0 0 18px rgba(56, 189, 248, 0.9);
}

/* Hover glow */
.experience-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.24), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}

.experience-node:hover::after {
  opacity: 1;
}

/* Node header (top row) */
.experience-node-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

/* Badge with period + type */
.experience-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.74rem;
}

.experience-period {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-secondary);
}

.experience-type {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98));
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.55);
}

/* Org info */
.experience-org {
  text-align: right;
}

.experience-role {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: #e5e7eb;
}

.experience-company {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Bullet points */
.experience-points {
  list-style: none;
  margin-top: 0.3rem;
}

.experience-points li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.experience-points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===========================
   PORTFOLIO / PROJECTS
   =========================== */
.portfolio {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.portfolio .heading {
  margin-bottom: 1.5rem;
}

.portfolio-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.9rem;
}

.project-card {
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.95));
  opacity: 0.3;
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.15) contrast(1.05);
  transition: transform 0.6s ease-out, filter 0.6s ease-out;
  position: relative;
  z-index: 1;
}

/* Align all buttons at bottom */
.project-info {
  position: relative;
  z-index: 2;
  padding: 1.4rem 1.4rem 1.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
}

.project-info h3 {
  font-size: 1rem;
}

.project-info p {
  font-size: 0.86rem;
}

/* Force button to align bottom */
.project-info a {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.98);
  transition: background var(--t-fast), color var(--t-fast),
    box-shadow var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.project-info a::after {
  content: "↗";
  font-size: 0.9rem;
}

.project-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.35) contrast(1.1) brightness(1.03);
}

.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.project-card:hover a {
  background: var(--grad-button);
  color: #0b1120;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

/* ===========================
   CERTIFICATIONS – PREMIUM SAAS 2025
   =========================== */


/* ===========================
   CONTACT
   =========================== */
.contact {
  padding-top: var(--section-y);
  padding-bottom: calc(var(--section-y) + 1rem);
}

.contact .heading {
  margin-bottom: 1.4rem;
}

.contact .section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact form {
  border-radius: 1.7rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem 2rem;
  backdrop-filter: blur(22px);
}

.input-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact input,
.contact textarea {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: var(--bg-soft-alt);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
    background var(--t-fast), transform var(--t-fast);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--text-muted);
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.contact textarea {
  min-height: 130px;
  resize: vertical;
}

/* Primary button (Send Message) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--grad-button);
  color: #0b1120;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  filter: brightness(1.04);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1.6rem;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--t-normal), transform var(--t-normal);
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.9);
}

.toast-error {
  border-color: rgba(248, 113, 113, 0.95);
}

/* ===========================
   CORE STACK STRIP (under Contact)
   =========================== */

#stack {
  padding: 0 1.5rem var(--section-y);
  position: relative;
}

.stack-strip {
  padding: 0;
}

.stack-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 1.7rem;
  border: 1px solid rgba(30, 64, 175, 0.9);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.stack-strip-inner::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.stack-strip-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.9rem;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
}

.stack-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--grad-button);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

.stack-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* marquee */
.stack-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
}

.stack-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: stack-scroll 24s linear infinite;
}

.stack-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.8rem;
  color: #e5e7eb;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.95);
}

.stack-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.stack-item span {
  display: inline-block;
}

@keyframes stack-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.96);
  background: var(--bg-panel);
  padding: 1.6rem 1.5rem 1.8rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-iconTop a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: border-color var(--t-fast), background var(--t-fast),
    transform var(--t-fast), box-shadow var(--t-fast);
}

.footer-iconTop a:hover {
  border-color: var(--border-strong);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .home-inner-flex {
    grid-template-columns: minmax(0, 1.1fr);
    gap: 2.5rem;
  }

  .home-img-inner {
    max-width: 320px;
  }

  .about-content {
    padding-inline: 1.6rem;
  }

  .experience-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    border-radius: 1.1rem;
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 115%;
    right: 0;
    left: 0;
    margin: 0 auto;
    max-width: var(--max-width);
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--t-normal), transform var(--t-normal);
  }

  .navbar.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar a {
    width: 100%;
    text-align: center;
    padding: 0.45rem 0;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0.8rem;
    margin-top: 0.3rem;
  }

  .experience-timeline {
    padding-left: 1.1rem;
  }

  .experience-node::before {
    left: -1.1rem;
  }

  .experience-org {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .toast {
    left: 50%;
    right: auto;
    transform: translate(-50%, 12px);
  }

  .toast.show {
    transform: translate(-50%, 0);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-panel {
    padding-inline: 1.6rem;
  }

  .entry-meta-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-strip-inner {
    padding-inline: 1.3rem;
  }

  #stack {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .home {
    padding-top: 6.7rem;
  }

  .home-inner-flex {
    gap: 2rem;
  }

  .contact form {
    padding-inline: 1.4rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
