@charset "UTF-8";

/* ================= FONTS =================
   Space Grotesk  -> display/headings (technical, geometric, not the usual portfolio serif or Poppins)
   Inter           -> body copy (clean, highly readable at small sizes)
   JetBrains Mono  -> terminal/code accents (labels, tags, the hero terminal, section eyebrows)
============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0e14;
  color: #e6e9ef;
  overflow-x: hidden;
}

h1, h2, h3, .logo {
  font-family: "Space Grotesk", sans-serif;
}

code, .mono, .hero-greeting, .eyebrow, .timeline-content span,
.upskills-grid div, .skills-grid div, .tech-stack span {
  font-family: "JetBrains Mono", monospace;
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0e14;
}

::-webkit-scrollbar-thumb {
  background: #f2b134;
  border-radius: 10px;
}

/* ================= FLOATING BACKGROUND ================= */
/* Restrained: faint grid instead of floating cyan orbs (that pattern is the #1 AI-portfolio tell) */

.bg-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(242, 177, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 177, 52, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-animation span {
  display: none;
}

/* ================= NAVBAR ================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(11, 14, 20, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f2b134;
}

.logo::before {
  content: "~/";
  color: #5fd97a;
  margin-right: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: #c3c9d6;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: #f2b134;
  background: rgba(242, 177, 52, 0.08);
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Signature element: hero image reframed as a terminal window */

.hero-image {
  text-align: center;
}

.hero-image {
  position: relative;
  background: #10141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hero-image .title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0d1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-image .title-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-image .title-bar .dot.red { background: #ff5f56; }
.hero-image .title-bar .dot.yellow { background: #ffbd2e; }
.hero-image .title-bar .dot.green { background: #27c93f; }

.hero-image .title-bar span.label {
  margin-left: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #55606f;
  letter-spacing: 0.5px;
}

.hero-image .photo-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 24px auto;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 177, 52, 0.35);
  filter: brightness(0.97) contrast(1.03);
}

/* Softens the flat white studio background so it doesn't clash with the dark theme */
.hero-image .photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(11, 14, 20, 0) 55%,
    rgba(11, 14, 20, 0.55) 100%
  );
  pointer-events: none;
}

.hero-image .status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #55606f;
}

.hero-image .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fd97a;
  box-shadow: 0 0 8px rgba(95, 217, 122, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-greeting {
  color: #5fd97a;
  font-size: 1.05rem;
}

.hero-greeting::before {
  content: "$ ";
  color: #55606f;
}

.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 700;
  margin: 14px 0 6px;
  letter-spacing: -0.5px;
}

.hero-content h2 {
  color: #f2b134;
  min-height: 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-content h2::before {
  content: "> ";
  color: #55606f;
}

#typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #f2b134;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  margin-top: 20px;
  line-height: 1.8;
  color: #a7afbe;
  max-width: 46ch;
}

.hero-buttons {
  margin-top: 30px;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 8px 8px 8px 0;
  transition: 0.25s;
}

.primary-btn {
  background: #f2b134;
  color: #0b0e14;
}

.primary-btn:hover {
  background: #ffc861;
  transform: translateY(-3px);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e6e9ef;
  background: transparent;
}

.secondary-btn:hover {
  border-color: #f2b134;
  color: #f2b134;
  transform: translateY(-3px);
}

/* ================= SOCIAL ================= */

.social-icons {
  margin-top: 28px;
}

.social-icons a {
  color: #a7afbe;
  font-size: 1.4rem;
  margin-right: 20px;
  transition: 0.25s;
}

.social-icons a:hover {
  color: #f2b134;
  transform: translateY(-3px);
}

/* ================= COMMON SECTION ================= */

section {
  max-width: 1200px;
  margin: auto;
  padding: 90px 20px;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 46px;
  color: #e6e9ef;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title::before {
  content: "//";
  font-family: "JetBrains Mono", monospace;
  color: #5fd97a;
  font-size: 1.3rem;
  font-weight: 400;
}

/* ================= GLASS CARD ================= */

.glass-card {
  background: #10141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 32px;
  line-height: 1.9;
  color: #c3c9d6;
}

/* ================= STATS ================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #10141d;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 177, 52, 0.4);
}

.stat-card h2 {
  color: #f2b134;
  font-size: 2.6rem;
}

.stat-card p {
  color: #8b93a7;
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ================= UPSKILLS ================= */

.upskills-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.upskills-grid div {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #c3c9d6;
}

.upskills-grid i {
  display: block;
  margin-bottom: 10px;
  color: #5fd97a;
  font-size: 1.4rem;
}

/* ================= TIMELINE ================= */

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding-left: 20px;
  border-left: 2px solid rgba(242, 177, 52, 0.3);
}

.timeline-item {
  position: relative;
  width: 100%;
  padding: 0 0 34px 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2b134;
  box-shadow: 0 0 0 4px rgba(242, 177, 52, 0.15);
}

.timeline-content {
  background: #10141d;
  padding: 22px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-content h3 {
  margin-bottom: 4px;
}

.timeline-content span {
  color: #5fd97a;
  font-size: 0.85rem;
}

.timeline-content p {
  color: #a7afbe;
  margin-top: 8px;
}

/* ================= SKILLS ================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.skills-grid div {
  background: #10141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  border-radius: 10px;
  text-align: left;
  font-size: 0.88rem;
  color: #c3c9d6;
  transition: 0.25s;
}

.skills-grid div:hover {
  border-color: #f2b134;
  color: #f2b134;
  transform: translateY(-3px);
}

.skills-grid i {
  margin-right: 10px;
  color: #5fd97a;
  width: 18px;
  text-align: center;
}

.skills-grid div:hover i {
  color: #f2b134;
}

.soft-skill-title {
  margin: 54px 0 24px;
  color: #e6e9ef;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.mongodb-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  margin-right: 8px;
  background-image: url("https://www.svgrepo.com/show/331488/mongodb.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

/* ================= PROJECTS ================= */

.projects {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.project-card {
  background: #10141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #f2b134;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: 0.3s;
}

.project-card:hover {
  border-left-color: #5fd97a;
  transform: translateY(-4px);
}

.project-card h3 {
  color: #e6e9ef;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.project-card p {
  line-height: 1.8;
  color: #a7afbe;
}

.project-points {
  margin: 12px 0 18px 20px;
  color: #a7afbe;
  line-height: 1.9;
}

.project-points strong {
  color: #e6e9ef;
}

.sub-points {
  margin: 6px 0 10px 22px;
  color: #8b93a7;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tech-stack span {
  background: rgba(95, 217, 122, 0.1);
  color: #5fd97a;
  border: 1px solid rgba(95, 217, 122, 0.25);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
}

/* ================= CONTACT ================= */

.contact-card {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.contact-card p {
  margin: 14px 0;
  font-size: 1.05rem;
  color: #c3c9d6;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #55606f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

/* ================= SCROLL ANIMATION ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .timeline {
    padding-left: 16px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    width: 220px;
    flex-direction: column;
    background: #10141d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    display: none;
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: #f2b134;
  }

  .hero-image img {
    max-width: 250px;
    height: 300px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
}