/* ==========================================================================
   CINEMATIC PORTFOLIO - MAIN STYLESHEET
   Usama Bin Ishaq | IT Operations & Asset Management Portfolio
   ========================================================================== */

/* --- 1. FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@600;700;800;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Great+Vibes&family=Herr+Von+Muellerhoff&family=Allura&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/* --- 2. DESIGN TOKENS & VARIABLES --- */
:root {
  --bg-black: #000000;
  --bg-card: #0e0c0a;
  --bg-card-alt: #120f0c;
  --bg-input: #120f0c;
  --bg-surface: #100d0b;
  --bg-tag: #171310;
  --bg-metric: #050403;

  --text-main: #E8DFD8;
  --text-light: #F4EBE2;
  --text-muted: #A8988B;
  --text-sub: #B3A497;
  --text-dim: #8C6D4F;
  --text-dark: #605448;

  --gold-primary: #D4AF37;
  --gold-light: #F7E7C4;
  --gold-mid: #C99E5D;
  --gold-dark: #543B1A;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-glow-subtle: rgba(212, 175, 55, 0.08);
  --bronze-border: rgba(140, 109, 79, 0.4);
  --bronze-border-light: rgba(140, 109, 79, 0.25);

  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-script: 'Herr Von Muellerhoff', 'Allura', cursive;
  --font-serif: 'Cinzel', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-black);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
  background: #cbb59d;
  color: #000000;
}

::-moz-selection {
  background: #cbb59d;
  color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #050403;
}
::-webkit-scrollbar-thumb {
  background: #2a2016;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-mid);
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

img, video {
  max-width: 100%;
  display: block;
}

/* --- 4. CUSTOM CURSOR --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: rgba(235, 215, 195, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-color 0.3s ease;
  backdrop-filter: blur(1px);
  will-change: left, top, width, height, transform;
}

.custom-cursor.hovered {
  width: 48px;
  height: 48px;
  background-color: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

@media (pointer: coarse), (max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }
}

/* --- 5. UTILITY & TYPOGRAPHY CLASSES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 80px;
  }
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.font-script {
  font-family: var(--font-script);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Metallic Text Gradients */
.text-grad-white {
  background: linear-gradient(180deg, #FFFFFF 0%, #D5CBC0 60%, #605448 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
}

.text-grad-gold {
  background: linear-gradient(180deg, #F7E7C4 0%, #C99E5D 55%, #543B1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 25px rgba(201, 158, 93, 0.35));
}

.text-grad-bronze {
  background: linear-gradient(180deg, #DFBE8A 0%, #9B7640 55%, #342410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(155, 118, 64, 0.4));
}

/* Section Eyebrows */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.eyebrow-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.8) 0%, rgba(140, 109, 79, 0.4) 60%, transparent 100%);
}

/* Corner Accents */
.corner-brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.corner-brackets .tl,
.corner-brackets .tr,
.corner-brackets .bl,
.corner-brackets .br {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(212, 175, 55, 0.6);
  transition: all 0.4s ease;
}

.corner-brackets .tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.corner-brackets .tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.corner-brackets .bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.corner-brackets .br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

/* Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- 6. HERO SECTION --- */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background-color: var(--bg-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fixed Video Layer */
.hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-video {
  height: 100vh;
  width: auto;
  max-width: none;
  object-fit: contain;
  transform-origin: right center;
  transform: scale(0.96);
  opacity: 0.95;
}

@media (min-width: 1024px) {
  .hero-video {
    transform: scale(1);
  }
}

.hero-video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
  pointer-events: none;
}

/* Floating Insignia Watermark */
.hero-watermark {
  position: absolute;
  bottom: 24px;
  right: 24px;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-watermark {
    bottom: 40px;
    right: 48px;
  }
}

.hero-watermark-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  filter: blur(24px);
}

.hero-watermark-img-wrap {
  animation: floatWatermark 4.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-watermark-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.25));
}

@media (min-width: 1024px) {
  .hero-watermark-img {
    width: 130px;
    height: 130px;
  }
}

@keyframes floatWatermark {
  0%, 100% {
    transform: translateY(-3px) scale(1);
  }
  50% {
    transform: translateY(3px) scale(1.03);
  }
}

/* Hero Content Layer */
.hero-content-layer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 24px 24px 32px;
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero-content-layer {
    padding: 24px 48px 32px;
  }
}

@media (min-width: 1024px) {
  .hero-content-layer {
    padding: 28px 64px 36px;
  }
}

/* Header & Nav */
.hero-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: auto;
}

.brand-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #EAD8C7;
  transition: opacity 0.3s;
}

.brand-logo:hover {
  opacity: 0.75;
}

.hero-nav {
  display: none;
  align-items: center;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 300;
  text-transform: uppercase;
  color: #C4B5A5;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .hero-nav {
    display: flex;
  }
}

.hero-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.hero-nav a:hover {
  color: #FFF5EB;
}

.hero-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: rgba(212, 175, 55, 0.6);
  transition: width 0.3s ease;
}

.hero-nav a:hover::after {
  width: 100%;
}

.btn-talk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 300;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(140, 109, 79, 0.5);
  color: #EAD8C7;
  background: rgba(18, 15, 12, 0.4);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  margin-left: auto;
}

@media (min-width: 768px) {
  .btn-talk {
    margin-left: 0;
  }
}

.btn-talk:hover {
  border-color: var(--gold-primary);
  color: #FFF5EB;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-talk span.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn-talk:hover span.arrow {
  transform: translate(2px, -2px);
}

/* Hero Main Row */
.hero-main-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin: auto 0;
  padding-top: 16px;
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  .hero-main-row {
    flex-direction: row;
    align-items: center;
  }
}

.hero-left {
  max-width: 680px;
  pointer-events: auto;
  z-index: 20;
}

.hero-title {
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.84;
  margin-bottom: 14px;
  user-select: none;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C4B29E;
  margin-bottom: 16px;
}

.hero-subtitle .dot {
  color: var(--text-dim);
  margin: 0 6px;
}

.hero-desc {
  font-size: clamp(12px, 1.3vw, 13.5px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
  max-width: 540px;
  margin-bottom: 26px;
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid var(--text-dim);
  background: rgba(18, 15, 12, 0.85);
  color: #EAD8C7;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(4px);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 215, 197, 0.4), transparent);
  pointer-events: none;
}

.btn-primary:hover {
  border-color: var(--gold-primary);
  color: #FFF5EB;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid rgba(140, 109, 79, 0.4);
  background: transparent;
  color: #BFA895;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--text-dim);
  color: #EAD8C7;
  transform: translateY(-2px);
}

/* Right Floating Signature Card */
.hero-signature-card {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  padding-right: 80px;
  z-index: 20;
  user-select: none;
}

@media (min-width: 1024px) {
  .hero-signature-card {
    display: flex;
  }
}

.quote-mark {
  font-size: 24px;
  color: var(--gold-mid);
  line-height: 1;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.quote-text {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #E0D3C5;
  margin-bottom: 12px;
  line-height: 1.5;
}

.quote-gold-line {
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, #D4AF37 0%, rgba(232, 215, 197, 0.7) 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  margin-bottom: 8px;
}

.signature-name {
  font-size: 2.3rem;
  color: #D8AB64;
  font-family: var(--font-script);
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* --- 7. ABOUT SECTION --- */
.about-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-color: var(--bg-black);
  padding: 100px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-section {
    padding: 130px 0;
  }
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(160px);
}

.about-glow-1 {
  top: 25%;
  left: 15%;
  width: 32rem;
  height: 32rem;
  background-color: rgba(212, 175, 55, 0.08);
  animation: pulseGlow1 8s ease-in-out infinite;
}

.about-glow-2 {
  bottom: 15%;
  right: 25%;
  width: 28rem;
  height: 28rem;
  background-color: rgba(140, 109, 79, 0.06);
  animation: pulseGlow2 10s ease-in-out infinite;
}

@keyframes pulseGlow1 {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.15); opacity: 0.15; }
}

@keyframes pulseGlow2 {
  0%, 100% { transform: scale(1.15); opacity: 0.05; }
  50% { transform: scale(1); opacity: 0.12; }
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }
}

.about-title {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.88;
  margin-bottom: 24px;
  user-select: none;
}

.about-title span {
  display: block;
}

.about-bio {
  font-size: clamp(13px, 1.4vw, 14.5px);
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  max-width: 580px;
}

.about-bio strong {
  color: #F3DBB3;
  font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bronze-border-light);
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
}

.metric-number.gold {
  color: var(--gold-primary);
}

.metric-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 3D Holographic Card */
.portrait-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1400px;
}

.portrait-glow-ring {
  position: absolute;
  inset: -24px;
  background: conic-gradient(from 0deg, #D4AF37 0%, #8C6D4F 30%, transparent 60%, #D4AF37 100%);
  filter: blur(35px);
  border-radius: 24px;
  pointer-events: none;
  opacity: 0.15;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-container:hover .portrait-glow-ring {
  opacity: 0.35;
  transform: scale(1.1) rotate(180deg);
}

.portrait-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--bronze-border);
  border-radius: 2px;
  background: rgba(18, 15, 12, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.portrait-card:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 30px rgba(212, 175, 55, 0.15);
}

.portrait-card:hover .corner-brackets .tl { transform: translate(-3px, -3px); border-color: var(--gold-primary); }
.portrait-card:hover .corner-brackets .tr { transform: translate(3px, -3px); border-color: var(--gold-primary); }
.portrait-card:hover .corner-brackets .bl { transform: translate(-3px, 3px); border-color: var(--gold-primary); }
.portrait-card:hover .corner-brackets .br { transform: translate(3px, 3px); border-color: var(--gold-primary); }

/* Laser Border Pulse */
.laser-pulse-wrap {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  pointer-events: none;
  overflow: hidden;
}

.laser-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  transform: skewX(-15deg);
  opacity: 0;
  transition: opacity 0.3s;
}

.portrait-card:hover .laser-pulse {
  opacity: 1;
  animation: laserSweep 1.8s linear infinite;
}

@keyframes laserSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.portrait-canvas {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 5;
  background-color: #000000;
  border-radius: 2px;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.94) contrast(1.06) saturate(1.02);
  transition: all 0.7s ease-out;
}

.portrait-card:hover .portrait-img {
  filter: brightness(1.05) contrast(1.12) saturate(1.05);
}

.portrait-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s;
}

.portrait-card:hover .portrait-spotlight {
  opacity: 1;
}

.portrait-shadow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

.portrait-signature {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 20;
  user-select: none;
}

.portrait-signature-text {
  font-size: 2.2rem;
  color: #F2D8A7;
  font-family: var(--font-script);
  filter: drop-shadow(0 0 12px rgba(242, 216, 167, 0.5));
  transition: color 0.3s;
}

.portrait-card:hover .portrait-signature-text {
  color: #FFFFFF;
}

/* Floating Gold Sparks */
.spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
}

.portrait-card:hover ~ .spark-1 {
  top: 25%;
  left: -24px;
  width: 6px;
  height: 6px;
  background-color: #F3DBB3;
  box-shadow: 0 0 8px #D4AF37;
  animation: sparkRise1 2s ease-out infinite;
}

.portrait-card:hover ~ .spark-2 {
  bottom: 30%;
  right: -24px;
  width: 8px;
  height: 8px;
  background-color: #D4AF37;
  box-shadow: 0 0 10px #D4AF37;
  animation: sparkRise2 2.4s ease-out infinite 0.3s;
}

@keyframes sparkRise1 {
  0% { opacity: 0; transform: translate(0, 10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-30px, -50px); }
}

@keyframes sparkRise2 {
  0% { opacity: 0; transform: translate(0, 20px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(40px, -60px); }
}

/* --- 8. PROJECTS SECTION --- */
.projects-section {
  position: relative;
  width: 100vw;
  background-color: var(--bg-black);
  padding: 100px 0 140px;
}

.projects-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .projects-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.projects-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.85;
  user-select: none;
}

.projects-title span {
  display: block;
}

.projects-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 440px;
  margin-top: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .projects-subtitle {
    margin-top: 0;
  }
}

/* Project Card */
.project-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(140, 109, 79, 0.5);
  background-color: var(--bg-card);
  padding: 32px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.98);
  overflow: hidden;
  transition: border-color 0.5s ease;
}

@media (min-width: 640px) {
  .project-card {
    padding: 48px;
  }
}

.project-card:hover {
  border-color: var(--gold-primary);
}

.project-card-top-flare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
}

.project-watermark-num {
  position: absolute;
  bottom: -24px;
  right: -12px;
  font-size: clamp(6rem, 15vw, 12rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: rgba(234, 216, 199, 0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.project-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .project-card-grid {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
  }
}

.project-meta-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.project-index {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-primary);
}

.project-category {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-name {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.project-card:hover .project-name {
  color: var(--gold-light);
}

.project-desc {
  font-size: clamp(12.5px, 1.3vw, 14px);
  font-weight: 300;
  color: #BDB0A4;
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  max-width: 650px;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--bronze-border-light);
}

.tech-pill {
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid rgba(140, 109, 79, 0.4);
  background-color: #16120E;
  color: #E8D7C5;
  transition: all 0.3s;
}

.project-card:hover .tech-pill {
  border-color: rgba(212, 175, 55, 0.5);
}

/* Right Metrics Column */
.project-metrics-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 1024px) {
  .project-metrics-col {
    padding-left: 24px;
    border-left: 1px solid var(--bronze-border-light);
  }
}

.metrics-label-header {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.project-metric-card {
  padding: 14px;
  border-radius: 2px;
  border: 1px solid var(--bronze-border-light);
  background-color: var(--bg-metric);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-metric-card:last-child {
  margin-bottom: 0;
}

.metric-key {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.metric-val {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--gold-light);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--text-dim);
  background-color: #16120E;
  color: #EAD8C7;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.btn-github:hover {
  border-color: var(--gold-primary);
  background-color: var(--gold-primary);
  color: #000000;
}

/* --- 9. SKILLS SECTION --- */
.skills-section {
  position: relative;
  width: 100vw;
  background-color: var(--bg-black);
  padding: 60px 0 120px;
  overflow: hidden;
}

.skills-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.85;
  margin-bottom: 40px;
  user-select: none;
}

.skills-title span {
  display: block;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .col-span-7 { grid-column: span 7 / span 7; }
  .col-span-5 { grid-column: span 5 / span 5; }
}

.bento-card {
  position: relative;
  padding: 32px;
  border-radius: 2px;
  border: 1px solid rgba(140, 109, 79, 0.35);
  background: rgba(16, 13, 11, 0.85);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@media (min-width: 640px) {
  .bento-card {
    padding: 36px;
  }
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 16px 45px rgba(212, 175, 55, 0.14);
}

.bento-top-flare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-card:hover .bento-top-flare {
  opacity: 1;
}

.bento-card .corner-brackets .tl,
.bento-card .corner-brackets .br {
  width: 10px;
  height: 10px;
  border-color: rgba(212, 175, 55, 0.4);
}

.bento-card:hover .corner-brackets .tl,
.bento-card:hover .corner-brackets .br {
  border-color: var(--gold-primary);
}

.bento-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  transition: color 0.3s;
}

.bento-card:hover .bento-badge {
  color: #F3DBB3;
}

.bento-stat {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 10px;
  border: 1px solid rgba(140, 109, 79, 0.4);
  color: #C4B5A5;
  background-color: #17130F;
  transition: all 0.3s;
}

.bento-card:hover .bento-stat {
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
}

.bento-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.bento-card:hover .bento-title {
  color: var(--gold-light);
}

.bento-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  transition: color 0.3s;
}

.bento-card:hover .bento-desc {
  color: #D5CBC0;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(140, 109, 79, 0.2);
}

.bento-chip {
  padding: 6px 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid rgba(140, 109, 79, 0.35);
  background-color: var(--bg-tag);
  color: #E8D7C5;
  transition: all 0.3s;
}

.bento-card:hover .bento-chip {
  border-color: rgba(212, 175, 55, 0.5);
  background-color: #1F1914;
  color: #FFFFFF;
}

/* --- 10. EXPERIENCE SECTION --- */
.experience-section {
  position: relative;
  width: 100vw;
  background-color: var(--bg-black);
  padding: 40px 0 120px;
  overflow: hidden;
}

.experience-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.85;
  margin-bottom: 64px;
  user-select: none;
}

.experience-title span {
  display: block;
}

.timeline-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* Timeline Vertical Tracks */
.timeline-track-bg {
  position: absolute;
  top: 16px;
  bottom: 32px;
  left: 19px;
  width: 1px;
  background-color: rgba(140, 109, 79, 0.2);
}

@media (min-width: 768px) {
  .timeline-track-bg {
    left: 160px;
  }
}

.timeline-track-fill {
  position: absolute;
  top: 16px;
  left: 19px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #D4AF37 0%, #C99E5D 70%, rgba(140, 109, 79, 0.1) 100%);
  box-shadow: 0 0 10px #D4AF37;
  transform-origin: top;
  transition: height 0.1s ease-out;
}

@media (min-width: 768px) {
  .timeline-track-fill {
    left: 160px;
  }
}

/* Timeline Item */
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
  }
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year-desktop {
  display: none;
  width: 160px;
  flex-shrink: 0;
  padding-right: 32px;
  padding-top: 2px;
  text-align: right;
}

@media (min-width: 768px) {
  .timeline-year-desktop {
    display: block;
  }
}

.timeline-year-text {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--text-dim);
  transition: color 0.3s;
}

.timeline-item:hover .timeline-year-text {
  color: var(--gold-primary);
}

/* Timeline Node */
.timeline-node {
  position: absolute;
  left: 19px;
  top: 6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .timeline-node {
    left: 160px;
  }
}

.node-pulse-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.6s ease-out;
}

.timeline-item:hover .node-pulse-ring {
  border-color: rgba(212, 175, 55, 0.4);
  transform: scale(1.5);
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #120F0C;
  border: 1px solid var(--text-dim);
  transition: all 0.3s;
}

.timeline-item:hover .node-dot {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px #D4AF37;
}

/* Timeline Content */
.timeline-content {
  margin-left: 56px;
  padding-left: 8px;
}

@media (min-width: 768px) {
  .timeline-content {
    margin-left: 48px;
  }
}

.timeline-year-mobile {
  display: block;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .timeline-year-mobile {
    display: none;
  }
}

.timeline-year-mobile-text {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--gold-primary);
}

.timeline-item-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.timeline-item:hover .timeline-item-title {
  color: var(--gold-light);
}

.timeline-org {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: clamp(12px, 1.3vw, 13px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  transition: color 0.3s;
}

.timeline-item:hover .timeline-desc {
  color: #D5CBC0;
}

/* --- 11. EDUCATION & CERTIFICATIONS CREDENTIALS ROW --- */
.credentials-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--bronze-border-light);
}

@media (min-width: 768px) {
  .credentials-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cred-card {
  padding: 28px;
  border: 1px solid rgba(140, 109, 79, 0.3);
  background: rgba(16, 13, 11, 0.6);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.cred-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(22, 18, 14, 0.8);
}

.cred-title {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cred-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--text-muted);
}

.cred-item strong {
  color: #F7E7C4;
  font-weight: 500;
  font-size: 12.5px;
}

.cred-item span {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- 12. CONTACT SECTION & FOOTER --- */
.contact-section {
  position: relative;
  width: 100vw;
  background-color: var(--bg-black);
  padding: 80px 0 64px;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.contact-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.85;
  margin-bottom: 24px;
  user-select: none;
}

.contact-title span {
  display: block;
}

.contact-desc {
  font-size: clamp(12.5px, 1.3vw, 13.5px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

/* Direct Contact Info Cards */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(140, 109, 79, 0.3);
  background-color: #0E0C0A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--gold-primary);
  background-color: #14100D;
  transform: translateX(4px);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  font-size: 12px;
  flex-shrink: 0;
}

.contact-info-meta {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-info-value {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* Terminal Dispatch Form */
.terminal-form-card {
  position: relative;
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--bronze-border);
  background-color: var(--bg-card);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

@media (min-width: 640px) {
  .terminal-form-card {
    padding: 40px;
  }
}

.terminal-top-flare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.terminal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid rgba(140, 109, 79, 0.3);
  color: #FFFFFF;
  font-size: 12px;
  padding: 12px 16px;
  outline: none;
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(140, 109, 79, 0.5);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
}

.form-textarea {
  resize: none;
}

.btn-dispatch {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(140, 109, 79, 0.5);
  background-color: #14100D;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-dispatch:hover {
  border-color: var(--gold-primary);
  background-color: #1A1510;
  color: var(--gold-light);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

/* Success State */
.form-success-state {
  display: none;
  padding: 64px 0;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 14px;
  margin-bottom: 16px;
}

.success-title {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
}

/* Footer Line */
.portfolio-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(140, 109, 79, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .portfolio-footer {
    flex-direction: row;
    text-align: left;
  }
}

.footer-edition {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
