@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --cyan: #00e5ff;
  --yellow: #f5a623;
  --orange: #f5a623;
  --white: #ffffff;
  --light-gray: rgba(255, 255, 255, 0.7);
  --dark-bg: rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --section-padding: 80px 150px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  background: #0d0d12;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overscroll-behavior: none;
}

/* All sections sit above the fluid canvas */
.section { position: relative; z-index: 3; }
.top-bar { z-index: 100; }

/* ===== FIXED BACKGROUND ===== */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: -2;
  background: #0d0d12;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease-out;
}

.bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 0.25s ease-out;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  z-index: 100;
}

.open-to-work {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.open-to-work .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

.contact-btn {
  background: var(--yellow);
  color: #000;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
}

/* ===== HERO SECTION ===== */
#section-1 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 150px 160px;
  position: relative;
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.hero-tag {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-tag.green { color: #00e676; }
.hero-tag.yellow { color: var(--yellow); }

.hero-name {
  font-size: 80px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 40px;
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
}

.hero-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  max-width: 600px;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
}

.hero-link:hover { opacity: 0.8; }

.hero-link .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}

.hero-link .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--yellow);
  fill: none;
  stroke-width: 1.5;
}

/* ===== SECTION COMMON ===== */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--section-padding);
  padding-bottom: 120px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 32px;
  font-style: italic;
}

/* ===== ABOUT SECTION ===== */
#section-2 { padding-top: 100px; }

.about-text { max-width: 700px; }

.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--light-gray);
  margin-bottom: 20px;
}

.about-text p:first-child {
  font-size: 17px;
  color: var(--white);
  font-weight: 400;
}

/* ===== EXPERIENCE SECTION ===== */
#section-3 { padding-top: 100px; }

.experience-item {
  margin-bottom: 60px;
  padding-left: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.experience-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.experience-item .subtitle {
  font-size: 15px;
  color: var(--yellow);
  margin-bottom: 6px;
  font-weight: 400;
}

.experience-item .date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.experience-item .company {
  font-size: 15px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.experience-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--light-gray);
  margin-bottom: 12px;
  max-width: 700px;
}

.experience-item .project-link {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
}

.experience-item .project-link a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.experience-item .project-link a:hover { color: var(--cyan); }

/* Kabir Fashions preview card */
.kabir-preview-card {
  display: block;
  margin-top: 20px;
  max-width: 480px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kabir-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.kabir-preview-card img {
  width: 100%;
  height: auto;
  display: block;
}

.kabir-preview-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kabir-preview-card:hover .kabir-preview-overlay { opacity: 1; }

.selected-projects {
  margin-top: 24px;
  margin-bottom: 24px;
}

.selected-projects h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.project-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 220px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.project-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.project-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.experience-bullets {
  list-style: none;
  padding: 0;
}

.experience-bullets li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--light-gray);
  padding-left: 16px;
  position: relative;
}

.experience-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== LIGHTING CURSOR (section-4 background) ===== */
#section-4 { position: relative; padding-top: 100px; }

#smokey-fluid-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh;
  height: 100dvh;
  pointer-events: none !important;
  z-index: 2 !important;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 600px;
  margin-bottom: 60px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.skill-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.tools-section { margin-top: 60px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 100px);
  gap: 30px;
  margin-bottom: 60px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.tool-item:hover { transform: translateY(-4px); }

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.tool-item span {
  font-size: 13px;
  color: var(--light-gray);
  font-weight: 500;
}

/* ===== LANGUAGES ===== */
.languages-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.languages-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-tag {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.lang-tag:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.language-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.language-item .lang-name {
  width: 80px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}

.progress-bar {
  flex: 1;
  max-width: 350px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a237e, #42a5f5);
  transition: width 1.5s ease;
}

/* ===== EDUCATION ===== */
.education-section { margin-top: 60px; }

.education-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.education-item {
  margin-bottom: 24px;
  padding-left: 24px;
  position: relative;
}

.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.education-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.education-item p {
  font-size: 14px;
  color: var(--yellow);
}

/* ===== LINKS SECTION ===== */
#section-5 {
  padding-top: 100px;
  padding-bottom: 100px;
  min-height: unset;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.linkedin { background: #0077b5; }
.social-icon.dribbble { background: #ea4c89; }
.social-icon.twitter { background: #000; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.behance { background: #1769ff; }
.social-icon.github { background: #333; }

.social-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 60px;
  transition: opacity 0.3s;
}

.email-link:hover { opacity: 0.8; }

.email-link svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 150px;
  padding-bottom: 120px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border-radius: 50px;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.nav-item:hover:not(.active) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Hero Animations */
.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}

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

.hero-animate-delay-1 { animation-delay: 0.2s; }
.hero-animate-delay-2 { animation-delay: 0.4s; }
.hero-animate-delay-3 { animation-delay: 0.6s; }
.hero-animate-delay-4 { animation-delay: 0.8s; }

/* ===== TOOL ICON BACKGROUNDS ===== */
.tool-framer { background: #000; }
.tool-figma { background: #1e1e1e; }
.tool-blender { background: #1e1e1e; }
.tool-vscode { background: #1e1e1e; }
.tool-git { background: #1e1e1e; }
.tool-github { background: #24292e; }
.tool-vercel { background: #000; }
.tool-cloudflare { background: #1e1e1e; }
.tool-chatgpt { background: #1e1e1e; }
.tool-claude { background: #1e1e1e; }
.tool-gemini { background: #1e1e1e; }
.tool-kiro { background: #1e1e1e; }
.tool-ollama { background: #111; }
.tool-notion { background: #111; }
.tool-capcut { background: #000; }
.tool-higgsfield { background: #0a0a0a; }
.tool-coderabbit { background: #1e1e1e; }
.tool-python { background: #1e1e1e; }
.tool-nodejs { background: #1e1e1e; }
.tool-react { background: #1e1e1e; }
.tool-js { background: #1e1e1e; }
.tool-html { background: #1e1e1e; }
.tool-css { background: #1e1e1e; }
.tool-cpp { background: #1e1e1e; }
.tool-c { background: #1e1e1e; }
.tool-kotlin { background: #1e1e1e; }
.tool-huggingface { background: #1e1e1e; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --section-padding: 60px 60px; }
  #section-1 { padding: 100px 60px 140px; }
  .hero-name { font-size: 56px; }
  .footer { padding: 24px 60px; padding-bottom: 120px; }
  .tools-grid { grid-template-columns: repeat(4, 90px); }
}

@media (max-width: 768px) {
  :root { --section-padding: 40px 20px; }

  #section-1 { padding: 100px 20px 140px; }

  .hero-name { font-size: 36px; }
  .hero-tag { font-size: 14px; }

  .hero-links {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .hero-link { font-size: 14px; }

  .section-title { font-size: 30px; }

  .top-bar { padding: 14px 20px; }

  .contact-btn { padding: 10px 22px; font-size: 14px; }

  .footer { padding: 20px; padding-bottom: 100px; }

  /* Tools: 4 per row on tablet */
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  /* Project cards wrap */
  .project-cards { flex-wrap: wrap; }
  .project-card { min-width: 0; flex: 1 1 140px; }

  /* Bottom nav: icons only, no labels */
  .bottom-nav {
    bottom: 16px;
    padding: 6px 8px;
    width: auto;
    max-width: calc(100% - 32px);
    justify-content: center;
  }

  .nav-item {
    padding: 10px 12px;
    font-size: 0; /* hide label text */
    gap: 0;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  /* Progress bar full width */
  .progress-bar { max-width: 100%; }

  /* Skills single column */
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 28px; }
  .hero-tag { font-size: 12px; }

  .section-title { font-size: 26px; }

  .about-text p { font-size: 14px; }

  .experience-item h3 { font-size: 17px; }
  .experience-item p { font-size: 14px; }

  /* Tools: 4 per row, smaller icons */
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .tool-icon { width: 48px; height: 48px; }
  .tool-item span { font-size: 11px; }

  /* Hero links single column, smaller */
  .hero-link { font-size: 13px; padding: 10px 12px; }
  .hero-link .icon svg { width: 18px; height: 18px; }

  .contact-btn { padding: 9px 18px; font-size: 13px; }

  .open-to-work { font-size: 13px; }

  #section-5 { padding-bottom: 100px; }
}
