@iaport url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
* {
  rgin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --white: #ffffff;
  --grey: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --font-main: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.highlight {
  color: var(--purple-light);
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
}

.logo-bracket {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--grey);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-light);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--purple);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--purple);
}

.nav-cta:hover {
  background: var(--purple-light);
  box-shadow: 0 0 20px var(--purple-glow);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: auto;
  padding: 120px 100px 80px 120px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 55%);
}

.hero-left {
  max-width: 100%;
  z-index: 10;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--grey);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero-greeting {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

h1 {
  font-family: var(--font-main);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-name {
  display: block;
}

.cursor {
  color: var(--purple-light);
  animation: blink 1s infinite;
}

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

.hero-role {
  font-size: 1.1rem;
  color: var(--grey);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 0 25px var(--purple-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
}

.scroll-explore {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: 0.85rem;
  margin-top: 16px;
}

.scroll-explore svg {
  width: 16px;
  height: 16px;
}

.hero-right {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  min-height: 500px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-card {
  position: absolute;
  bottom: 40px;
  right: 20px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 18px 22px;
  z-index: 10;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.code-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}

.code-dots span:nth-child(2) {
  background: #febc2e;
}

.code-dots span:nth-child(3) {
  background: #28c840;
}

.code-block {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.code-key {
  color: #c084fc;
}

.code-var {
  color: #60a5fa;
}

.code-prop {
  color: #a855f7;
}

.code-str {
  color: #34d399;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--grey);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 100px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 0 20px var(--purple-glow);
}

.stat-card svg {
  width: 28px;
  height: 28px;
  color: var(--purple-light);
}

.stat-card h3 {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--grey);
}

.skills {
  padding: 80px 100px;
  background: var(--bg-2);
}

.skills-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 48px;
  margin-top: 8px;
}

.skills-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.skills-cat {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.skill-bar-item {
  margin-bottom: 24px;
}

.skill-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-percent {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-light);
}

.skill-learning {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-learning::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skill-bar-fill.gold {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.skill-bar-fill.learning {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.projects {
  padding: 100px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.projects-header h2 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-top: 8px;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.4s ease;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: row;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  gap: 16px;
  align-items: center;
  padding: 16px;
  min-width: calc(33.33% - 1px);
  flex-shrink: 0;
}

.project-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.project-img-small {
  position: relative;
  width: 110px;
  height: 110px;
  min-width: 110px;
  max-width: 110px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.project-img-small .project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(168, 85, 247, 0.2));
}

.featured-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.project-body {
  flex: 1;
  min-width: 0;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-title-row h3 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
}

.arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--white);
}

.project-card:hover .arrow-btn {
  background: var(--purple);
  border-color: var(--purple);
}

.project-body p {
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.7rem;
  color: var(--grey);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--purple-light);
  width: 24px;
  border-radius: 4px;
}

.cta-banner {
  margin: 0 100px 80px 100px;
  padding: 48px 60px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-icon {
  font-size: 2.5rem;
  color: var(--purple-light);
}

.cta-banner h2 {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--grey);
  font-size: 0.95rem;
}

footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 100px 0 100px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0;
  max-width: 260px;
}

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

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grey);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
}

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: var(--grey);
  font-size: 0.8rem;
}

.mobile-nav {
  display: none;
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
    flex-direction: column;
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    gap: 24px;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    padding: 16px 10px;
    border-radius: 30px;
    border: 1px solid var(--border);
  }
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--grey);
    transition: color 0.3s ease;
  }
  .mob-nav-item svg {
    width: 20px;
    height: 20px;
  }
  .mob-nav-item p {
    display: none;
  }
  .mob-nav-item:hover,
  .mob-nav-item.active {
    color: var(--purple-light);
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    height: 65px;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    justify-content: space-around;
    align-items: center;
    transform: none;
  }
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--grey);
    transition: color 0.3s ease;
  }
  .mob-nav-item svg {
    width: 20px;
    height: 20px;
  }
  .mob-nav-item p {
    font-size: 0.65rem;
  }
  .mob-nav-item.active {
    color: var(--purple-light);
  }
  nav {
    display: none;
  }
  body {
    padding-bottom: 65px;
  }
  .hero {
    display: flex;
    flex-direction: row;
    padding: 80px 0 20px 20px;
    min-height: auto;
    gap: 0;
    background: #050508;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
  }
  .hero-left {
    width: 58%;
    max-width: 58%;
    text-align: left;
    z-index: 10;
    position: relative;
    padding-top: 20px;
  }
  .hero-badge {
    font-size: 0.65rem;
    padding: 5px 10px;
    margin-bottom: 12px;
    white-space: nowrap;
  }
  .hero-greeting {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }
  .hero-role {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .hero-btns {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: nowrap;
  }
  .btn-primary {
    padding: 10px 14px;
    font-size: 0.75rem;
    justify-content: center;
    flex: 1;
    white-space: nowrap;
  }
  .btn-ghost {
    padding: 10px 14px;
    font-size: 0.75rem;
    text-align: center;
    flex: 1;
    white-space: nowrap;
  }
  .scroll-explore {
    display: none;
  }
  .hero-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: none;
    z-index: 1;
    min-height: auto;
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0;
    filter: none;
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    aspect-ratio: unset;
    max-width: unset;
  }
  .hero-card {
    display: none;
  }
  #heroCanvas {
    display: block;
    z-index: 3;
    opacity: 0.8;
  }
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 16px;
    gap: 8px;
  }
  .stat-card {
    padding: 16px 8px;
  }
  .stat-card h3 {
    font-size: 1.3rem;
  }
  .stat-card p {
    font-size: 0.65rem;
  }
  .stat-card svg {
    width: 20px;
    height: 20px;
  }
  .skills {
    padding: 40px 24px;
  }
  .skills-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .projects {
    padding: 60px 0;
  }
  .projects-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: 24px;
  }
  .projects-header h2 {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  .projects-header .btn-outline {
    font-size: 0.75rem;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .carousel-container {
    overflow: hidden;
    width: 100%;
  }
  .carousel-wrapper {
    overflow: hidden;
    width: 100%;
  }
  .carousel-track {
    display: flex;
    gap: 0;
    width: 100%;
  }
  .project-card {
    min-width: 100vw;
    max-width: 100vw;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 16px 24px;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0 24px 16px;
  }
  .cta-banner {
    margin: 0 24px 60px 24px;
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
  }
  .cta-left {
    flex-direction: column;
    text-align: center;
  }
  footer {
    padding: 40px 24px 0 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
