/* =============================================
   ARIIQ NAWFAL AQILLA — PORTFOLIO CSS
   Theme: Dark Purple NeoBrutalism 3D
   Style: Bold borders · Offset shadows · Chunky type
   ============================================= */

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

:root {
  /* === DARK PURPLE NEOBRUTALISM PALETTE === */
  --nb-bg:          #080411;      /* Deep obsidian purple dark */
  --nb-bg-2:        #110822;      /* Deep violet container */
  --nb-bg-3:        #1c0e35;      /* Elevated purple dark */
  --nb-black:       #FFFFFF;      /* text color on dark bg */
  --nb-border:      #FFFFFF;      /* thick border color */
  --nb-border-dim:  rgba(192, 132, 252, 0.2);

  /* Signature accent colors */
  --nb-purple-dark: #2E1065;
  --nb-purple-brand:#7C3AED;
  --nb-purple-neon: #A855F7;
  --nb-purple-light:#C084FC;
  --nb-yellow:      #FFD60A;
  --nb-yellow-dark: #D4B200;
  --nb-red:         #FF3B30;
  --nb-blue:        #00F2FE;
  --nb-green:       #00E676;

  /* Shadow (solid offset — brutalist style with purple dark accents) */
  --nb-shadow:      4px 4px 0px #7C3AED;
  --nb-shadow-yellow: 4px 4px 0px #FFD60A;
  --nb-shadow-purple: 4px 4px 0px #A855F7;
  --nb-shadow-sm:   2px 2px 0px #7C3AED;
  --nb-shadow-lg:   6px 6px 0px #7C3AED;
  --nb-shadow-red:  4px 4px 0px #FF3B30;
  --nb-shadow-blue: 4px 4px 0px #00F2FE;
  --nb-shadow-white: 4px 4px 0px rgba(192, 132, 252, 0.35);

  /* Typography */
  --font-main:    'Inter', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Border widths */
  --border-thin:   1.5px;
  --border-reg:    2px;
  --border-thick:  3px;
  --border-heavy:  4px;

  /* Radius — brutalism uses mostly sharp, small radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transitions */
  --transition:       0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy compat */
  --accent-1:     #FFD60A;
  --accent-3:     #7C3AED;
  --gradient:     linear-gradient(135deg, #FFD60A, #7C3AED);
  --gradient-text: linear-gradient(135deg, #FFD60A 0%, #C084FC 45%, #7C3AED 75%, #00F2FE 100%);
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted:     rgba(192, 132, 252, 0.55);
  --bg-primary:     #080411;
  --bg-secondary:   #110822;
  --bg-card:        #110822;
  --border:         rgba(192, 132, 252, 0.2);
}

html { scroll-behavior: smooth; }

body {
  background: var(--nb-bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- CANVAS BG ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--nb-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--nb-yellow), var(--nb-purple-brand));
  border-radius: 0px;
}

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nb-yellow), var(--nb-purple-neon), var(--nb-blue));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--nb-purple-brand);
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--nb-yellow);
  border-radius: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-aura {
  position: fixed;
  width: 32px; height: 32px;
  border: 2px solid var(--nb-purple-light);
  border-radius: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}

/* ---- LOADER ---- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #06020c;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255, 214, 10, 0.08) 0%, transparent 60%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Futuristic hexagon loader logo */
.loader-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 140px; height: 140px;
  background: rgba(17, 8, 34, 0.6);
  border: var(--border-reg) solid var(--nb-purple-brand);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), var(--nb-shadow-purple);
  animation: nbLoaderPulse 1.5s ease-in-out infinite alternate;
}
@keyframes nbLoaderPulse {
  from { box-shadow: 4px 4px 0px var(--nb-purple-brand), 0 0 20px rgba(124,58,237,0.3); }
  to   { box-shadow: 8px 8px 0px var(--nb-yellow), 0 0 35px rgba(168,85,247,0.5); }
}
.loader-logo svg {
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.6));
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader-bar {
  width: 260px; height: 6px;
  background: var(--nb-bg-3);
  border: var(--border-thin) solid rgba(192, 132, 252, 0.3);
  border-radius: 0;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nb-yellow), var(--nb-purple-brand), var(--nb-purple-light));
  animation: loaderAnim 1.6s ease forwards;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
@keyframes loaderAnim { to { width: 100%; } }

/* Brutalist loader status */
.loader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeSlideUp 0.6s ease 0.3s both;
}
.loader-status-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 0;
  display: inline-block;
}
.status-dot-cyan {
  background: var(--nb-yellow);
  box-shadow: 0 0 8px var(--nb-yellow);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--nb-purple-light);
  letter-spacing: 3px;
}
.loader-data-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.data-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}
.data-label {
  color: var(--nb-yellow);
  font-weight: 700;
}

/* Hexagon logo animations */
@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes pulseLogo {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ---- UTILITY ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === NEOBRUTALISM BUTTON SYSTEM === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--nb-yellow);
  color: #0D0D0D;
  font-weight: 800; font-size: 0.95rem;
  font-family: var(--font-display);
  border: var(--border-thick) solid #0D0D0D;
  border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--nb-shadow);
  position: relative;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #0D0D0D;
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #0D0D0D;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: #FFFFFF;
  font-weight: 700; font-size: 0.95rem;
  font-family: var(--font-display);
  border: var(--border-thick) solid #FFFFFF;
  border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--nb-shadow-white);
}
.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}
.btn-outline:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px rgba(255,255,255,0.2);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- SECTION SHARED ---- */
section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: var(--nb-yellow);
  color: #0D0D0D;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0.3rem 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 2px solid #0D0D0D;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-slow);
  animation: navDrop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes navDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#navbar.scrolled {
  background: rgba(8, 4, 17, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-reg) solid var(--nb-purple-brand);
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.25);
  padding: 0.65rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}
.nav-logo:hover { color: var(--nb-yellow); }

/* Futuristic hex logo used in nav */
.futuristic-logo .hex-outer,
.futuristic-logo .hex-inner {
  transition: stroke 0.3s ease, filter 0.3s ease;
}
#navbar:hover .futuristic-logo .hex-outer {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none;
}
.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 0;
  transition: var(--transition);
  font-family: var(--font-display);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--nb-yellow), var(--nb-purple-light));
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 80%; left: 10%;
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.btn-hire {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--nb-yellow);
  color: #080411;
  font-weight: 800; font-size: 0.86rem;
  font-family: var(--font-display);
  border: 2px solid #080411;
  border-radius: 0;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 3px 3px 0px var(--nb-purple-brand);
  letter-spacing: 0.02em;
}
.btn-hire:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--nb-purple-light);
}
.btn-hire:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--nb-purple-dark);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; padding: 6px 8px;
  border-radius: 0;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 0;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---- NAV OVERLAY (MOBILE BACKDROP) ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 17, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Brutalist geometric bg decorations */
.hero-glow {
  position: absolute; border-radius: 0;
  pointer-events: none;
}
.hero-glow-1 {
  width: 2px; height: 60vh;
  background: var(--nb-yellow);
  top: 10%; left: 8%;
  opacity: 0.15;
  animation: lineFlicker 4s ease-in-out infinite;
}
.hero-glow-2 {
  width: 2px; height: 40vh;
  background: var(--nb-red);
  bottom: 10%; right: 10%;
  opacity: 0.12;
  animation: lineFlicker 4s ease-in-out infinite 2s;
}
@keyframes lineFlicker {
  0%,100% { opacity: 0.12; }
  50% { opacity: 0.3; }
}

/* 3D Hero Canvas */
#hero-3d-canvas {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

#hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
  position: relative; z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: transparent;
  border: var(--border-reg) solid var(--nb-yellow);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--nb-yellow);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--nb-yellow);
  border-radius: 0;
  animation: blink 1.2s step-end infinite;
}

/* Hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
}
.hero-role {
  color: var(--nb-yellow);
  font-style: italic;
}
.typed-cursor {
  color: var(--nb-yellow);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.school-highlight {
  color: var(--nb-yellow);
  font-weight: 700;
}

/* Hero Buttons */
.hero-btns {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn-cv {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-display);
  border: var(--border-reg) solid rgba(255,255,255,0.25);
  border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.btn-cv:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px rgba(255,255,255,0.2);
}

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0.8rem 1.2rem;
  border: var(--border-reg) solid rgba(255,255,255,0.15);
  border-radius: 0;
  background: var(--nb-bg-2);
  transition: var(--transition);
}
.stat-item:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-1px, -1px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--nb-yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  text-transform: uppercase;
}
.stat-divider { display: none; }

/* Hero Visual / Avatar */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-avatar-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}

/* Brutalist avatar frame */
.avatar-ring {
  display: none; /* replaced by brutalist frame */
}
.avatar-circle {
  position: relative;
  width: 280px; height: 280px;
  border: var(--border-heavy) solid var(--nb-yellow);
  box-shadow: var(--nb-shadow-lg), -6px -6px 0px var(--nb-red);
  overflow: hidden;
  background: var(--nb-bg-2);
  z-index: 2;
}
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

/* Floating tech badges — brutalist style */
.floating-badge {
  position: absolute;
  background: var(--nb-bg-2);
  border: var(--border-reg) solid rgba(255,255,255,0.3);
  border-radius: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  display: flex; align-items: center; gap: 0.4rem;
  z-index: 3;
  transition: var(--transition);
  box-shadow: 3px 3px 0px rgba(255,255,255,0.15);
}
.floating-badge:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  color: var(--nb-yellow);
}
.floating-badge.fb-1 { top: -15px; left: -30px; animation: floatA 4s ease-in-out infinite; }
.floating-badge.fb-2 { top: -15px; right: -30px; animation: floatB 4s ease-in-out infinite 1s; }
.floating-badge.fb-3 { bottom: -15px; left: -30px; animation: floatA 4s ease-in-out infinite 2s; }
.floating-badge.fb-4 { bottom: -15px; right: -30px; animation: floatB 4s ease-in-out infinite 0.5s; }
@keyframes floatA {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem; font-family: var(--font-mono);
  letter-spacing: 2px; text-transform: uppercase;
  animation: fadeSlideUp 1s ease 1.5s both;
}
.scroll-arrow {
  width: 2px; height: 36px;
  background: linear-gradient(to bottom, var(--nb-yellow), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0; }
}

/* ---- ABOUT ---- */
#about { background: var(--nb-bg); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Brutalist card */
.about-card {
  background: var(--nb-bg-2);
  border: var(--border-thick) solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -var(--border-thick); left: -var(--border-thick);
  width: 100%; height: 4px;
  background: var(--nb-yellow);
  transition: var(--transition);
}
.about-card:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow);
  transform: translate(-3px, -3px);
}

.about-icon-wrap {
  width: 56px; height: 56px;
  background: var(--nb-yellow);
  border: 2px solid #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: #0D0D0D;
}
.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.about-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.about-list li {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.about-list li i {
  color: var(--nb-green);
  font-size: 1rem; flex-shrink: 0;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.info-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.info-label {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-label i { font-size: 0.9rem; }
.info-value {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}
.status-open { color: var(--nb-green); }

/* ---- SKILLS ---- */
#skills { background: var(--nb-bg-2); }

.skills-tab-wrap {
  display: flex; justify-content: center; gap: 0;
  margin-bottom: 3rem;
  border: var(--border-reg) solid rgba(255,255,255,0.2);
  width: fit-content; margin: 0 auto 3rem;
}
.skills-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700; font-size: 0.9rem;
  font-family: var(--font-display);
  border: none; cursor: pointer;
  transition: var(--transition);
  border-right: var(--border-thin) solid rgba(255,255,255,0.15);
  letter-spacing: 0.02em;
}
.skills-tab:last-child { border-right: none; }
.skills-tab.active {
  background: var(--nb-yellow);
  color: #0D0D0D;
}
.skills-tab:not(.active):hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.skills-panel { margin-top: 2rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

/* Brutalist skill card */
.skill-card {
  background: var(--nb-bg);
  border: var(--border-reg) solid rgba(255,255,255,0.18);
  border-radius: 0;
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr, var(--nb-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.skill-card:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-2px, -2px);
}
.skill-card:hover::after { transform: scaleX(1); }

.skill-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--clr, rgba(255,255,255,0.2));
  display: flex; align-items: center; justify-content: center;
  color: var(--clr, var(--text-secondary));
  font-size: 2rem;
}
.skill-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
/* Brutalist progress bar */
.skill-bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--nb-yellow);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Soft Skills */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.soft-skill-card {
  background: var(--nb-bg);
  border: var(--border-reg) solid rgba(255,255,255,0.18);
  border-radius: 0;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.soft-skill-card i {
  font-size: 2rem;
  color: var(--nb-yellow);
}
.soft-skill-card:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-2px, -2px);
}

/* ---- EXPERIENCE ---- */
#experience { background: var(--nb-bg); }

.experience-list { display: flex; flex-direction: column; gap: 1.5rem; }

.experience-card {
  display: flex; gap: 1.5rem;
  background: var(--nb-bg-2);
  border: var(--border-thick) solid rgba(255,255,255,0.15);
  border-radius: 0;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.experience-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--nb-yellow);
}
.experience-card:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow);
  transform: translate(-3px, -3px);
}
.exp-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--nb-yellow);
  border: 2px solid #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #0D0D0D;
}
.exp-content { flex: 1; }
.exp-role {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}
.exp-company {
  color: var(--nb-yellow);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.exp-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.exp-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1rem;
}
.exp-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.exp-list li i { color: var(--nb-green); flex-shrink: 0; margin-top: 3px; }
.exp-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-tool {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.exp-tool:hover {
  border-color: var(--nb-yellow);
  color: var(--nb-yellow);
}

/* ---- PROJECTS ---- */
#projects { background: var(--nb-bg-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--nb-bg);
  border: var(--border-thick) solid rgba(255,255,255,0.18);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.project-card:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-lg);
  transform: translate(-4px, -4px);
}
.project-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.3s ease;
}
.project-card:hover .project-img {
  filter: grayscale(0%) contrast(1.1);
}
.project-body { padding: 1.5rem; }
.project-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.project-links {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-weight: 700; font-size: 0.83rem;
  font-family: var(--font-display);
  border-radius: 0;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.project-link.primary {
  background: var(--nb-yellow);
  color: #0D0D0D;
  border: 2px solid #0D0D0D;
  box-shadow: 2px 2px 0px rgba(255,255,255,0.2);
}
.project-link.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(255,255,255,0.25);
}
.project-link.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.project-link.secondary:hover {
  border-color: rgba(255,255,255,0.7);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px rgba(255,255,255,0.2);
}

/* ---- CERTIFICATES ---- */
#certificates { background: var(--nb-bg); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.cert-card {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--nb-bg-2);
  border: var(--border-reg) solid rgba(255,255,255,0.15);
  border-radius: 0;
  padding: 1.75rem;
  transition: var(--transition);
}
.cert-card:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-2px, -2px);
}
.cert-icon {
  width: 48px; height: 48px;
  background: var(--nb-yellow);
  border: 2px solid #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #0D0D0D;
  flex-shrink: 0;
}
.cert-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.cert-issuer {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.cert-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.cert-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: auto;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: var(--border-reg) solid var(--nb-yellow);
  color: var(--nb-yellow);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  transition: var(--transition);
  width: fit-content;
}
.cert-link:hover {
  background: var(--nb-yellow);
  color: #0D0D0D;
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-2px, -2px);
}

/* ---- CONTACT ---- */
#contact { background: var(--nb-bg-2); }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 3rem; align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 900;
  color: #fff;
  margin-bottom: 0.8rem;
}
.contact-info > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-links { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--nb-bg);
  border: var(--border-reg) solid rgba(255,255,255,0.15);
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}
.contact-link:hover {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-2px, -2px);
}
.contact-link-icon {
  width: 44px; height: 44px;
  background: var(--nb-yellow);
  border: 2px solid #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #0D0D0D;
  flex-shrink: 0;
}
.contact-link-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-link-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

/* Contact Form — Brutalist style */
.contact-form {
  display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--nb-bg);
  border: var(--border-thick) solid rgba(255,255,255,0.15);
  padding: 2rem;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.form-group {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  background: var(--nb-bg-2);
  border: var(--border-reg) solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
  transform: translate(-1px, -1px);
}

.form-success {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--nb-green);
  color: var(--nb-green);
  font-weight: 600;
  border-radius: 0;
}
.form-success.show { display: flex; }

/* ---- DEMO MODAL ---- */
.demo-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.demo-modal-overlay.open { display: flex; }
.demo-modal {
  background: var(--nb-bg-2);
  border: var(--border-heavy) solid var(--nb-yellow);
  box-shadow: var(--nb-shadow-lg);
  border-radius: 0;
  padding: 2.5rem;
  max-width: 440px; width: 90%;
  text-align: center;
  animation: modalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translate(-4px,-4px); }
  to   { opacity: 1; transform: scale(1) translate(0,0); }
}
.demo-modal-icon {
  width: 64px; height: 64px;
  background: var(--nb-yellow);
  border: 2px solid #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #0D0D0D;
  margin: 0 auto 1.2rem;
}
.demo-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 900;
  color: #fff; margin-bottom: 0.75rem;
}
.demo-modal-msg {
  color: var(--text-secondary);
  font-size: 0.92rem; line-height: 1.7;
  margin-bottom: 1.5rem;
}
.demo-modal-actions {
  display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}

/* ---- FOOTER ---- */
#footer {
  background: var(--nb-bg);
  border-top: var(--border-heavy) solid var(--nb-yellow);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-text i { color: var(--nb-yellow); }
.footer-copy {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 800;
  width: 48px; height: 48px;
  background: var(--nb-yellow);
  color: #0D0D0D;
  border: 2px solid #0D0D0D;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--nb-shadow-sm);
  opacity: 0; visibility: hidden;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}
.back-to-top:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px rgba(255,255,255,0.2);
}

/* ---- HOVER / AOS COMPAT ---- */
[data-aos] { transition-property: opacity, transform; }

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  #hero {
    padding: 6rem 0 3rem;
  }
  #hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  
  /* Hero Avatar on Mobile - guaranteed display */
  .hero-visual {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center;
    align-items: center;
    order: -1;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  .hero-avatar-wrap {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  .avatar-circle {
    display: block !important;
    width: 220px;
    height: 220px;
    box-shadow: 5px 5px 0px var(--nb-purple-brand), -5px -5px 0px var(--nb-red);
  }
  .profile-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .floating-badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    box-shadow: 2px 2px 0px rgba(255,255,255,0.15);
  }
  .floating-badge.fb-1 { top: -10px; left: -15px; }
  .floating-badge.fb-2 { top: -10px; right: -15px; }
  .floating-badge.fb-3 { bottom: -10px; left: -15px; }
  .floating-badge.fb-4 { bottom: -10px; right: -15px; }

  /* 3D Hero Canvas — Rendered and centered behind avatar on mobile */
  #hero-3d-canvas {
    display: block !important;
    position: absolute;
    top: 6.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(270px, 85vw, 360px);
    height: clamp(270px, 85vw, 360px);
    max-width: 95vw;
    max-height: 95vw;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
  }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: min(300px, 80vw); height: 100vh;
    background: var(--nb-bg);
    border-left: var(--border-thick) solid var(--nb-yellow);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    flex-direction: column; gap: 0;
    padding: 5rem 0 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link {
    width: 100%; padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hamburger { display: flex; }
  .btn-hire { display: none; }

  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-card { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 4rem 0; }
  .hero-title { font-size: 2.2rem; }
  
  #hero-3d-canvas {
    top: 5.2rem;
    width: clamp(240px, 88vw, 300px);
    height: clamp(240px, 88vw, 300px);
    opacity: 0.8;
  }

  .avatar-circle {
    width: 180px;
    height: 180px;
    box-shadow: 4px 4px 0px var(--nb-purple-brand), -4px -4px 0px var(--nb-red);
  }
  .floating-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    gap: 0.25rem;
  }
  .floating-badge.fb-1 { top: -8px; left: -8px; }
  .floating-badge.fb-2 { top: -8px; right: -8px; }
  .floating-badge.fb-3 { bottom: -8px; left: -8px; }
  .floating-badge.fb-4 { bottom: -8px; right: -8px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
}

/* Touch devices: hide desktop cursor dot */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-aura {
    display: none !important;
  }
}
