/* ============================================================
   SAQIB DEV — ULTRA ADVANCED PORTFOLIO CSS
   Font: Orbitron (display) + Syne (body)
   Theme: Cyber-Dark | Red Accent | Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --red:       #e50914;
  --red-dark:  #b0060f;
  --red-glow:  rgba(229,9,20,0.45);
  --bg:        #050505;
  --bg2:       #0d0d0d;
  --bg3:       #111;
  --card:      rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --text:      #f0f0f0;
  --muted:     #888;
  --font-head: 'Orbitron', monospace;
  --font-body: 'Syne', sans-serif;
  --transition: 0.4s cubic-bezier(0.25,0.8,0.25,1);
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  padding-top: 80px;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--red); color: #fff; }

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 2px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  opacity: 0.6;
}

body.cursor-hover #cursor-dot  { width: 16px; height: 16px; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; opacity: 1; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; }

/* ─── NOISE OVERLAY ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  background: rgba(5,5,5,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: top 0.4s ease, background 0.4s;
  z-index: 9000;
}

.navbar-brand img { filter: brightness(1.1); }

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted) !important;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  transition: color var(--transition);
  position: relative;
  padding: 4px 8px !important;
}

.nav-link i { font-size: 16px; margin-bottom: 3px; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--red) !important; }
.nav-link:hover::after, .nav-link.active::after { width: 70%; }



/* ─── MOBILE NAV ────────────────────────────────────────────── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 8px;
  border-top: 1px solid var(--border);
  z-index: 9999;
}

.mobile-bottom-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-family: var(--font-head);
  text-align: center;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.mobile-bottom-nav a i { font-size: 18px; display: block; margin-bottom: 2px; }
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active { color: var(--red); }

/* ─── HERO SECTION ──────────────────────────────────────────── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Animated Grid BG */
#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229,9,20,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,9,20,0.07) 1px, transparent 1px);
  background-size: 55px 55px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 55px 55px; }
}

/* Radial glow */
#home::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,9,20,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  50%       { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
}

#home .container { position: relative; z-index: 1; }

/* Profile Image */
.profile-img-wrap {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 3px solid var(--red);
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 30px var(--red-glow), 0 0 80px rgba(229,9,20,0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

.profile-img:hover {
  box-shadow: 0 0 50px var(--red), 0 0 100px rgba(229,9,20,0.3);
  transform: scale(1.05) translateY(-8px);
}

/* Orbit rings */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(229,9,20,0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-1 { width: 300px; height: 300px; animation: spin  8s linear infinite; }
.orbit-2 { width: 360px; height: 360px; animation: spin 14s linear infinite reverse; }
.orbit-3 { width: 420px; height: 420px; animation: spin 20s linear infinite; border-color: rgba(229,9,20,0.08); }

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--red);
}

@keyframes spin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Hero Text */
.hero-greeting {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: slideIn 0.8s 0.2s forwards;
}

.profile-name {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 4px;
  opacity: 0;
  animation: slideIn 0.8s 0.4s forwards;
}

.profile-name span { color: var(--red); }

.profile-role {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--red);
  min-height: 36px;
  margin-top: 8px;
  opacity: 0;
  animation: slideIn 0.8s 0.6s forwards;
}

.typing-cursor {
  border-right: 2px solid var(--red);
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink { 0%,100%{ border-color:var(--red); } 50%{ border-color:transparent; } }

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-top: 16px;
  opacity: 0;
  animation: slideIn 0.8s 0.8s forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero Buttons */
.hero-btns {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: slideIn 0.8s 1s forwards;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-red::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-red:hover::before { left: 100%; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-4px); box-shadow: 0 8px 25px var(--red-glow); color: #fff; }

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(229,9,20,0.2); }

/* Stats row */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  opacity: 0;
  animation: slideIn 0.8s 1.2s forwards;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 1px; margin-top: 4px; text-transform: uppercase; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-head);
  letter-spacing: 2px;
  z-index: 1;
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0%  { top: 6px; opacity: 1; }
  100%{ top: 20px; opacity: 0; }
}

@keyframes bounce {
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%    { transform: translateX(-50%) translateY(6px); }
}

/* ─── SECTION HEADERS ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.section-title span { color: var(--red); }

.section-line {
  width: 60px; height: 3px;
  background: var(--red);
  margin: 18px auto 0;
  border-radius: 2px;
  position: relative;
}

.section-line::after {
  content: '';
  position: absolute;
  right: -14px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
#about { background: var(--bg2); padding: 100px 0; }

.about-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 22px 24px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.about-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(229,9,20,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.about-box:hover { transform: translateX(6px); box-shadow: -6px 0 20px var(--red-glow); }
.about-box:hover::before { opacity: 1; }

.about-box h5 { color: var(--red); font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 8px; }
.about-box p  { color: #ccc; font-size: 0.9rem; line-height: 1.6; }

.about-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.about-info-item:last-child { border: none; }

.about-icon {
  width: 40px; height: 40px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  transition: var(--transition);
}

.about-info-item:hover .about-icon { background: var(--red); color: #fff; box-shadow: 0 0 15px var(--red-glow); }

.about-info-text strong { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 2px; }
.about-info-text span  { color: var(--muted); font-size: 0.82rem; }
.about-info-text a     { color: var(--red); text-decoration: none; }

/* ─── SKILLS SECTION ────────────────────────────────────────── */
#skill { background: var(--bg); padding: 100px 0; }

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--red);
  transition: width 0.5s ease;
}

.skill-card:hover { transform: translateY(-10px); border-color: rgba(229,9,20,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 30px rgba(229,9,20,0.15); }
.skill-card:hover::after { width: 100%; }

/* Circular progress */
.skill-circle {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
}

.skill-circle svg {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}

.skill-circle .bg-ring {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 8;
}

.skill-circle .progress-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 345;
  stroke-dashoffset: 345;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.34,1.56,0.64,1);
  filter: drop-shadow(0 0 6px var(--red));
}

.skill-circle .inner-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.skill-icon {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 6px;
  display: block;
}

.skill-name { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 1px; color: #ccc; }

/* ─── RESUME SECTION ────────────────────────────────────────── */
#resume { background: var(--bg2); padding: 100px 0; }

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -37px; top: 8px;
  width: 16px; height: 16px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 10px var(--red-glow);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot { background: var(--red); transform: scale(1.3); }

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.timeline-card:hover { border-color: rgba(229,9,20,0.35); transform: translateX(6px); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.timeline-card:hover::before { opacity: 1; }

.timeline-card h5 { color: var(--red); font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 6px; }
.timeline-card .meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 10px; }
.timeline-card p   { color: #bbb; font-size: 0.88rem; line-height: 1.6; }
.timeline-badge    { display: inline-block; background: rgba(229,9,20,0.15); border: 1px solid rgba(229,9,20,0.3); color: var(--red); font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-family: var(--font-head); letter-spacing: 1px; }

/* ─── CERTIFICATES ──────────────────────────────────────────── */
#certificate { background: var(--bg); padding: 100px 0; }

.cert-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 300px;
  background: #111;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  cursor: pointer;
  border: 1px solid var(--border);
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cert-card:hover .cert-image { transform: scale(1.08); opacity: 0.15; }

.cert-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  background: linear-gradient(145deg, rgba(229,9,20,0.9), #000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cert-card:hover .cert-overlay { opacity: 1; transform: translateY(0); }

.cert-overlay h5 { font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 1px; color: #fff; margin-bottom: 8px; }
.cert-overlay p  { color: rgba(255,255,255,0.8); font-size: 0.82rem; margin: 0; }
.cert-overlay .cert-date { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: #fff;
  margin-top: auto;
}

/* ─── PROJECTS SECTION ──────────────────────────────────────── */
#projects { background: var(--bg2); padding: 100px 0; }

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  height: 100%;
  position: relative;
}

.project-card:hover { transform: translateY(-12px); border-color: rgba(229,9,20,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(229,9,20,0.1); }

.project-img-wrap {
  height: 160px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.project-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(229,9,20,0.1));
}

.project-img-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrap img { transform: scale(1.1); }

.project-body { padding: 24px; }
.project-body h5 { font-family: var(--font-head); font-size: 0.9rem; color: var(--red); letter-spacing: 1px; margin-bottom: 10px; }
.project-body p  { color: #bbb; font-size: 0.85rem; line-height: 1.65; margin-bottom: 20px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-tag  { background: rgba(229,9,20,0.1); border: 1px solid rgba(229,9,20,0.25); color: var(--red); font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-family: var(--font-head); }

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-visit:hover { background: var(--red); color: #fff; box-shadow: 0 6px 20px var(--red-glow); transform: translateY(-2px); }

/* ─── CONTACT SECTION ───────────────────────────────────────── */
#contact { background: var(--bg); padding: 100px 0; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.contact-item:hover { border-color: rgba(229,9,20,0.4); transform: translateX(8px); box-shadow: 0 8px 30px rgba(0,0,0,0.5); color: var(--text); }

.contact-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.ci-red   { background: rgba(229,9,20,0.15); color: var(--red); border: 1px solid rgba(229,9,20,0.3); }
.ci-fb    { background: rgba(24,119,242,0.15); color: #1877f2; border: 1px solid rgba(24,119,242,0.3); }
.ci-ig    { background: rgba(228,64,95,0.15); color: #e4405f; border: 1px solid rgba(228,64,95,0.3); }
.ci-li    { background: rgba(0,119,181,0.15); color: #0077b5; border: 1px solid rgba(0,119,181,0.3); }
.ci-wa    { background: rgba(37,211,102,0.15); color: #25d366; border: 1px solid rgba(37,211,102,0.3); }

.contact-item:hover .contact-icon { transform: rotate(10deg) scale(1.1); }

.contact-label { font-size: 0.75rem; color: var(--muted); font-family: var(--font-head); letter-spacing: 1px; }
.contact-value { font-size: 0.95rem; color: #fff; }

/* Contact Form */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-label { color: #ccc; font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 1.5px; margin-bottom: 8px; display: block; }

.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  width: 100%;
}

.form-control::placeholder { color: var(--muted); }

.form-control:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(229,9,20,0.04);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}

.mb-4 { margin-bottom: 20px; }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: #020202;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  text-align: center;
}

footer .brand { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: 2px; }
footer .brand span { color: var(--red); }

footer .social-links { display: flex; justify-content: center; gap: 16px; margin: 24px 0; }

footer .social-links a {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

footer .social-links a:hover { border-color: var(--red); color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 20px var(--red-glow); }

footer .copy { color: var(--muted); font-size: 0.82rem; }
footer .copy a { color: #aaa; text-decoration: none; }

/* ─── LOADER ────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease;
}

.loader-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 4px;
  animation: loaderPulse 1s infinite alternate;
}

@keyframes loaderPulse { from{ opacity: 0.4; } to{ opacity: 1; } }

.loader-bar {
  width: 200px;
  height: 3px;
  background: #111;
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  animation: loadFill 1.4s ease forwards;
  box-shadow: 0 0 10px var(--red);
}

@keyframes loadFill { from{ width:0; } to{ width:100%; } }

/* ─── GLITCH EFFECT ─────────────────────────────────────────── */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--red);
  clip-path: polygon(0 5%, 100% 5%, 100% 10%, 0 10%);
  animation: glitch1 3s infinite linear alternate-reverse;
  color: inherit;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 #0ff;
  clip-path: polygon(0 85%, 100% 85%, 100% 90%, 0 90%);
  animation: glitch2 3s infinite linear alternate-reverse;
  color: inherit;
}

@keyframes glitch1 {
  0%   { clip-path: polygon(0 5%,  100% 5%,  100% 10%, 0 10%); transform: translateX(1px); }
  20%  { clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%); }
  40%  { clip-path: polygon(0 55%, 100% 55%, 100% 60%, 0 60%); }
  60%  { clip-path: polygon(0 75%, 100% 75%, 100% 80%, 0 80%); }
  80%  { clip-path: polygon(0 20%, 100% 20%, 100% 25%, 0 25%); transform: translateX(-1px); }
  100% { clip-path: polygon(0 90%, 100% 90%, 100% 95%, 0 95%); }
}

@keyframes glitch2 {
  0%   { clip-path: polygon(0 85%, 100% 85%, 100% 90%, 0 90%); transform: translateX(-1px); }
  25%  { clip-path: polygon(0 40%, 100% 40%, 100% 45%, 0 45%); }
  50%  { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); }
  75%  { clip-path: polygon(0 15%, 100% 15%, 100% 20%, 0 20%); transform: translateX(1px); }
  100% { clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%); }
}

/* ─── PARTICLES ─────────────────────────────────────────────── */
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── FLOATING BADGES ───────────────────────────────────────── */
.badge-float {
  position: absolute;
  background: var(--card);
  border: 1px solid rgba(229,9,20,0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
  display: flex; align-items: center; gap: 8px;
}
.badge-float i { color: var(--red); }

.badge-1 { top: 20%; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: -20px; animation-delay: 1s; }

@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */

/* Tablet & below */
@media (max-width: 991px) {
  body { padding-top: 65px; padding-bottom: 72px; }

  /* Hero */
  #home { min-height: auto; padding: 60px 0 100px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-greeting, .profile-name, .profile-role, .hero-desc { text-align: center; }
  .hero-desc { margin: 16px auto; }
  .badge-1, .badge-2 { display: none; }
  .scroll-indicator { display: none; }

  /* Sections padding */
  #about, #skill, #resume, #certificate, #projects, #contact { padding: 70px 0; }

  /* About info items center on mobile */
  .about-info-item { flex-direction: row; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -31px; }
}

/* Mobile */
@media (max-width: 767px) {
  /* Orbit hidden on small screens */
  .orbit-2, .orbit-3 { display: none; }
  .orbit-1 { width: 260px; height: 260px; }
  .profile-img { width: 190px; height: 190px; }

  /* Hero text */
  .profile-name { font-size: 1.6rem; }
  .profile-role  { font-size: 1rem; }
  .hero-desc     { font-size: 0.88rem; }

  /* Stats smaller */
  .stat-num   { font-size: 1.5rem; }
  .stat-label { font-size: 0.68rem; }
  .hero-stats { gap: 20px; }

  /* Section headers */
  .section-title { font-size: 1.6rem; }

  /* Skills — 2 per row */
  #skill .col-4 { flex: 0 0 50%; max-width: 50%; }
  .skill-circle { width: 100px; height: 100px; }
  .skill-circle svg { width: 100px; height: 100px; }
  .skill-circle .inner-text { font-size: 0.95rem; }
  .skill-icon { font-size: 1.4rem; }
  .skill-name { font-size: 0.72rem; }
  .skill-card { padding: 18px 12px; }

  /* About boxes */
  .about-box { padding: 16px; }
  .about-box h5 { font-size: 0.8rem; }

  /* Timeline */
  .timeline { padding-left: 20px; }
  .timeline-dot { left: -27px; width: 14px; height: 14px; }
  .timeline-card { padding: 16px 18px; }
  .timeline-card h5 { font-size: 0.82rem; }
  .timeline-card p  { font-size: 0.82rem; }
  .timeline-badge   { font-size: 0.65rem; padding: 2px 8px; }

  /* Cert cards */
  .cert-card { height: 240px; }

  /* Project cards */
  .project-img-wrap { height: 130px; }
  .project-body h5  { font-size: 0.85rem; }
  .project-body p   { font-size: 0.82rem; }

  /* Contact */
  .contact-item { padding: 14px 16px; gap: 14px; }
  .contact-icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .contact-value { font-size: 0.85rem; }
  .form-card { padding: 22px 16px; }

  /* Footer */
  footer { padding: 36px 0 20px; }
}

/* Small mobile */
@media (max-width: 400px) {
  .profile-img { width: 160px; height: 160px; }
  .orbit-1 { width: 220px; height: 220px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .btn-red, .btn-ghost { width: 100%; max-width: 260px; text-align: center; justify-content: center; }
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 1.3rem; }
  #skill .col-4 { flex: 0 0 50%; max-width: 50%; }
}