/* =============================================
   DHANANJAY BHUSARI — PORTFOLIO STYLESHEET
   Theme: Cyber-Infrastructure / Dark Obsidian
   ============================================= */

/* ── CSS VARIABLES ── */
:root {
  --bg-base:        #000000;       /* Pure OLED Black */
  --bg-surface:     #0a0a0a;
  --bg-elevated:    #121212;

  /* Frosted Graphite Overlays */
  --bg-glass:       rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);

  /* Monochrome Accents */
  --accent:         #ffffff;       /* Pure White */
  --accent-dim:     rgba(255, 255, 255, 0.1);
  --accent-glow:    rgba(255, 255, 255, 0.25);
  --accent-2:       #a3a3a3;       /* Silver/Gray */
  --accent-3:       #525252;       

  /* High-Contrast Text */
  --text-primary:   #ededed;
  --text-secondary: #a1a1aa;
  --text-muted:     #52525b;
  --text-code:      #e4e4e7;

  /* Silver Glass Edges */
  --border:         rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.2); 
  --border-accent:  rgba(255, 255, 255, 0.4);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --blur:    blur(24px);
  --blur-lg: blur(48px);

  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
  /* Optimization: Removed max-width and overflow-x to prevent mobile scroll-jacking */
}

html::-webkit-scrollbar { width: 4px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 99px;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  max-width: 100%; 
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 224, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 224, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 224, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s linear;
  /* Optimization: Hardware Acceleration */
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}

/* ── CONTAINER & SECTIONS ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px; 
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.label-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 60px;
}

.accent { color: var(--accent); }

/* ── GLASS CARD ── */
.glass-card {
  background: linear-gradient(135deg, var(--bg-glass) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-highlight);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  /* Optimization: Prepares GPU for hover animation */
  will-change: transform, box-shadow;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-dim);
  border-top: 1px solid var(--border-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #080c10;
  font-weight: 700;
}

.btn-primary:hover {
  background: #33ffea;
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0, 255, 224, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

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

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 44px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.navbar.scrolled {
  top: 16px;
  left: 22%;
  right: 22%;
  padding: 14px 36px;
  border-radius: 100px;
  background: rgba(8, 12, 16, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

.logo-text    { color: var(--text-primary); }

.logo-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: none !important;
  padding: 0 !important;
}

.nav-cta:hover {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-grid-bg {
  position: absolute;
  top: -100px; 
  left: -100px; 
  right: -100px; 
  bottom: -100px;
  background-image:
    linear-gradient(rgba(0, 255, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 224, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridShift 20s linear infinite;
  /* Optimization: Hardware Acceleration */
  will-change: transform;
}

@keyframes gridShift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: var(--blur-lg);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  /* Optimization: Hardware Acceleration */
  will-change: transform;
  transform: translateZ(0); 
}

.orb-1 {
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  top: -10%; left: -10%;
}

.orb-2 {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  bottom: -10%; right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
  top: 40%; left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text {
  text-align: left; 
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  animation: fadeDown 0.6s ease 0.2s both;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: block;
  animation: fadeUp 0.6s ease 0.3s both;
  margin-bottom: 16px;
  word-wrap: break-word;
}

.name-line { display: block; }
.name-line.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.5vw, 19px); 
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.4s both;
}

.role-prefix { color: var(--accent); opacity: 0.7; }
.role-text   { color: var(--text-primary); text-align: left; }
.role-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start; 
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.6s both;
}

.hero-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-icon {
  width: 44px; 
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.hero-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-section {
  background: linear-gradient(180deg, transparent, rgba(0, 255, 224, 0.02), transparent);
}

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

.about-text h2 { margin-bottom: 24px; }
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.about-text p strong { color: var(--text-primary); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-card-col {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  height: 100%;
}

.profile-card {
  padding: 28px;
  width: 100%;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent));
  padding: 2px;
  margin-bottom: 10px;
}

.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.avatar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-2);
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.profile-info { text-align: center; }
.profile-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-tags span {
  padding: 3px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.profile-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.profile-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ══════════════════════════════════════════
   SKILLS — BENTO GRID
══════════════════════════════════════════ */
.skills-section {
  background: var(--bg-surface);
}

.skills-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sk-card {
  display: block; 
  padding: 32px; 
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  /* Optimization: Prepares GPU for hover animation */
  will-change: transform;
}

.sk-card--aws    { border-top: 2px solid rgba(0, 255, 224, 0.5); }
.sk-card--linux  { border-top: 2px solid rgba(255, 107, 53, 0.5); }
.sk-card--devops { border-top: 2px solid rgba(168, 255, 62, 0.5); }
.sk-card--monitor{ border-top: 2px solid rgba(121, 192, 255, 0.5); }

.sk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.sk-card:hover::after { opacity: 1; }

.sk-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

.sk-card__header {
  display: flex;
  align-items: center;
  gap: 16px; 
}

.sk-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; 
  flex-shrink: 0;
  transition: var(--transition);
  border: 1px solid var(--border); 
}

.sk-card__icon--aws    { color: #00ffe0; background: rgba(0, 255, 224, 0.05); border: 1px solid rgba(0, 255, 224, 0.2); }
.sk-card__icon--linux  { color: #ff6b35; background: rgba(255, 107, 53, 0.05); border: 1px solid rgba(255, 107, 53, 0.2); }
.sk-card__icon--devops { color: #a8ff3e; background: rgba(168, 255, 62, 0.05); border: 1px solid rgba(168, 255, 62, 0.2); }
.sk-card__icon--monitor{ color: #79c0ff; background: rgba(121, 192, 255, 0.05); border: 1px solid rgba(121, 192, 255, 0.2); }

.sk-card:hover .sk-card__icon {
  transform: scale(1.1);
}

.sk-card__title {
  font-family: var(--font-display);
  font-size: 20px; 
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.sk-card__sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.sk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; 
}

.sk-tag {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.03em;
  border: 1px solid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  white-space: nowrap;
}

.sk-tag:hover { transform: translateY(-2px); }

.sk-tag--core {
  background: rgba(0, 255, 224, 0.10);
  border-color: rgba(0, 255, 224, 0.30);
  color: #00ffe0;
}
.sk-tag--hands {
  background: rgba(168, 255, 62, 0.08);
  border-color: rgba(168, 255, 62, 0.22);
  color: #a8ff3e;
}
.sk-tag--learn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #c9d1d9;
}

.sk-legend-card {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sk-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sk-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sk-dot--core  { background: #00ffe0; box-shadow: 0 0 6px rgba(0,255,224,0.6); }
.sk-dot--hands { background: #a8ff3e; box-shadow: 0 0 6px rgba(168,255,62,0.5); }
.sk-dot--learn { background: rgba(255,255,255,0.25); border: 1px solid #c9d1d9; }

/* ══════════════════════════════════════════
   PROJECTS (3-COLUMN GRID)
══════════════════════════════════════════ */
.projects-section {
  background: var(--bg-base);
}

.projects-grid, 
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0; 
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 10;
}
.project-card:hover::before { opacity: 1; }

.featured-proj::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

.proj-featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #080c10;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  letter-spacing: 0.05em;
  z-index: 10;
}

.project-image {
  width: 100%;
  height: 220px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Optimization: Prepares GPU for hover animation */
  will-change: transform;
}

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

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1; 
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  align-content: flex-start; 
  align-items: flex-start;   
}

.project-tags span {
  padding: 4px 12px;
  background: var(--accent-dim);           
  border: 1px solid var(--border-accent);  
  border-radius: 99px;
  font-size: 11px;
  color: var(--accent);                    
  letter-spacing: 0.05em;
  transition: var(--transition);
  white-space: nowrap;                     
}

.project-card:hover .project-tags span {
  background: rgba(0, 255, 224, 0.2);
  color: #fff;
}

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.btn-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-link:hover { color: var(--accent); }
.btn-link i { font-size: 14px; }

/* ══════════════════════════════════════════
   CERTIFICATIONS (3-COLUMN GRID)
══════════════════════════════════════════ */
.certs-section {
  background: var(--bg-surface);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.cert-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cert-image-placeholder {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px; 
}

.cert-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover .cert-image-placeholder img {
  transform: scale(1.05);
}

.upcoming-cert .cert-image-placeholder img {
  opacity: 0.45;
  filter: grayscale(60%);
}

.cert-card:hover .upcoming-cert .cert-image-placeholder img {
  opacity: 0.65;
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cert-skills span {
  padding: 3px 9px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  font-size: 11px; 
  color: var(--accent);
}

.cert-date {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 0;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
  font-size: 11px;
}

.cert-issuer { color: var(--text-muted); }

.cert-verify-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 11px;
  transition: var(--transition);
}

.cert-verify-btn:hover { opacity: 0.7; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  background: var(--bg-base);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 100%;
}

.contact-info, 
.contact-form-wrap {
  min-width: 0; 
  max-width: 100%;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%; 
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  width: 100%; 
  overflow: hidden; 
  min-width: 0;
  max-width: 100%;
}

.cl-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.cl-icon.github  { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--text-primary); }
.cl-icon.linkedin { background: rgba(0, 119, 181, 0.12); border-color: rgba(0, 119, 181, 0.25); color: #0077B5; }

.cl-text { 
  flex: 1 1 0%; 
  min-width: 0; 
  overflow: hidden;
}

.cl-label {
  display: block; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}

.cl-value { 
  display: block; 
  font-size: 13px; 
  color: var(--text-primary); 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  width: 100%;
}

.cl-arrow { 
  font-size: 12px; 
  color: var(--text-muted); 
  transition: var(--transition); 
  flex-shrink: 0; 
}
.contact-link-card:hover .cl-arrow { 
  color: var(--accent); 
  transform: translate(2px, -2px); 
}

.availability-card { padding: 20px 24px; }
.avail-indicator {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: var(--accent-2); margin-bottom: 12px; font-weight: 600;
}
.avail-dot {
  width: 8px; height: 8px; background: var(--accent-2);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
.availability-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }

/* Contact form */
.contact-form { padding: 32px; }
.contact-form h3 {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px; color: var(--text-primary);
  font-family: var(--font-mono); font-size: 13px; outline: none;
  transition: var(--transition); resize: vertical; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); background: rgba(0, 255, 224, 0.03);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group select option { background: var(--bg-elevated); color: var(--text-primary); }
.form-note { text-align: center; font-size: 11px; margin-top: 12px; min-height: 18px;}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg-surface); border-top: 1px solid var(--border); padding: 40px 0 24px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 1px;
}
.footer-copy { font-size: 11px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted); transition: var(--transition);
}
.footer-socials a:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 11px; color: var(--text-muted); flex-wrap: wrap; gap: 10px;
}
.footer-uptime { display: flex; align-items: center; gap: 6px; color: var(--accent-2); }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 28px; right: 28px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--bg-glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border-accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: var(--transition); z-index: 999; font-size: 13px;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover {
  background: var(--accent); color: #080c10;
  box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-3px);
}

/* ── KEYFRAME UTILS ── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }


/* ══════════════════════════════════════════
   RESPONSIVE DESIGN (MEDIA QUERIES)
══════════════════════════════════════════ */

/* MOBILE MENU BLUR FIX */
.navbar:has(.nav-links.open) {
  top: 0 !important; left: 0 !important; right: 0 !important;
  padding: 16px 24px !important; border-radius: 0 !important;
  background: transparent !important; border: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* TABLETS & SMALL DESKTOPS (900px) */
@media (max-width: 900px) {
  .navbar { padding: 18px 24px; }
  .navbar.scrolled { top: 12px; left: 16px; right: 16px; padding: 12px 20px; }
  
  .hero-content { text-align: left; gap: 40px; }
  .hero-text { text-align: left; }
  .hero-role, .hero-actions { justify-content: flex-start; }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-card-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
  
  .projects-grid, .projects-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-bento { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* MOBILE PHONES (700px) */
@media (max-width: 700px) {
  .hero { padding: 0; align-items: center; }
  .hero-content { padding: 0 24px; align-items: flex-start; text-align: left; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(8, 12, 16, 0.75);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    z-index: 999; justify-content: center; align-items: center; gap: 32px;
  }
  .nav-links.open a { font-size: 20px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
  .projects-grid, .projects-list { grid-template-columns: 1fr; }
  
  .footer-inner { flex-direction: column; text-align: center; }

  /* Optimization: Mobile Glassmorphism Fix */
  .glass-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 15, 15, 0.95); 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); 
  }
}

/* SMALL MOBILE PHONES (480px) */
@media (max-width: 480px) {
  .hero-role { flex-wrap: wrap; justify-content: flex-start; } 
  .role-text { min-width: auto; }
  
  .hero-actions { display: flex; flex-wrap: wrap; width: 100%; gap: 12px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 12px 10px; min-width: 130px; }
  
  .hero-badge { margin-bottom: 5vh; }
  .hero-name { margin-bottom: 2vh; }
  .hero-role { margin-bottom: 4vh; }
  .hero-tagline { margin-bottom: 6vh; line-height: 1.8; }
  
  .hero-social-links { flex-basis: 100%; justify-content: center; gap: 16px; margin-top: 4vh; }

  .contact-form { padding: 24px 20px; }
  .contact-link-card { padding: 14px 16px; gap: 12px; }
}

/* ══════════════════════════════════════════
   GITHUB ICON BUTTON
══════════════════════════════════════════ */
.github-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.github-icon-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════
   MODAL (POPUP WINDOW)
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
}

.modal-close:hover { color: var(--accent); }

#modalBody h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-right: 32px;
}

#modalBody h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#modalBody p, #modalBody li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

#modalBody ul {
  padding-left: 20px;
  list-style-type: square;
}