/* Satish Chilkaka — portfolio */
:root {
  --bg-deep: #06080f;
  --bg: #0c0f18;
  --bg-elevated: #12172a;
  --bg-card: #151b2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --text-muted: #8b92a8;
  --accent: #6ee7d8;
  --accent-dim: rgba(110, 231, 216, 0.15);
  --accent-hot: #f472b6;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #9cf5ea;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(6, 8, 15, 0.92), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.nav.is-open + .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open + .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    background: var(--bg);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateX(0);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vmin;
  height: 70vmin;
  background: radial-gradient(circle, rgba(110, 231, 216, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  margin: 0 0 1.25rem;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f0f4ff 0%, var(--accent) 55%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, #4fd4c3, var(--accent));
  color: #041016;
  box-shadow: 0 8px 32px rgba(110, 231, 216, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(110, 231, 216, 0.35);
  color: #041016;
}

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

.btn--ghost:hover {
  border-color: rgba(110, 231, 216, 0.4);
  background: var(--accent-dim);
  color: var(--text);
}

.btn--light {
  background: #0a0e17;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn--light:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 23, 42, 0.5) 50%, transparent 100%);
}

.section--accent {
  padding: 5.5rem 1.5rem;
  background: linear-gradient(135deg, #0d1528 0%, #1a1030 50%, #0d1828 100%);
  border-block: 1px solid var(--border);
}

.section--contact {
  padding-bottom: 4rem;
}

.section__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 720px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

.about__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__text strong {
  color: var(--text);
  font-weight: 600;
}

.about__aside {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stat-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stat-list__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline__item {
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease);
}

.timeline__item:hover {
  border-color: rgba(110, 231, 216, 0.25);
}

.timeline__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.timeline__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
}

.timeline__role {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
}

.timeline__company {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

.timeline__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.timeline__list li {
  margin-bottom: 0.5rem;
}

.timeline__list li:last-child {
  margin-bottom: 0;
}

.timeline__more {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline__more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.timeline__more summary::-webkit-details-marker {
  display: none;
}

.timeline__more summary::after {
  content: " +";
  color: var(--accent);
}

.timeline__more[open] summary::after {
  content: " −";
}

.timeline__more-body {
  padding-top: 1rem;
}

.timeline__more-body p {
  margin: 0 0 0.75rem;
}

.timeline__more-body p:last-child {
  margin-bottom: 0;
}

/* Skills */
.skills {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.tags span:hover {
  border-color: rgba(110, 231, 216, 0.35);
  color: var(--text);
}

/* Freelance */
.freelance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .freelance {
    grid-template-columns: 1fr;
  }

  .freelance__visual {
    display: none;
  }
}

.freelance__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.5rem;
}

.freelance__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.freelance__text {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}

.freelance__orb {
  width: min(200px, 40vw);
  height: min(200px, 40vw);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-hot), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--accent), transparent 50%);
  opacity: 0.45;
  filter: blur(0px);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.03);
  }
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

.edu-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.edu-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.edu-list,
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-list li {
  margin-bottom: 1.25rem;
}

.edu-list li:last-child {
  margin-bottom: 0;
}

.edu-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.edu-list span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pub-list li {
  margin-bottom: 0.85rem;
}

.pub-link {
  font-weight: 500;
  line-height: 1.45;
}

.edu-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  font-style: italic;
}

/* Contact */
.contact__lead {
  color: var(--text-muted);
  margin: -1rem 0 2rem;
  font-size: 1.05rem;
}

.contact__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.25s, transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: rgba(110, 231, 216, 0.35);
  transform: translateY(-3px);
  color: var(--text);
}

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-card__value {
  font-size: 0.95rem;
  word-break: break-word;
}

.footer-note {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal--delay-1 {
  transition-delay: 0.08s;
}
.reveal--delay-2 {
  transition-delay: 0.16s;
}
.reveal--delay-3 {
  transition-delay: 0.24s;
}
.reveal--delay-4 {
  transition-delay: 0.32s;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.project-card:hover {
  border-color: rgba(110, 231, 216, 0.25);
  transform: translateY(-3px);
}

.project-card--wip {
  border-style: dashed;
}

.project-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.project-card__badge {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent-hot);
  vertical-align: middle;
}

.project-card__type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card__text {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  flex-grow: 1;
}

.project-card__text strong {
  color: var(--text);
  font-weight: 600;
}

.tags--tight {
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tags--tight span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
}

.project-card__links {
  display: flex;
  gap: 1.25rem;
  margin-top: auto;
}

.project-card__links a {
  font-size: 0.9rem;
  font-weight: 600;
}
