/* =========================
   RESET / GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.section-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.narrow {
  max-width: 760px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 3vw, 40px);
  z-index: 1000;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.logo {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: bold;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.55;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(42px, 10vw, 90px);
  font-weight: 700;
  letter-spacing: clamp(4px, 1vw, 10px);
}

.hero-content p {
  margin-top: 18px;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.65);
}

.scroll-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
}

.scroll-circle:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

/* =========================
   GENERAL SECTIONS
========================= */
.content-section {
  min-height: 90vh;
  padding-block: clamp(80px, 10vh, 120px);
  display: flex;
  align-items: center;
}

.content-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.content-section p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

/* =========================
   ABOUT
========================= */
/* =========================
   ABOUT
========================= */
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.about-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.about-right {
  max-width: 820px;
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 22px;
  align-items: start;
  opacity: 0.78;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover {
  opacity: 1;
  transform: translateX(4px);
}

.timeline-marker {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
}

.timeline-item:not(:last-child) .timeline-marker::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 32px);
  background: rgba(255, 255, 255, 0.14);
}

.timeline-number {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.project-card h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.project-card p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: unset;
}

.demo-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.demo-btn:hover {
  background-color: #fff;
  color: #000;
}
.project-card:first-child {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.project-card:nth-child(2) {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.project-card:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

/* =========================
   HOME CONTACT CTA
========================= */
.contact-section {
  text-align: left;
}

.contact-intro {
  margin-bottom: 28px;
}

.contact-page-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 18px 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  border-radius: 999px;
}

.contact-page-btn:hover {
  background-color: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================
   CONTACT PAGE
========================= */
.contact-body {
  height: 100vh;
  overflow: hidden;
}

.contact-page {
  height: 100vh;
  padding: 90px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-shell {
  width: min(100%, 1400px);
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(40px, 5vw, 80px);
  border: none;
  background: transparent;
}

.contact-left,
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.contact-left h1 {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 36px;
}

.contact-links-minimal {
  display: flex;
  flex-direction: column;
  max-width: 360px;
}

.contact-links-minimal a {
  text-decoration: none;
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease, padding-left 0.3s ease;
}

.contact-links-minimal a:hover {
  opacity: 0.6;
  padding-left: 6px;
}

/* =========================
   FORM
========================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-bottom: 24px;
}

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

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

.form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 16px 18px;
  font-size: 15px;
  outline: none;
  border-radius: 18px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-group textarea {
  resize: none;
  min-height: 150px;
}

.submit-btn {
  width: fit-content;
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================
   FADE
========================= */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .contact-body {
    height: auto;
    overflow: auto;
  }

  .contact-page {
    height: auto;
    min-height: 100vh;
    padding: 120px 20px 32px;
    overflow: visible;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
    padding: 0;
  }

  .contact-left,
  .contact-right {
    justify-content: flex-start;
  }

  .form-row,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .navbar {
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero {
    padding-top: 80px;
  }

  .content-section {
    min-height: auto;
  }

  .scroll-circle {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .project-card h3 {
    font-size: 21px;
  }

  .project-card p,
  .contact-links-minimal a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 14px 16px;
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .timeline-item {
    grid-template-columns: 20px 1fr;
    gap: 16px;
  }

  .timeline-content h3 {
    font-size: 22px;
  }
}
@media (max-width: 980px) {
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.profile-left {
  position: sticky;
  top: 120px;
}

  .profile-left h1 {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-tab {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   PROFILE PAGE
========================= */
.profile-page {
  min-height: 100vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.profile-left {
  position: sticky;
  top: 120px;
}

.profile-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.profile-left h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 600;
  max-width: 280px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.profile-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-tab:hover,
.profile-tab.active {
  background: white;
  color: black;
  border-color: white;
}

.profile-panels {
  position: relative;
  min-height: 320px;
}

.profile-panel {
  display: none;
  animation: fadePanel 0.35s ease;
}

.profile-panel.active {
  display: block;
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-panel p {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.profile-item {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.profile-item span {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.profile-item h3,
.skill-group h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.skill-group {
  margin-bottom: 28px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pills span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.02);
}
/* =========================
   LIVE STARFIELD
========================= */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background: white;
  opacity: 0.2;
  transform: rotate(45deg);
  animation-name: twinkleStar;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

body > *:not(#starfield) {
  position: relative;
  z-index: 1;
}

@keyframes twinkleStar {
  0%, 100% {
    opacity: var(--min-opacity);
    transform: scale(1);
  }
  50% {
    opacity: var(--max-opacity);
    transform: scale(1.15);
  }
}
.page-intro {
  margin-bottom: 40px;
}

.page-intro h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 18px;
}

.page-intro p {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}
.projects-grid .project-card:first-child {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.demo-section {
  margin-bottom: 56px;
}

.demo-section h2,
.feature-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.demo-section p,
.feature-section p {
  max-width: 760px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}

.feature-section {
  margin-top: 60px;
}

.work-example {
  margin-top: 20px;
}

.work-example h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.work-example p {
  margin-bottom: 18px;
}

.project-image {
  width: 100%;
  max-width: 900px;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.project-status {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
}

/* =========================
   SHOWCASE SECTION
========================= */
.showcase-section {
  margin: 50px 0 70px;
}

.showcase-copy {
  max-width: 760px;
  margin-bottom: 28px;
}

.showcase-copy h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.showcase-copy p {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

.showcase-frame {
  width: 100%;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.showcase-image {
  width: 100%;
  display: block;
  border-radius: 18px;
}
.mock-browser-bar {
  display: flex;
  gap: 8px;
  padding: 0 0 14px;
}

.mock-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-browser-bar span:nth-child(1) {
  background: #ff5f57;
}

.mock-browser-bar span:nth-child(2) {
  background: #febc2e;
}

.mock-browser-bar span:nth-child(3) {
  background: #28c840;
}

/* =========================
   PROFILE MOBILE FIXES
========================= */
@media (max-width: 900px) {
  .profile-page {
    padding: 110px 0 50px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-left {
    position: static;
  }

  .profile-left h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.2;
  }

  .profile-tabs {
    gap: 10px;
    margin-bottom: 24px;
  }

  .profile-tab {
    padding: 12px 16px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .profile-panels {
    min-height: auto;
  }

  .profile-item h3,
  .skill-group h3 {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .profile-page {
    padding: 100px 0 40px;
  }

  .profile-layout {
    gap: 22px;
  }

  .profile-kicker {
    margin-bottom: 12px;
  }

  .profile-left h1 {
    font-size: 28px;
  }

  .profile-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-tab {
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .profile-panel p {
    font-size: 16px;
    line-height: 1.8;
  }

  .profile-item {
    padding: 0 0 20px;
    margin-bottom: 20px;
  }

  .profile-item span {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .profile-item h3,
  .skill-group h3 {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .skill-pills {
    gap: 10px;
  }

  .skill-pills span {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 13px;
  }
}