/* Vaishnavi Kadam – Aerospace + Sustainability Portfolio
   Theme from Refrence: DM Sans, dark/light tokens, clean layout */

:root {
  --font-sans: 'DM Sans', 'Outfit', system-ui, sans-serif;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --accent: #1f67f1;
  --accent-dim: rgba(31, 103, 241, 0.15);
  --bg: #121212;
  --bg-elevated: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #f0f0f0;
  --text-muted: rgba(240, 240, 240, 0.65);
  --text-dim: rgba(240, 240, 240, 0.45);
  --border: rgba(240, 240, 240, 0.12);
  --green: #22c55e;
  --teal: #14b8a6;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  :root {
    --accent: #1f67f1;
    --accent-dim: rgba(31, 103, 241, 0.12);
    --bg: #f0f0f0;
    --bg-elevated: #fff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text: #121212;
    --text-muted: rgba(18, 18, 18, 0.65);
    --text-dim: rgba(18, 18, 18, 0.45);
    --border: rgba(18, 18, 18, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nav */
.nav {
  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: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

@media (prefers-color-scheme: light) {
  .nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
  }
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

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

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

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

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

@media (max-width: 899px) {
  body.menu-open .nav-links {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 0.3s ease;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: scaleIn 20s ease-in-out infinite alternate;
}

@keyframes scaleIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.4) 0%,
    rgba(18, 18, 18, 0.7) 50%,
    rgba(18, 18, 18, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
  animation: fadeIn 0.8s ease 0.2s both;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.8s ease 0.3s both;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  animation: fadeIn 0.8s ease 0.4s both;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  animation: fadeIn 0.8s ease 0.5s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeIn 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 32px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

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

/* About */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.about-text .lead {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-text a {
  color: var(--accent);
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

.about-meta {
  margin-top: 1.5rem !important;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Skills */
.skills {
  background: var(--bg-elevated);
}

.skills-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.skills-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.skills-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

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

.skills-tags span {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.skills-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Experience */
.experience {
  background: var(--bg);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Education */
.education {
  background: var(--bg-elevated);
}

.edu-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .edu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.edu-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.edu-org {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.edu-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.edu-card p:last-child {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Projects */
.projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card--wide {
  grid-column: 1 / -1;
}

.project-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-bg {
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-bg {
  transform: scale(1.03);
}

.project-body {
  padding: 1.25rem 1.5rem;
}

.project-card--wide .project-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(18, 18, 18, 0.95));
  padding: 2rem 1.5rem;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.outreach {
  padding: 1.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.outreach h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.outreach p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Publications */
.publications {
  background: var(--bg-elevated);
}

.pub-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

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

.pub-list li:last-child {
  border-bottom: none;
}

.languages {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.6) 0%,
    rgba(18, 18, 18, 0.9) 100%
  );
  z-index: 1;
}

.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact .section-title {
  color: var(--text);
}

.contact-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.1rem;
}

.contact-location {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

.form-status--success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
}

.form-status--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-dim);
}
