:root {
  --background: #080a12;
  --surface: #111522;
  --surface-light: #171c2c;
  --text: #f4f5fa;
  --muted: #a0a6b8;
  --accent: #a78bfa;
  --accent-two: #67e8f9;
  --border: rgba(255, 255, 255, 0.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.glow-one {
  background: #8055ff;
  top: 5%;
  left: -180px;
}

.glow-two {
  background: #06b6d4;
  right: -180px;
  top: 55%;
}

.navbar {
  width: min(1120px, 90%);
  margin: auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -2px;
}

.logo span,
h1 span,
h2 span,
.project-card h3 span {
  color: var(--accent);
}

.navbar nav {
  display: flex;
  gap: 34px;
}

.navbar nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: white;
}

.nav-button {
  border: 1px solid var(--border);
  padding: 9px 17px;
  border-radius: 30px;
  font-size: 13px;
  transition: 0.3s;
}

.nav-button:hover {
  background: var(--accent);
  color: #080a12;
}

.section {
  width: min(1050px, 88%);
  margin: auto;
}

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  padding: 100px 0 130px;
}

.hero-content {
  max-width: 590px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 32px;
}

.status-dot {
  height: 8px;
  width: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
}

.eyebrow {
  color: var(--accent-two);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 15px;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(64px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -6px;
  margin-bottom: 25px;
}

.typing-line {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 500;
  margin-bottom: 20px;
}

.typing-prefix {
  color: var(--muted);
}

#typing-text {
  color: var(--accent);
}

.cursor {
  color: var(--accent-two);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  color: var(--muted);
  max-width: 480px;
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.primary-button {
  background: var(--accent);
  color: #090a12;
}

.primary-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(167, 139, 250, 0.25);
}

.primary-button span {
  margin-left: 12px;
}

.secondary-button {
  border: 1px solid var(--border);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image-wrap {
  width: 300px;
  height: 360px;
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.profile-image {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 150px 150px 25px 25px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}

.image-ring {
  position: absolute;
  width: 290px;
  height: 350px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 150px 150px 25px 25px;
  transform: rotate(7deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 11px 16px;
  border-radius: 9px;
  background: #171c2c;
  border: 1px solid var(--border);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.floating-card span {
  color: var(--accent-two);
  margin-right: 6px;
}

.card-top {
  top: 45px;
  left: -35px;
}

.card-bottom {
  bottom: 40px;
  right: -40px;
}

.scroll-indicator {
  position: absolute;
  bottom: 35px;
  left: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-indicator span {
  width: 35px;
  height: 1px;
  background: var(--accent);
}

.about,
.project-section,
.connect {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.about-content {
  max-width: 700px;
  margin: 35px 0 0 auto;
}

.about-content p,
.connect-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 18px;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.interest-tags span {
  padding: 9px 15px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  transition: 0.3s;
}

.interest-tags span:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-card {
  margin-top: 40px;
  max-width: 700px;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #141a2b, #0d101a);
  transition: 0.4s;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.project-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.project-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.project-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  margin-bottom: 15px;
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.project-note {
  margin-top: 15px;
  font-size: 12px !important;
  color: var(--accent-two) !important;
}

.project-link {
  display: inline-block;
  margin-top: 25px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.project-link span {
  margin-left: 8px;
}

.connect-description {
  max-width: 500px;
  margin-top: 25px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 35px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: 0.3s;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: var(--surface-light);
}

.social-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
}

.social-card strong,
.social-card small {
  display: block;
}

.social-card strong {
  font-size: 13px;
}

.social-card small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.social-arrow {
  margin-left: auto;
  color: var(--muted);
  transition: 0.3s;
}

.social-card:hover .social-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
  padding: 15px 24px;
  background: var(--accent);
  color: #080a12;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}

.contact-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.25);
}

.email-address {
  color: var(--muted);
  font-size: 12px;
  margin-top: 15px;
}

footer {
  width: min(1050px, 88%);
  margin: auto;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

footer p {
  color: var(--muted);
  font-size: 11px;
}

.footer-tagline {
  color: var(--accent);
}

/* Reveal animation: content stays visible if JavaScript is unavailable */
.reveal {
  opacity: 1;
  transform: none;
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 70px;
    gap: 45px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image-wrap {
    transform: scale(0.9);
  }

  .hero-actions {
    justify-content: center;
  }

  .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-content {
    margin-left: 0;
  }

  .section-heading {
    text-align: center;
  }

  .connect-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .navbar {
    width: 90%;
  }

  .navbar nav {
    gap: 13px;
  }

  .navbar nav a {
    font-size: 11px;
  }

  .nav-button {
    padding: 7px 10px;
    font-size: 11px;
  }

  h1 {
    letter-spacing: -4px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 110px;
  }

  .hero-image-wrap {
    transform: scale(0.78);
    margin: -25px 0;
  }

  .availability {
    font-size: 10px;
  }

  .hero-description {
    font-size: 13px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .about,
  .project-section,
  .connect {
    padding: 75px 0;
  }

  .project-card {
    padding: 25px;
  }

  footer {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive sizing without changing the desktop composition. */
body {
  font-size: 16px;
}

img, video, iframe, embed, object {
  max-width: 100%;
}

img, video {
  height: auto;
}

/* Preserve the portrait crop while allowing its frame to shrink. */
.profile-image {
  height: 320px;
}

a, button {
  min-width: 44px;
  min-height: 44px;
}

.logo, .navbar nav a, .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--accent-two);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    cursor: pointer;
  }

  .navbar .nav-button {
    display: none;
  }

  .navbar nav {
    flex: 0 0 100%;
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle:not([hidden])[aria-expanded="false"] + nav {
    display: none;
  }

  .navbar nav a {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .section, footer {
    overflow-wrap: anywhere;
  }

  .hero-content, .hero-image-wrap, .social-card > span {
    min-width: 0;
    max-width: 100%;
  }

  .hero-image-wrap {
    width: min(300px, 100%);
    transform: none;
    margin: 0;
  }

  .image-ring {
    width: 88%;
  }

  .card-top {
    left: 0;
  }

  .card-bottom {
    right: 0;
  }

  .availability, .eyebrow, .hero-description, .about-content p,
  .connect-description, .philosophy-description, .interest-card p,
  .floating-card, .navbar nav a, .primary-button, .secondary-button,
  .social-card strong, .social-card small, .contact-button,
  .email-address, footer p, .scroll-indicator {
    font-size: 16px;
  }

  .availability {
    max-width: 100%;
    text-align: left;
  }

  .status-dot, .social-icon, .social-arrow {
    flex-shrink: 0;
  }

  .eyebrow, .scroll-indicator {
    letter-spacing: 1px;
  }

  .scroll-indicator {
    width: 100%;
    justify-content: center;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-card {
    gap: 10px;
    padding: 16px;
  }
}

@media (max-width: 550px) {
  .social-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
