/* ==========================================================================
   MALIK YUMNA - PORTFOLIO WEBSITE STYLESHEET
   Dark Crimson & Glassmorphism Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Caveat:wght@500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-black: #08080a;
  --bg-dark: #0d0d11;
  --bg-card: #15151b;
  --bg-glass: rgba(20, 20, 26, 0.75);
  --bg-glass-light: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-red: rgba(197, 24, 40, 0.4);

  --primary-red: #b91524;
  --bright-red: #e6192a;
  --glow-red: rgba(200, 25, 40, 0.35);
  --dark-maroon: #3f090e;
  --maroon-card: linear-gradient(145deg, #44090e, #220306);

  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-gray: #9ca3af;
  --text-muted: #64748b;

  /* Typography */
  --font-headline: 'Bebas Neue', 'Oswald', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & GLOBAL BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08080a;
}
::-webkit-scrollbar-thumb {
  background: #3f090e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(185, 21, 36, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(140, 15, 26, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

/* Left Brand Badge */
.header-brand-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 0.45rem 1.4rem;
  background: rgba(22, 22, 28, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform var(--tr-fast), border-color var(--tr-fast);
}

.header-brand-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary-red);
}

.header-brand-badge .brand-tag-red {
  color: #df2032;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.header-brand-badge .brand-tag-white {
  color: #e5e7eb;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Navigation Pills */
.nav-pills-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 16, 22, 0.7);
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.nav-pill-link {
  padding: 0.45rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all var(--tr-fast);
  border: 1px solid transparent;
  display: inline-block;
}

.nav-pill-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill-link.active {
  color: #ffffff;
  border-color: var(--primary-red);
  background: rgba(185, 21, 36, 0.18);
  box-shadow: 0 0 16px rgba(185, 21, 36, 0.35);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ==========================================================================
   SECTIONS CONTAINER
   ========================================================================== */

.page-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.8rem 4.5rem 2.8rem;
  box-sizing: border-box;
  z-index: 1;
}

/* Vertical Page Indicator (01 / 04, 02 / 04, etc.) */
.section-page-indicator {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  z-index: 10;
  user-select: none;
}

.section-page-indicator .cur-num {
  color: var(--bright-red);
  font-weight: 700;
}

.section-page-indicator .slash-line {
  width: 2px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

.section-page-indicator .total-num {
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Header Typography - Enhanced Presence */
.section-header-wrap {
  margin-bottom: 1.6rem;
}

.section-tag {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.section-tag .tag-num {
  color: var(--bright-red);
}

.section-tag .tag-text {
  color: #e2e8f0;
}

.section-title {
  font-family: var(--font-headline);
  font-size: 4.4rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
}

.section-divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 21, 36, 0.8) 0%, rgba(185, 21, 36, 0.2) 50%, transparent 100%);
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   SECTION 1: HERO / HOME
   ========================================================================== */

#home {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 5rem;
  padding-bottom: 2.8rem;
  min-height: 100vh;
}

/* Huge Background "PORTFOLIO" Text - Positioned cleanly below header with gap, stretched edge-to-edge */
.hero-bg-portfolio-text {
  position: absolute;
  top: max(96px, 9.5vh);
  left: 50%;
  transform: translateX(-50%) scale(1.08, 1.45);
  transform-origin: top center;
  font-family: var(--font-headline);
  font-size: 21.5vw;
  font-weight: 900;
  color: #7b0d17;
  opacity: 0.98;
  line-height: 0.8;
  letter-spacing: 0.015em;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  text-shadow: 0 0 50px rgba(138, 14, 25, 0.5);
  white-space: nowrap;
}

/* Ambient hero red glow behind center */
.hero-glow-sphere {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(175, 20, 34, 0.45) 0%, rgba(90, 8, 15, 0.2) 50%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 2;
}

.hero-main-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
  padding-bottom: 0.5rem;
}

/* Hero Left Details - Placed lower to avoid overlap with PORTFOLIO */
.hero-left-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 5;
  margin-bottom: 2.2rem;
  max-width: 480px;
}

.hero-greeting {
  font-family: var(--font-script);
  font-size: 3.6rem;
  line-height: 1;
  color: #ffffff;
  transform: rotate(-3deg);
  display: inline-block;
  margin-left: 0.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-name {
  font-family: var(--font-headline);
  font-size: 6.2rem;
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  color: #df2032;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  margin-top: 0.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  color: #0b0b0e;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--tr-smooth);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

.btn-explore:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.btn-explore .arrow-icon {
  font-size: 1.15rem;
  transition: transform var(--tr-fast);
}

.btn-explore:hover .arrow-icon {
  transform: translateX(4px);
}

.btn-about-link {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--tr-fast);
  padding: 0.5rem 0.4rem;
}

.btn-about-link:hover {
  color: var(--bright-red);
}

/* Hero Center Malik Photo - Nudged up slightly with ultra-smooth bottom gradient fade */
.hero-center-photo-wrap {
  position: absolute;
  top: max(96px, 11.5vh);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 3;
  pointer-events: none;
  height: auto;
  width: auto;
}

.hero-center-photo {
  height: 114vh;
  max-height: 118vh;
  min-height: 780px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.95));
  position: relative;
  z-index: 3;
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.4) 82%, transparent 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.4) 82%, transparent 88%, transparent 100%);
}

/* Compact Bottom-to-Top Gradient Fade Vignette */
.hero-bottom-fade-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: linear-gradient(to top, var(--bg-black) 0%, rgba(8, 8, 10, 0.85) 45%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

/* Hero Right Stats - Placed lower to avoid overlap */
.hero-right-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
  z-index: 5;
  margin-bottom: 2.2rem;
}

.stat-item-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-number {
  font-family: var(--font-headline);
  font-size: 4rem;
  font-weight: 800;
  color: #df2032;
  line-height: 1;
  text-shadow: 0 0 20px rgba(223, 32, 50, 0.45);
}

.stat-label-wrap {
  display: flex;
  flex-direction: column;
}

.stat-label-top {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.stat-label-bottom {
  font-size: 0.94rem;
  font-weight: 600;
  color: #94a3b8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.stat-separator {
  width: 100%;
  max-width: 270px;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 32, 50, 0.5) 0%, rgba(255, 255, 255, 0.08) 100%);
}

/* ==========================================================================
   SECTION 2: ABOUT
   ========================================================================== */

#about {
  background: radial-gradient(circle at 80% 40%, rgba(138, 14, 25, 0.12) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.about-left-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-bio-paragraph {
  font-size: 1.22rem;
  line-height: 1.85;
  color: #e2e8f0;
  font-weight: 400;
  max-width: 720px;
}

.cert-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.8rem;
  background: rgba(18, 18, 24, 0.75);
  border: 1px solid rgba(197, 24, 40, 0.45);
  border-radius: 9999px;
  color: #e52538;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 0 20px rgba(197, 24, 40, 0.2);
}

.about-cards-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.8rem;
  max-width: 740px;
}

.cert-card-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: rgba(20, 20, 26, 0.55);
  padding: 0.85rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all var(--tr-fast);
}

.cert-card-item:hover {
  background: rgba(185, 21, 36, 0.14);
  border-color: rgba(223, 32, 50, 0.45);
  transform: translateY(-2px);
}

.cert-icon-circle {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #16161f;
  border: 1.5px solid #df2032;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #df2032;
  box-shadow: 0 0 16px rgba(223, 32, 50, 0.3);
  transition: transform var(--tr-fast), background var(--tr-fast);
}

.cert-card-item:hover .cert-icon-circle {
  transform: scale(1.08);
  background: rgba(209, 26, 42, 0.2);
}

.cert-text-wrap {
  display: flex;
  flex-direction: column;
}

.cert-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.cert-item-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: #a1a1aa;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.about-footer-tag {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.about-footer-line {
  width: 44px;
  height: 2px;
  background: var(--bright-red);
}

.about-footer-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* About Right Basketball Photo - Enlarged and prominently featured */
.about-right-photo-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.about-basketball-photo {
  height: 84vh;
  max-height: 86vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%), linear-gradient(to right, transparent 0%, black 14%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%), linear-gradient(to right, transparent 0%, black 14%);
  transition: transform var(--tr-smooth);
}

/* ==========================================================================
   SECTION 3: SKILL & SOFTWARE
   ========================================================================== */

#skill {
  background: radial-gradient(circle at 10% 50%, rgba(138, 14, 25, 0.12) 0%, transparent 60%);
}

.skill-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

/* Left Callout */
.skill-left-callout {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-dashed-accent {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dash-box {
  width: 18px;
  height: 3px;
  background: #df2032;
  border-radius: 2px;
}

.skill-catchphrase-main {
  font-family: var(--font-headline);
  font-size: 5.4rem;
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.skill-catchphrase-highlight {
  color: #c91829;
}

.skill-subtitle-pills {
  font-size: 1.2rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.btn-get-touch {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 2.2rem;
  background: rgba(18, 18, 24, 0.75);
  border: 1px solid var(--border-red);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  width: fit-content;
  backdrop-filter: blur(10px);
  transition: all var(--tr-smooth);
  margin-top: 1.2rem;
}

.btn-get-touch:hover {
  background: rgba(197, 24, 40, 0.2);
  border-color: #df2032;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(223, 32, 50, 0.3);
}

.btn-get-touch .red-arrow {
  color: #df2032;
  font-size: 1.15rem;
  transition: transform var(--tr-fast);
}

.btn-get-touch:hover .red-arrow {
  transform: translateX(4px);
}

.skill-copyright {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 2rem;
}

/* Right Burgundy Panel */
.skill-panel-burgundy {
  position: relative;
  background: var(--maroon-card);
  border: 1px solid rgba(223, 32, 50, 0.35);
  border-radius: 36px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(185, 21, 36, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Timeline connection on the left */
.skill-section-block {
  position: relative;
  padding-left: 1.8rem;
}

.timeline-connector-bar {
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.timeline-bullet-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.skill-block-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

/* Skills White Container for Bar Chart */
.skills-barchart-container {
  background: #ffffff;
  border-radius: 26px;
  padding: 1.5rem 1.8rem 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.barchart-bars-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  align-items: flex-end;
  height: 155px;
  padding-bottom: 0.4rem;
}

.barchart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.35rem;
}

.bar-percentage-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.bar-pillar-wrap {
  width: 32px;
  height: 100%;
  max-height: 115px;
  display: flex;
  align-items: flex-end;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill-pillar {
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #8b0e1a 0%, #1a1a24 60%, #2a2a38 100%);
  border-radius: 6px 6px 0 0;
  transition: height 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.bar-icon-and-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0.4rem;
  max-width: 68px;
}

.bar-mini-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.bar-label-caption {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

/* Software 2-Column Grid */
.software-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.software-pill-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.45rem 1.1rem 0.45rem 0.55rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--tr-fast);
}

.software-pill-item:hover {
  transform: translateY(-2px);
}

.software-app-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.software-info-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.software-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.software-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.software-percent-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.software-track-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.software-fill-line {
  height: 100%;
  width: 0%;
  background: #b91524;
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   SECTION 4: PROJECT
   ========================================================================== */

#project {
  background: radial-gradient(circle at 50% 60%, rgba(138, 14, 25, 0.12) 0%, transparent 70%);
}

.project-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 1.2rem;
}

.project-card {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  transition: transform var(--tr-smooth), border-color var(--tr-smooth), box-shadow var(--tr-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(223, 32, 50, 0.6);
  box-shadow: 0 20px 45px rgba(223, 32, 50, 0.2);
}

.project-card-image-wrap {
  width: 100%;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0b0b0e;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-smooth);
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.project-card-desc {
  font-size: 0.96rem;
  color: #a1a1aa;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.project-tag-pill {
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Bottom Category Filter Bar */
.project-filter-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.4rem;
}

.project-filter-pill-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.filter-btn {
  padding: 0.6rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  transition: all var(--tr-fast);
}

.filter-btn:hover {
  color: #000;
}

.filter-btn.active {
  background: #a3111e;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(163, 17, 30, 0.4);
}

/* ==========================================================================
   SECTION 5: CONTACT
   ========================================================================== */

#contact {
  background: radial-gradient(circle at 85% 50%, rgba(138, 14, 25, 0.14) 0%, transparent 60%);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 4.5rem;
  align-items: center;
}

/* Left Portrait Showcase Card */
.contact-left-card-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-showcase-ambient-glow {
  position: absolute;
  width: 480px;
  height: 660px;
  border-radius: 48px;
  background: radial-gradient(circle, rgba(200, 25, 40, 0.35) 0%, rgba(85, 10, 18, 0.12) 55%, transparent 75%);
  filter: blur(45px);
  z-index: 1;
  pointer-events: none;
}

.contact-portrait-card {
  position: relative;
  width: 410px;
  height: 600px;
  background: linear-gradient(165deg, rgba(38, 8, 14, 0.9) 0%, rgba(18, 18, 24, 0.92) 55%, rgba(10, 10, 14, 0.98) 100%);
  border-radius: 36px;
  border: 1.5px solid rgba(223, 32, 50, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(185, 21, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  z-index: 2;
  transition: transform var(--tr-smooth), border-color var(--tr-smooth);
}

.contact-portrait-card:hover {
  border-color: rgba(223, 32, 50, 0.7);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(223, 32, 50, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Card Header / Status */
.contact-card-top-bar {
  position: absolute;
  top: 1.35rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.status-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.card-brand-tag {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #df2032;
  text-shadow: 0 0 12px rgba(223, 32, 50, 0.4);
}

/* Studio Spotlight & Grid */
.contact-studio-spotlight {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 25, 42, 0.5) 0%, rgba(95, 12, 22, 0.25) 55%, transparent 78%);
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
}

.contact-studio-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* Corner Framing Brackets */
.bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(223, 32, 50, 0.6);
  z-index: 3;
  pointer-events: none;
}

.bracket-tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.bracket-tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.bracket-bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.bracket-br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

/* Photo Container & Image */
.contact-photo-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 92%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 4;
}

.contact-portrait-img {
  max-height: 100%;
  width: auto;
  transform: scale(1.1);
  transform-origin: bottom center;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9));
  mask-image: linear-gradient(to bottom, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 86%, transparent 100%);
}

/* Floating Action Badge */
.contact-badge-connect {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #8b0e1a;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.8rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 32, 50, 0.4);
  border: 2px solid #8b0e1a;
  z-index: 10;
  white-space: nowrap;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}

.contact-badge-connect:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7), 0 0 28px rgba(223, 32, 50, 0.6);
  background: #f8fafc;
}

.contact-badge-connect .arrow {
  color: #8b0e1a;
  font-size: 1.15rem;
  font-weight: 900;
}

/* Right Content */
.contact-right-details {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-main-title {
  font-family: var(--font-headline);
  font-size: 5.4rem;
  line-height: 0.92;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.contact-desc-text {
  font-size: 1.22rem;
  line-height: 1.8;
  color: #e2e8f0;
  max-width: 660px;
}

.contact-links-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.contact-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.8rem;
  background: rgba(18, 18, 24, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  color: #f1f5f9;
  font-size: 1.02rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all var(--tr-fast);
}

.contact-pill-btn:hover {
  background: rgba(185, 21, 36, 0.2);
  border-color: rgba(223, 32, 50, 0.7);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(223, 32, 50, 0.35);
}

.contact-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr-smooth);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-box {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img-wrapper {
  position: relative;
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d12;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.lightbox-close-btn:hover {
  background: var(--bright-red);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 28, 0.8);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--primary-red);
  border-color: var(--bright-red);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

.lightbox-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0.5rem;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-main-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-right-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 0;
    margin-top: 1.5rem;
  }
  .stat-separator {
    display: none;
  }
  .hero-center-photo-wrap {
    order: 2;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 1rem 1.5rem;
  }
  .page-section {
    padding: 5.5rem 2rem 3rem;
    min-height: auto;
  }
  .section-page-indicator {
    display: none;
  }
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .skill-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-cards-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 1.5rem auto 0;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-left-card-wrap {
    order: 2;
  }
  .hero-bg-portfolio-text {
    font-size: 32vw;
  }
  .hero-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .hero-center-photo-wrap {
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
    height: auto;
    order: 2;
  }
  .hero-center-photo {
    height: 65vh;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    justify-content: space-between;
  }
  .nav-pills-container {
    display: none;
    position: fixed;
    top: 75px;
    left: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    background: rgba(14, 14, 20, 0.95);
    padding: 1.2rem;
    border-radius: 20px;
  }
  .nav-pills-container.mobile-active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-left-content {
    align-items: center;
    text-align: center;
  }
  .hero-greeting {
    margin-left: 0;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-right-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .about-cards-2x2 {
    grid-template-columns: 1fr;
  }
  .skills-barchart-container {
    overflow-x: auto;
  }
  .barchart-bars-row {
    min-width: 380px;
  }
  .software-pills-grid {
    grid-template-columns: 1fr;
  }
  .contact-row {
    flex-direction: column;
  }
  .contact-pill-btn {
    width: 100%;
  }
  .contact-portrait-card {
    width: 310px;
    height: 480px;
  }
  .contact-showcase-ambient-glow {
    width: 330px;
    height: 500px;
  }
  .contact-badge-connect {
    bottom: 18px;
    font-size: 0.8rem;
    padding: 0.55rem 1.4rem;
  }
}

