/* ═══════════════════════════════════════════════════════════════
   ROOT VARIABLES
═══════════════════════════════════════════════════════════════ */
:root {
  --bg:        #050a14;
  --bg-card:   #0d1526;
  --bg-sec:    #080e1c;
  --accent:    #00d4ff;
  --accent2:   #0099cc;
  --gold:      #ffc947;
  --green:     #00ff9d;
  --red:       #ff4d6d;
  --purple:    #b06fff;
  --text:      #e0f0ff;
  --muted:     #7a9cc0;
  --border:    rgba(0, 212, 255, 0.2);
  --glow:      rgba(0, 212, 255, 0.5);
  --grid:      rgba(30, 80, 180, 0.07);
  --radius:    8px;
  --shadow:    0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Top radial glow */
body::after {
  content: '';
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 100, 255, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img  { display: block; max-width: 100%; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   SECTION TITLE
═══════════════════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.section-title h2::before {
  content: attr(data-num);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  opacity: 0.7;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}
.section-title p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.send-btn { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 999;
}
.theme-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}
.theme-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAV
═══════════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: var(--transition);
}
header.scrolled {
  padding: 10px 0;
  background: rgba(5, 10, 20, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 0; }
.nav-links li a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links li a:hover         { color: var(--accent); }
.nav-links li a:hover::after  { transform: scaleX(1); }

.mobile-menu-btn {
  display: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.mobile-menu-btn:hover { background: rgba(0, 212, 255, 0.18); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
}
.hero::before {
  top: 120px;
  left: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.4;
}
.hero::after {
  bottom: 40px;
  right: 40px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.4;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--green);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  animation: fadeSlideDown 0.8s ease both;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
  animation: fadeSlideDown 0.8s 0.1s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  animation: fadeSlideDown 0.8s 0.2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text h2 {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s 0.3s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero-text p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 480px;
  animation: fadeSlideDown 0.8s 0.4s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s 0.5s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-image {
  animation: fadeSlideUp 1s 0.3s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.profile-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0, 100, 255, 0.15), var(--shadow);
}
.profile-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.profile-img:hover img { transform: scale(1.04); }
.profile-img::before,
.profile-img::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
}
.profile-img::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.profile-img::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.profile-img-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
.about { background: var(--bg-sec); }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p { font-size: 0.98rem; line-height: 1.9; margin-bottom: 1.2rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}
.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
}
.stat-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════════ */
.skills-section { background: var(--bg); }

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.skill-category:hover { border-color: rgba(0, 212, 255, 0.45); }

.skill-category h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-category h3 i { font-size: 14px; }

.skill-items { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: default;
}
.skill-item:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}
.skill-item i { color: var(--accent); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════════════ */
.projects-section { background: var(--bg-sec); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1), var(--shadow);
}

.project-header {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.project-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}
.project-header h3 {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 4px;
}
.project-header p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
  opacity: 0.8;
}
.project-content { padding: 2rem; }
.project-description { margin-bottom: 1.5rem; font-size: 0.95rem; }

.project-features { margin-bottom: 1.8rem; }
.project-features h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.features-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 4px 0 4px 20px;
  position: relative;
}
.features-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
}

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.tech-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 201, 71, 0.08);
  border: 1px solid rgba(255, 201, 71, 0.3);
  color: var(--gold);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   SNAKE GAME
═══════════════════════════════════════════════════════════════ */
.snake-game-container {
  background: #0d1a0d;
  border: 1px solid rgba(155, 188, 15, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
  box-shadow: 0 0 30px rgba(155, 188, 15, 0.05) inset;
}
.game-header   { margin-bottom: 1.2rem; }
.game-title {
  font-family: 'Orbitron', monospace;
  color: #9bbc0f;
  font-size: 1.6rem;
  letter-spacing: 4px;
  text-shadow: 0 0 15px rgba(155, 188, 15, 0.5);
}
.game-info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.score-display,
.high-score-display {
  background: #0f380f;
  color: #9bbc0f;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  flex: 1;
  border: 1px solid rgba(155, 188, 15, 0.3);
}
.game-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
#snakeGameCanvas {
  background: #9bbc0f;
  border: 6px solid #0f380f;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(155, 188, 15, 0.2);
  max-width: 100%;
  height: auto;
}

#snakeGameOverScreen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(15, 56, 15, 0.93);
  color: #9bbc0f;
  border-radius: 4px;
  z-index: 10;
  backdrop-filter: blur(4px);
}
#snakeGameOverScreen.show { display: flex; }
#snakeGameOverScreen h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(155, 188, 15, 0.7);
}
#snakeGameOverScreen p { font-size: 1rem; color: #9bbc0f; }

.restart-btn {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  background: #9bbc0f;
  color: #0f380f;
  border: none;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}
.restart-btn:hover { transform: scale(1.06); box-shadow: 0 0 15px rgba(155, 188, 15, 0.4); }

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.game-btn {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.game-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.mobile-controls {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(3, 56px);
  gap: 8px;
  justify-content: center;
  margin-top: 1.2rem;
}
.control-btn {
  background: #0f380f;
  color: #9bbc0f;
  border: 2px solid #9bbc0f;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.control-btn:active { background: #9bbc0f; color: #0f380f; transform: scale(0.93); }
.control-btn.up     { grid-column: 2; grid-row: 1; }
.control-btn.left   { grid-column: 1; grid-row: 2; }
.control-btn.center { grid-column: 2; grid-row: 2; background: #1a3a1a; border-color: #306230; cursor: default; font-size: 0.8em; }
.control-btn.right  { grid-column: 3; grid-row: 2; }
.control-btn.down   { grid-column: 2; grid-row: 3; }

.keyboard-controls {
  margin-top: 1rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.keyboard-controls p { margin: 3px 0; }
.keyboard-controls strong { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATES
═══════════════════════════════════════════════════════════════ */
.certificates-section { background: var(--bg); }

.certificates-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.certificate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.certificate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.1), var(--shadow);
}

.certificate-img-container {
  height: 210px;
  overflow: hidden;
  background: #0a1220;
  position: relative;
}
.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.certificate-card:hover .certificate-img { transform: scale(1.06); }

.certificate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.certificate-card:hover .certificate-overlay { opacity: 1; }

.view-btn {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 10px 20px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-transform: uppercase;
}
.view-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.certificate-content  { padding: 1.4rem; }
.certificate-content h3 {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--text);
}
.certificate-provider {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.certificate-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  margin-bottom: 10px;
}
.certificate-content p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 10px; }

.certificate-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATE MODAL
═══════════════════════════════════════════════════════════════ */
.certificate-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.certificate-modal.show { display: flex; }

.certificate-modal-content {
  width: 90%;
  max-width: 1100px;
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0, 100, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.4s ease;
  position: relative;
}
.certificate-modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

.certificate-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.certificate-modal-close:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: var(--red);
  color: var(--red);
}

.certificate-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.certificate-modal-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.certificate-modal-image img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.certificate-modal-info {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}
.certificate-modal-info h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.modal-provider-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-provider-date .provider {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.modal-provider-date .date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  background: rgba(255, 201, 71, 0.08);
  border: 1px solid rgba(255, 201, 71, 0.25);
  padding: 4px 12px;
  border-radius: 4px;
}

.modal-description p { font-size: 0.98rem; line-height: 1.85; margin-bottom: 1.5rem; }

.modal-skills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.modal-skill-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  border-radius: 4px;
  transition: var(--transition);
}
.modal-skill-tag:hover { background: rgba(0, 212, 255, 0.18); transform: translateY(-2px); }

.certificate-modal-nav {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.modal-nav-btn {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 9px 20px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-transform: uppercase;
}
.modal-nav-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.modal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.modal-nav-btn:disabled:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact { background: var(--bg-sec); }

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-item p { margin: 0; font-size: 0.95rem; }

.social-links { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.social-link:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.contact-form { display: flex; flex-direction: column; }
.form-group   { margin-bottom: 1.2rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
  background: rgba(0, 212, 255, 0.03);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-content .logo { font-size: 1.5rem; }
.footer-content p     { max-width: 500px; font-size: 0.9rem; }
.copyright {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.6;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .certificate-modal-body { flex-direction: column; }
  .certificate-modal-image {
    flex: none;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .certificate-modal-info { flex: none; max-height: 40vh; overflow-y: auto; }
}

@media (max-width: 992px) {
  .hero-content,
  .about-content,
  .contact-content  { grid-template-columns: 1fr; gap: 3rem; }
  .skills-container { grid-template-columns: 1fr; }
  .projects-grid    { grid-template-columns: 1fr; }
  .certificates-grid{ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 62px);
    background: rgba(5, 10, 20, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 0.5rem;
    transition: left 0.3s ease;
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
  }
  .nav-links.active { left: 0; }
  .nav-links li a   { font-size: 13px; padding: 12px 20px; }
  .mobile-menu-btn  { display: flex; }

  .hero-image       { order: -1; }
  .profile-img img  { height: 300px; }
  .about-stats      { grid-template-columns: 1fr 1fr; }

  .theme-btn span   { display: none; }
  .theme-btn        { padding: 9px 10px; }

  .certificate-modal-nav { flex-direction: column; gap: 0.8rem; }
  .modal-nav-btn         { justify-content: center; }
}

@media (max-width: 576px) {
  .hero-btns              { flex-direction: column; }
  .about-stats            { grid-template-columns: 1fr; }
  .certificate-modal-content { width: 98%; }
  .certificate-modal-info { padding: 1.5rem; }
  .mobile-controls {
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(3, 50px);
  }
}
