:root {
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --white: #ffffff;
  --bg: #f8fafc;
  --text: #1e293b;
  --border: #e2e8f0;
  --muted: #64748b;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(219, 234, 254, 0.9), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(191, 219, 254, 0.85), transparent 40%),
    linear-gradient(180deg, rgba(219, 234, 254, 0.35), rgba(248, 250, 252, 1));
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0));
  filter: blur(0.5px);
  opacity: 0.75;
  transition: transform 0.3s ease-out;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 220px;
  height: 220px;
  top: 20%;
  right: -60px;
}

.orb-3 {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: 30%;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.3s ease;
}

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

.nav-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.section {
  padding: 35px 0;
}


.hero {
  padding-top: 110px;
  padding-bottom: 50px;
  position: relative;
}

.hero::before {
  content: "";
  inset: 24px 4%;
  border-radius: 40px;
  background: radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.6));
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: 20px;
  row-gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-about-card {
  padding: 12px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  max-width: 400px;
  justify-self: end;
}

.hero-about-photo {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  padding: 0;
  justify-self: center;
}

.hero-about-photo img {
  width: 100%;
  height: 355px;
  object-fit: cover;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
  display: block;
}

.hero-about-text h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hero-about-text p {
  color: var(--muted);
  text-align: justify;
}

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

.hero-text h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
  margin-bottom: -33px;
}

.hero-text {
  display: grid;
  gap: 16px;
}

.hero-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
}

.hero-text p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 520px;
}

.hero-tech {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 500;
}

.hero-tech span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 35px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 50px;
  
}

.highlight {
  padding: 20px;
  border-radius: 16px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.highlight-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.highlight-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
}

.icon {
  width: 18px;
  height: 18px;
}

.icon-sm {
  width: px;
  height: 16px;
}

.highlight strong {
  font-size: 1.1rem;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.mockup {
  padding: 22px;
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: grid;
  gap: 18px;
}

.mockup-header {
  display: flex;
  gap: 8px;
}

.mockup-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-body {
  display: grid;
  gap: 14px;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-title {
  font-weight: 600;
  color: var(--text);
}

.mockup-actions {
  display: flex;
  gap: 6px;
}

.mockup-actions span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
}

.mockup-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.mockup-sidebar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.mockup-content {
  display: grid;
  gap: 12px;
}

.mockup-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  height: 90px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(219, 234, 254, 0.6);
  border: 1px solid var(--border);
}

.chart-bar {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.2));
}

.chart-bar:nth-child(1) {
  height: 45%;
}

.chart-bar:nth-child(2) {
  height: 70%;
}

.chart-bar:nth-child(3) {
  height: 60%;
}

.chart-bar:nth-child(4) {
  height: 85%;
}

.mockup-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.mockup-metric strong {
  font-size: 1.4rem;
  color: var(--text);
}

.mockup-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.05));
}

.mockup-line.short {
  width: 60%;
}

.mockup-line.medium {
  width: 80%;
}

.mockup-card {
  padding: 16px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
}

.mockup-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.mockup-tags span {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mockup-caption {
  color: var(--muted);
  font-size: 0.9rem;
}

.glass {
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.about-text {
  display: grid;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);

  align-items: center;
}

.about-text h3 {
  font-size: 1.6rem;
}

.about-text p {
  color: var(--muted);
}

.about-photo {
  align-self: stretch;
  display: grid;
  place-items: center;
  justify-items: end;
}

.about-photo img {
  width: 100%;
  max-width: 320px;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
}


.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

.section-header h3 {
  font-size: 2rem;
}

.section-header p {
  color: var(--muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.tech-card {
  padding: 18px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  gap: 0;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-image {
  height: 170px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.3));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-content {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.project-content p {
  color: var(--muted);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.project-card .btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-card p {
  color: var(--muted);
  margin-top: 8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-content strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.btn {
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: var(--white);
  border-color: #e5e7eb;
  color: var(--primary);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.4);
}

.project-card:hover,
.tech-card:hover,
.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.project-card:hover .project-image::after {
  transform: translateX(120%);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.22));
}

.project-card:hover .btn {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    row-gap: 28px;
  }

  .hero-about-card {
    max-width: 100%;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-photo img {
    max-width: 100%;
    height: 360px;
  }

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

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 4%;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.3s ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 130px;
  }

  .hero-text {
    text-align: center;
    justify-items: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-tech {
    gap: 10px;
    justify-content: center;
  }

  .section-header {
    text-align: center;
    justify-items: center;
  }

  .hero-about-text,
  .about-text {
    text-align: center;
  }

  .hero-about-photo img {
    height: 220px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .highlight-title {
    justify-content: center;
    text-align: center;
    flex-direction: row;
    align-items: center;
  }

  .highlight strong,
  .highlight span {
    text-align: left;
  
  }

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

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mockup-layout {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
