/* Akansha Jain Portfolio — Warm, sophisticated palette */
:root {
  --bg: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --bg-card: #222;
  --text: #e8e6e3;
  --text-muted: #9a9691;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --accent-hover: #d4b43a;
  --border: #333;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Subtle gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(201, 162, 39, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Main */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

/* Hero */
.hero {
  margin-bottom: 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-image-wrapper {
  position: sticky;
  top: 100px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.hero-title {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.hero-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-summary {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

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

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

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

.btn-outline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text);
}

/* About */
.about-content p {
  color: var(--text-muted);
  max-width: 700px;
}

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

/* Timeline */
.timeline {
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(154, 150, 145, 0.2);
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.company-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-card);
  flex-shrink: 0;
}

.timeline-content .company {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.timeline-content .company a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.timeline-content .company a:hover {
  border-bottom-color: var(--accent);
}

.timeline-content .date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 600;
}

/* Projects */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

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

.project-card:hover {
  border-color: var(--text-muted);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.project-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.project-card h3 a:hover {
  border-bottom-color: var(--accent);
}

.project-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

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

.project-card p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.project-card p a:hover {
  border-bottom-color: var(--accent);
}

/* Leadership */
.leadership-grid {
  display: grid;
  gap: 1.5rem;
}

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

.leadership-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.leadership-card .location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.leadership-card ul {
  list-style: none;
}

.leadership-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leadership-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.leadership-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.leadership-card h3 a:hover {
  border-bottom-color: var(--accent);
}

.leadership-card li a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.leadership-card li a:hover {
  border-bottom-color: var(--accent);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.skill-category h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.skill-category p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Education */
.education-content {
  display: grid;
  gap: 2rem;
}

.education-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.education-item p {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.education-item .highlight {
  color: var(--text);
}

.education-item .coursework {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.certifications h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.certifications ul {
  list-style: none;
}

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

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

.certifications li a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.certifications li a:hover {
  border-bottom-color: var(--accent);
}

/* Contact */
.contact-section {
  text-align: center;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  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);
}

.contact-icon {
  font-size: 0.8rem;
  font-weight: 700;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrapper {
    position: static;
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-links {
    justify-content: center;
  }

  main {
    padding: 5rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .hero-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
