/* ============================
   ANUP PAUDEL — DATA PORTFOLIO
   ============================ */

:root {
  --bg: #050a14;
  --bg2: #080f1e;
  --surface: #0d1526;
  --surface2: #111c30;
  --border: rgba(99, 179, 237, 0.12);
  --accent: #38bdf8;
  --accent2: #818cf8;
  --accent3: #34d399;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --gradient: linear-gradient(135deg, #38bdf8, #818cf8, #34d399);
  --glow: 0 0 30px rgba(56, 189, 248, 0.15);
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  /* Add a soft radial glow at the top to echo the blackhole video colors */
  background: radial-gradient(800px 420px at 50% 0%, rgba(56,189,248,0.08), rgba(129,140,248,0.04) 25%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0 ;
  padding: 0;
}

/* ---- Background Canvas ---- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
p { color: var(--text-dim); line-height: 1.75; }

.gradient-text {
  background: var(--gradient);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  position: relative;
  z-index: 1;
}



.btn-primary {
  background: var(--accent);
  color: #050a14;
}
.btn-primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }


/* ========================
   HEADER
   ======================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 70px;
  background: rgba(5, 10, 20, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(56, 189, 248, 0.08);
}

.logo {
      display: flex;
    align-items: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.logo img{
    width: 40px;
    margin: 0 15px;
}
.accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-num { color: var(--accent); margin-right: 4px; font-size: 0.75rem; }

.header-icons {
  display: flex;
  gap: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================
   SIDEBAR (Mobile)
   ======================== */
.sidebar {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 20, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar.open { transform: translateX(0); }

.sidebar-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.sidebar-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-link:hover { color: var(--accent); }

.sidebar-socials {
  display: flex;
  gap: 16px;
}
.sidebar-socials a {
  font-size: 1.6rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.sidebar-socials a:hover { color: var(--accent); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0,0,0,0.5);
}
.sidebar-overlay.show { display: block; }

/* ========================
   HERO  — reference layout
   ======================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 90px clamp(20px,5vw,70px) 60px;
  overflow: hidden;
  z-index: 2;
}

/* LEFT text content */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 540px;
}
.hero-info > * {
  position: relative;
}
.hero-sub{
   margin-top: 1.5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a78bfa;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.25);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 25px;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-family: var(--font-mono);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: #fff;
   z-index: 10;
}

.hero-title br { display: block; }

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
  font-style: var(--font-mono);
  letter-spacing: 1px;
   z-index: 1;

}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-num::after { content: "+"; }
.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}
.hero-info .hero-info-title{
    color: #72a1de;
    padding: 8px 5px;
    border-radius: 50px;
    border: 1px solid #72a1de94;
    width: 240px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de84;
}
.hero-info h1{
    font-size: 60px;
    max-width: 600px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-info p{
    max-width: 550px;
    line-height: 25px;
    margin-bottom: 40px;
    font-size: 20px;
}
.hero-image {
  position: relative;
  z-index: 3;

  width: 450px;
  height: 450px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  transform: translateX(200px); 
}
/* circular image */
.hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  border: 3px solid rgba(56, 189, 248, 0.35);
  box-shadow: 
    0 0 30px rgba(56, 189, 248, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.4);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* hover effect */
.hero-image:hover img {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(56, 189, 248, 0.25),
    0 15px 60px rgba(0, 0, 0, 0.5);
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56,189,248,0.2),
    transparent 60%
  );
  z-index: -1;
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-info button{
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
}

.hero-info button:hover{
    box-shadow: 0 0 15px #72a1de81;
}
.gradient{
    background: linear-gradient(to right,#00aaa7, #7e42a7, #6600c5, #6070fd,#2a46ff, #0099ff, #008ead);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}
@keyframes animate-gradient {
    to{
        background-position: 200%;
    }
}
.skills-video-box{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.skills-video{ 
   width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0.25; /* transparency */
  filter: brightness(0.6) contrast(1.1) saturate(1.2);
}


/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

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

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.2s;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ========================
   ABOUT
   ======================== */
.about-section {
  position: relative;
  padding: 90px clamp(20px,5vw,70px) 60px;

} 
     
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.card-icon-row {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
}

.about-card p { font-size: 0.9rem; }

.about-card .btn { margin-top: 20px; }

/* Stack card */
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stack-pills span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

/* Location card */
.timezone-badge {
  margin-top: 12px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent3);
}

/* Focus card (wide) */
.card-focus {
  grid-column: span 2;
}

.focus-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.focus-path {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.path-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.path-step.done {
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent3);
  background: rgba(52, 211, 153, 0.06);
}

.path-step.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
}

.path-step.future { opacity: 0.4; }
.path-arrow { color: var(--text-muted); font-size: 1.1rem; }


/* ========================
   SKILLS
   ======================== */
.skills-section { position: relative;   
  padding: 100px clamp(20px, 5vw, 70px);
  z-index: 2;}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
  z-index: 3;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}

.skill-category:hover { border-color: rgba(56, 189, 248, 0.25); }

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.skill-cat-header i {
  font-size: 1.5rem;
  color: var(--accent);
}

.skill-cat-header h3 {
  font-size: 1rem;
  color: var(--text);
}

.skill-bars { display: flex; flex-direction: column; gap: 16px; }

.skill-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 12px;
}

.skill-bar-item > span:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 120px;
}

.bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient);
  background-size: 200%;
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradientShift 3s ease infinite;
}

.bar-pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  min-width: 32px;
  text-align: right;
}

/* Logo slider */
.logo-slider-wrap {
  position: relative;
  overflow: hidden;
}

.slider-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.slider-fade.left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.slider-fade.right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.logo-slider { overflow: hidden; padding: 16px 0; }

.slider-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: slideLoop 20s linear infinite;
}

.slider-item {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0.6);
  transition: filter 0.3s;
}

.slider-item:hover { filter: grayscale(0) brightness(1); }
.slider-item img { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes slideLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ========================
   PROJECTS
   ======================== */
.projects-section {
  position: relative;
  padding: 120px clamp(20px, 6vw, 80px);
  }
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-item {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.project-item.reverse {
  direction: rtl;
}
.project-item.reverse > * { direction: ltr; }

.project-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  opacity: 0.5;
}

.project-media { position: relative; }

.media-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface2);
  cursor: pointer;
}

.media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-wrapper:hover video { transform: scale(1.03); }

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(5,10,20,0.85));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}

.play-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.project-tags-overlay {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags-overlay span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(5, 10, 20, 0.8);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.project-details { padding: 8px 0; }

.project-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-details h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-details p {
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text-dim);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.project-meta span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-meta i { color: var(--accent3); }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(129, 140, 248, 0.07);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: var(--accent2);
}

.project-actions { display: flex; gap: 12px; }

.projects-cta {
  text-align: center;
  margin-top: 60px;
}


/* ========================
   CONTACT
   ======================== */
.contact-section { background: transparent; 
  padding: 100px clamp(20px, 5vw, 70px);
  position: relative;
  z-index: 2;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ci-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.05);
}

.ci-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.ci-value {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.ci-value:hover { color: var(--accent); }

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}


/* ========================
   FOOTER
   ======================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(20px, 6vw, 80px);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--accent); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}


/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-icons-cloud { position: relative; width: 100%; height: 300px; margin-top: 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 100px; padding-bottom: 60px; }
  .hero-visual { max-width: 560px; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .card-focus { grid-column: span 2; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-item, .project-item.reverse { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
  .project-num { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .header-icons { display: none; }
  .menu-btn { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .card-focus { grid-column: 1; }
  .card-stack { grid-column: 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .focus-path { display: none; }
  section { padding: 70px clamp(20px, 5vw, 40px); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .project-actions { flex-direction: column; }
  .contact-form { padding: 24px 20px; }
}


/* ============================================
   EXTRA ANIMATIONS — UPGRADED
   ============================================ */

/* Active nav link */
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 2px;
  animation: navUnderline 0.3s ease forwards;
}
@keyframes navUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Hero entrance — stagger title lines */
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineUp 0.7s ease forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) { animation-delay: 0.4s; }

@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Terminal glow pulse */
.terminal {
  animation: terminalGlow 4s ease-in-out infinite;
}
@keyframes terminalGlow {
  0%,100% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.05); }
  50%      { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(56,189,248,0.12); }
}

/* Glitch effect on logo */
.logo:hover .logo-name {
  animation: glitch 0.4s ease;
}
@keyframes glitch {
  0%   { text-shadow: none; }
  20%  { text-shadow: 2px 0 #38bdf8, -2px 0 #818cf8; transform: skewX(2deg); }
  40%  { text-shadow: -2px 0 #34d399, 2px 0 #38bdf8; transform: skewX(-2deg); }
  60%  { text-shadow: 2px 0 #818cf8; transform: skewX(1deg); }
  80%  { text-shadow: none; transform: skewX(0); }
  100% { text-shadow: none; }
}

/* About cards — shimmer border on hover */
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(56,189,248,0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.about-card { position: relative; }
.about-card:hover::before { opacity: 1; }

/* Skill bar glow */
.bar-fill {
  position: relative;
  overflow: visible;
}
.bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(50%, -50%);
  box-shadow: 0 0 8px var(--accent);
  opacity: 0;
  transition: opacity 0.3s 1s;
}
.bar-fill[style*="width"]::after { opacity: 1; }

/* Project item — border scan effect */
.project-item::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(56,189,248,0.3), transparent);
  top: -20px;
  transform: scaleX(0);
  transition: transform 0.8s ease;
}
.project-item.visible::before,
.project-item:hover::before {
  transform: scaleX(1);
}

/* Floating section tag */
.section-tag {
  display: inline-block;
  animation: tagFloat 3s ease-in-out infinite;
}
@keyframes tagFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Contact form — input focus glow */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1), 0 0 20px rgba(56,189,248,0.08);
}

/* Stat numbers — color pulse */
.stat-num {
  animation: statPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes statPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Badge shimmer */
.badge {
  position: relative;
  overflow: hidden;
}
.badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}
.badge:nth-child(2)::after { animation-delay: 0.6s; }
.badge:nth-child(3)::after { animation-delay: 1.2s; }
.badge:nth-child(4)::after { animation-delay: 1.8s; }
.badge:nth-child(5)::after { animation-delay: 2.4s; }

@keyframes badgeShimmer {
  0%   { left: -100%; }
  40%, 100% { left: 200%; }
}
@media (max-width: 768px) {
  .projects-section {
    padding: 80px 20px;
  }
} 

/* Footer pulse divider */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--gradient);
  background-size: 200%;
  animation: gradientShift 3s ease infinite;
}

/* Scroll hint text fade loop */
.scroll-hint {
  animation: hintFade 3s ease-in-out infinite;
}
@keyframes hintFade {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Media wrapper transition */
.media-wrapper {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.media-wrapper:hover {
  box-shadow: 0 20px 60px rgba(56,189,248,0.15);
}


/* ── Delay utility classes (replaces inline style="--d:...") ── */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.6s !important; }


/* ============================================
   TECH STACK SHOWCASE SECTION
   ============================================ */
.techstack-section {
  position: relative;
  padding: 100px clamp(20px, 6vw, 80px);
  overflow: hidden;
}

.glob-wrap {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  opacity: 12;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.glob-wrap video { width: 100%; }

.tech-orbit-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

/* Big center image */
.tos-center {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tos-img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(56,189,248,0.4));
  animation: tosFloat 5s ease-in-out infinite;
}
@keyframes tosFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.03); }
}

.tos-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  animation: tosGlow 3s ease-in-out infinite;
}
@keyframes tosGlow {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* Tech cards grid */
.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  opacity: 0;
  transform: translateY(30px);
}
.tech-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(56,189,248,0.12);
}

.tc-icon {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent);
}

.tc-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
}

.tc-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.tc-fill {
  height: 100%;
  background: var(--gradient);
  background-size: 200%;
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
  animation: gradientShift 3s ease infinite;
}

.tc-pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-align: right;
}

/* Color accents per card */
.tc-python { --card-accent: #3b82f6; }
.tc-html   { --card-accent: #f97316; }
.tc-github { --card-accent: #a3a3a3; }
.tc-django { --card-accent: #22c55e; }
.tc-ml     { --card-accent: #818cf8; }
.tc-sql    { --card-accent: #eab308; }
.tc-powerbi{ --card-accent: #f59e0b; }
.tc-pandas { --card-accent: #06b6d4; }

.tech-card:hover .tc-icon { color: var(--card-accent, var(--accent)); }
.tech-card:hover .tc-pct  { color: var(--card-accent, var(--accent)); }

/* Scrolling ticker */
.tech-ticker-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  z-index: 1;
}
.tech-ticker-wrap::before,
.tech-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.tech-ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.tech-ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.tech-ticker {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: tickerScroll 25s linear infinite;
}

.tech-ticker span {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.tech-ticker span:not(:nth-child(even)):hover { color: var(--accent); }
.tech-ticker span:nth-child(even) { color: rgba(56,189,248,0.2); font-size: 0.5rem; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive for new sections ── */
@media (max-width: 1024px) {
  .tech-orbit-showcase { grid-template-columns: 1fr; justify-items: center; }
  .tech-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tos-center { width: 240px; height: 240px; }
  .tos-img { width: 220px; height: 220px; }
  .orbit-scene { width: 300px; height: 300px; }
  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 295px; height: 295px; }
  .oi-1 { transform: translate(-50%, calc(-50% - 110px)); }
  .oi-2 { transform: translate(calc(-50% + 110px), -50%); }
  .oi-3 { transform: translate(-50%, calc(-50% + 110px)); }
  .oi-4 { transform: translate(calc(-50% - 110px), -50%); }
  .oi-5 { transform: translate(calc(-50% + 104px), calc(-50% - 104px)); }
  .oi-6 { transform: translate(calc(-50% + 104px), calc(-50% + 104px)); }
  .oi-7 { transform: translate(calc(-50% - 104px), calc(-50% + 104px)); }
}

@media (max-width: 768px) {
  .tech-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .glob-wrap { display: none; }
  .blackhole-wrap { opacity: 0.2; }
  .orbit-scene { width: 260px; height: 260px; }
  .ring-1 { width: 190px; height: 190px; }
  .ring-2 { width: 255px; height: 255px; }
  .oi-1 { transform: translate(-50%, calc(-50% - 95px)); }
  .oi-2 { transform: translate(calc(-50% + 95px), -50%); }
  .oi-3 { transform: translate(-50%, calc(-50% + 95px)); }
  .oi-4 { transform: translate(calc(-50% - 95px), -50%); }
  .oi-5 { transform: translate(calc(-50% + 90px), calc(-50% - 90px)); }
  .oi-6 { transform: translate(calc(-50% + 90px), calc(-50% + 90px)); }
  .oi-7 { transform: translate(calc(-50% - 90px), calc(-50% + 90px)); }
}

@media (max-width: 480px) {
  .tech-cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ai-orbit-img { width: 120px; height: 120px; }
  .orbit-scene { width: 220px; height: 220px; }
}

/* ── Hero icon cloud responsive ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: flex-start; padding-top: 110px; }
  .hero-content { max-width: 100%; z-index: 2; }
  .hero-icons-cloud {
    position: relative; right: auto; top: auto; bottom: auto;
    width: 100%; height: 280px;
    margin-top: 30px;
  }
  .blackhole-wrap { width: 100%; top: -20px; }
}
@media (max-width: 600px) {
  .hero-icons-cloud { height: 220px; }
  .hic-node { width: 34px; height: 34px; font-size: 0.9rem; }
  .n14,.n15,.n16,.n17,.n18,.n19,.n20 { display: none; }
  .hero-title { font-size: 2rem; }
  .blackhole-wrap { opacity: 0.6; }
}


/* ============================================
   TOAST NOTIFICATION
============================================ */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 20px;
  min-width: 260px;

  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.25);

  border-radius: 14px;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;

  box-shadow:
    0 10px 35px rgba(0,0,0,0.35),
    0 0 20px rgba(56,189,248,0.08);

  z-index: 99999;

  transform: translateY(20px);
  opacity: 0;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.toast i {
  font-size: 1.3rem;
  color: #38bdf8;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

/* Mobile */
@media (max-width: 600px) {
  .toast {
    right: 16px;
    left: 16px;
    bottom: 20px;
    min-width: unset;
    width: auto;
  }
}