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

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

:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --green: #059669;
  --green-light: #d1fae5;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --card: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.8);
  --text: #0f172a;
  --text-dim: #475569;
  --shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  --shadow-hover: 0 12px 40px rgba(31, 38, 135, 0.1);
  --radius: 16px
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text)
}

code,
.mono {
  font-family: 'JetBrains Mono', monospace
}

a {
  text-decoration: none;
  color: var(--green);
  transition: all .3s
}

a:hover {
  opacity: .85
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

section {
  padding: 100px 0;
  position: relative
}

section:nth-child(even) {
  background: var(--bg-alt)
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 60px;
  text-align: center
}

.section-title span {
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif
}

.btn-primary {
  background: var(--green);
  color: #fff
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(5, 150, 105, .3);
  transform: translateY(-2px)
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green)
}

.btn-outline:hover {
  background: var(--green-light);
  transform: translateY(-2px)
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s cubic-bezier(.16, 1, .3, 1)
}

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

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all .3s
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, .05)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text)
}

.nav-logo .dot {
  color: var(--green)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none
}

.nav-links a {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  transition: color .3s
}

.nav-links a:hover {
  color: var(--text)
}

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  transition: all .3s
}

.nav-cta:hover {
  background: var(--green-light)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .3s;
  border-radius: 2px
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px
}

.mobile-menu.open {
  display: flex
}

.mobile-menu a {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%)
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6
}

.hero-content {
  position: relative;
  z-index: 2
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 8px
}

.hero-name {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-typing {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--purple);
  min-height: 2em;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace
}

.hero-typing .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--green);
  margin-left: 4px;
  animation: blink 1s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-tagline {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto
}

.hero-badges .pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite
}

.hero-badges .pill:nth-child(2n) {
  animation-delay: -2s
}

.hero-badges .pill:nth-child(3n) {
  animation-delay: -4s
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* ABOUT */
#about {
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), transparent 10%, transparent 90%, var(--bg));
  z-index: 0
}

/* smooth blend edges */
#about .container {
  position: relative;
  z-index: 1
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1.05rem
}

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

.stat-card {
  padding: 24px;
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  border: none !important;
  border-radius: 20px;
  z-index: 1;
}

.stat-card::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(from 0deg, transparent 60%, #1a73e8, #e91e63, #fbbc04, #34a853, transparent 100%);
  animation: borderRotate 4s linear infinite;
  z-index: -2;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  z-index: -1;
}

@keyframes borderRotate {
  100% {
    transform: rotate(360deg);
  }
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-value {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif
}

.stat-card .stat-label {
  position: relative;
  z-index: 2;
  font-size: .85rem;
  color: var(--text-dim)
}

/* PROJECTS */
.featured-project {
  padding: 32px;
  margin-bottom: 48px;
  transition: all .3s;
  border: 1px solid rgba(5, 150, 105, .2)
}

@keyframes sway {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(15deg) scale(1.1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.05); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.2); }
}

.impact-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.03));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
  transition: all 0.3s;
  animation: pulseGlow 4s infinite ease-in-out;
}

.impact-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.5);
}

.impact-icon {
  font-size: 2.2rem;
  line-height: 1;
  display: inline-block;
  animation: sway 3s infinite ease-in-out;
  transform-origin: bottom center;
}

.impact-text strong {
  color: #059669;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.impact-text p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: var(--text-dim) !important;
  line-height: 1.4 !important;
}

.impact-text p strong {
  display: inline;
  color: #10b981;
  text-transform: none;
  letter-spacing: normal;
}

.featured-project:hover {
  box-shadow: 0 8px 40px rgba(5, 150, 105, .1);
  transform: translateY(-4px)
}

.project-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 16px
}

.tag-active {
  background: var(--green-light);
  color: var(--green)
}

.tag-learning {
  background: var(--purple-light);
  color: var(--purple)
}

.tag-this {
  background: #f1f5f9;
  color: var(--text-dim)
}

.featured-project h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px
}

.featured-project>p {
  color: var(--text-dim);
  margin-bottom: 20px;
  max-width: 700px
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px
}

.tech-pills .pill {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .75rem
}

.project-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.project-stats span {
  color: var(--text-dim);
  font-size: .9rem
}

.project-stats strong {
  color: var(--text)
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px
}

.project-card {
  padding: 28px;
  transition: all .3s
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover)
}

.project-card h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 12px 0 8px
}

.project-card p {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 16px
}

/* TECH STACK */
#tech {
  background: #0a0a0a;
  color: #f8fafc
}

#tech .section-title {
  color: #f8fafc
}

#tech .section-title span {
  background: none;
  -webkit-text-fill-color: initial;
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3)
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px
}

.expertise-card {
  padding: 32px;
  transition: all .3s;
  background: rgba(20, 20, 20, 0.7);
  border-color: rgba(0, 255, 204, 0.2)
}

.expertise-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 255, 204, 0.15)
}

.expertise-icon {
  margin-bottom: 16px;
  display: inline-block
}

@keyframes icon-pulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.2))
  }

  50% {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 255, 204, 0.6))
  }
}

.expertise-icon svg {
  animation: icon-pulse 3s infinite ease-in-out
}

.expertise-card:nth-child(2) .expertise-icon svg {
  animation-delay: 0.2s
}

.expertise-card:nth-child(3) .expertise-icon svg {
  animation-delay: 0.4s
}

.expertise-card:nth-child(4) .expertise-icon svg {
  animation-delay: 0.6s
}

.expertise-card h3 {
  font-size: 1.2rem;
  color: #f8fafc;
  margin-bottom: 16px
}

.expertise-card ul {
  list-style: none
}

.expertise-card ul li {
  color: #94a3b8;
  font-size: .95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px
}

.expertise-card ul li::before {
  content: '→';
  color: #00ffcc;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px
}

.blog-card {
  padding: 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover)
}

.blog-card .blog-tag {
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px
}

.blog-card h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px
}

.blog-card .read-time {
  color: var(--text-dim);
  font-size: .8rem;
  margin-bottom: 16px
}

.blog-card .coming-soon {
  color: var(--purple);
  font-weight: 600;
  font-size: .85rem
}

.subscribe-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center
}

.subscribe-box p {
  color: var(--text-dim);
  margin-bottom: 16px
}

.subscribe-form {
  display: flex;
  gap: 8px
}

.subscribe-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  font-family: 'Inter', sans-serif
}

.subscribe-form input:focus {
  border-color: var(--green)
}

.subscribe-form button {
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .3s
}

.subscribe-form button:hover {
  box-shadow: 0 4px 16px rgba(5, 150, 105, .3)
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--purple))
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 20px 24px
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-light)
}

.timeline-item .year {
  color: var(--green);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace
}

.timeline-item h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 4px
}

.timeline-item p {
  color: var(--text-dim);
  font-size: .9rem
}

/* CONTACT */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  text-align: center
}

.contact-card>p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05rem
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: color .3s;
  word-break: break-word;
  text-align: left;
  max-width: 100%
}

.contact-links a svg {
  flex-shrink: 0
}

.contact-links a:hover {
  color: var(--green)
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  background: var(--bg-alt)
}

footer p {
  color: var(--text-dim);
  font-size: .85rem;
  margin-bottom: 8px
}

/* RESPONSIVE */
@media(max-width:768px) {
  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .hero-name {
    font-size: clamp(1.8rem, 8vw, 3rem)
  }

  .projects-grid {
    grid-template-columns: 1fr
  }

  .blog-grid {
    grid-template-columns: 1fr
  }

  .subscribe-form {
    flex-direction: column
  }

  .contact-card {
    padding: 32px 16px;
    width: 100%;
    box-sizing: border-box
  }

  .contact-links a {
    font-size: 0.9rem
  }

  .featured-project {
    padding: 20px
  }

  section {
    padding: 60px 0
  }
}