/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* Colors */
  --clr-primary: #3b82f6;
  --clr-primary-dark: #2563eb;
  --clr-primary-light: #dbeafe;
  --clr-primary-ultra-light: #eff6ff;
  --clr-accent: #6366f1;
  --clr-accent-light: #e0e7ff;

  --clr-bg: #ffffff;
  --clr-bg-alt: #f8fafc;
  --clr-bg-section: #f1f5f9;
  --clr-surface: #ffffff;

  --clr-text: #1e293b;
  --clr-text-secondary: #64748b;
  --clr-text-muted: #94a3b8;
  --clr-border: #e2e8f0;

  /* Typography */
  --ff-heading: 'Plus Jakarta Sans', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --fs-hero: clamp(2.2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.2rem);
  --fs-h3: 1.15rem;
  --fs-body: 0.975rem;
  --fs-small: 0.85rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-py: clamp(60px, 8vw, 100px);
  --container-max: 1100px;
  --container-px: 24px;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .07);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .1);
  --shadow-card: 0 2px 12px rgba(59, 130, 246, .08);

  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --clr-bg: #0f172a;
  --clr-bg-alt: #1e293b;
  --clr-bg-section: #162032;
  --clr-surface: #1e293b;

  --clr-text: #f1f5f9;
  --clr-text-secondary: #94a3b8;
  --clr-text-muted: #64748b;
  --clr-border: #334155;

  --clr-primary-light: #1e3a5f;
  --clr-primary-ultra-light: #0f2644;
  --clr-accent-light: #1e1b4b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .4);
  --shadow-card: 0 2px 12px rgba(59, 130, 246, .12);
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}



img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--clr-primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--fs-h2);
  color: var(--clr-text);
  margin-bottom: 16px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--container-px);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .06);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, .82);
}

.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar__logo span {
  color: var(--clr-primary);
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--clr-text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--clr-primary);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--clr-text-secondary);
  transition: background var(--transition), color var(--transition), transform .2s;
}

.theme-toggle:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  transform: rotate(20deg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: 120px;
  padding-bottom: var(--section-py);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, .06) 0%, transparent 70%);
  border-radius: 50%;
}

/* Floating decorative shapes */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  z-index: 0;
}

.hero__shape--1 {
  width: 80px;
  height: 80px;
  border: 3px solid var(--clr-primary);
  top: 140px;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero__shape--2 {
  width: 40px;
  height: 40px;
  background: var(--clr-accent);
  top: 60%;
  left: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 20px;
  height: 20px;
  background: var(--clr-primary);
  top: 30%;
  left: 40%;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-primary-ultra-light);
  border: 1px solid var(--clr-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 20px;
  width: fit-content;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.hero__title {
  font-size: var(--fs-hero);
  color: var(--clr-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--clr-text-secondary);
  max-width: 500px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--clr-bg-alt);
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}

.hero__social-link:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
}

.btn--primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 6px 24px rgba(59, 130, 246, .4);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}

.btn--outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-ultra-light);
  transform: translateY(-2px);
}

.hero__photo {
  position: relative;
}

.hero__photo-wrapper {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 4px solid var(--clr-primary-light);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero__photo-wrapper img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.hero__photo-decor {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px dashed var(--clr-primary-light);
  border-radius: var(--radius-xl);
  top: -10px;
  left: -10px;
  z-index: -1;
  opacity: .5;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  margin-top: 40px;
}

.about__profile-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--clr-text);
}

.about__profile-text {
  color: var(--clr-text-secondary);
  font-size: var(--fs-body);
  line-height: 1.85;
  margin-bottom: 28px;
}

.about__stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--clr-primary-ultra-light);
  border: 1px solid var(--clr-primary-light);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  min-width: 90px;
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card__number {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.stat-card__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  margin-top: 2px;
}

.about__skills-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: 10px;
}

.about__skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-ultra-light);
}

/* Experience timeline */
.about__experience-title {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--clr-text);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-accent));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 3px solid var(--clr-primary);
  z-index: 1;
}

.timeline__date {
  font-size: var(--fs-xs);
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__role {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.timeline__company {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: var(--fs-small);
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* =============================================
   SKILLS / TECH
   ============================================= */
.skills {
  padding: var(--section-py) 0;
  background: var(--clr-bg-alt);
  text-align: center;
}

.skills .section-title {
  margin-bottom: 48px;
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--clr-text);
  transition: all var(--transition);
  cursor: default;
}

.tech-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.tech-badge__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-badge__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}

.project-card__img {
  width: 100%;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-card__img img {
  width: 75%;
  height: 85%;
  object-fit: contain;
  object-position: center;
  transform: translateY(15px);
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.project-card__img--project2 {
  width: 100%;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-card__img--project2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translateY(15px);
}
.project-card:hover .project-card__img img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 22px;
}

.project-card__title {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-text);
}

.project-card__desc {
  font-size: var(--fs-small);
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-card__tag {
  background: var(--clr-primary-ultra-light);
  color: var(--clr-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

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

.project-card__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.project-card__link:hover {
  gap: 8px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: var(--section-py) 0;
  background: var(--clr-bg-section);
  text-align: center;
}

.contact__form-wrapper {
  max-width: 600px;
  margin: 36px auto 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

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

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

.form-group--full {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

.form-group label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-text);
}

.form-group input,
.form-group textarea {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  padding: 12px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 28px 0;
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--clr-bg-alt);
  color: var(--clr-text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   SCROLL ANIMATIONS (Fade In)
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__socials {
    justify-content: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__photo {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero__photo-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero__photo-decor {
    width: 220px;
    height: 220px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .navbar__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 20px var(--container-px);
    gap: 16px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }

  .navbar__links.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__photo-wrapper {
    width: 170px;
    height: 170px;
  }

  .hero__photo-decor {
    width: 190px;
    height: 190px;
  }

  .hero__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .hero__social-link img,
  .hero__social-link svg {
    width: 18px;
    height: 18px;
  }

  .hero__social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
  }


  .project-card__img {
    margin-top: 10px;
  }



}