/* Prayas Abhinav - Design Portfolio
   Minimal, professional styling for Design Leadership positioning */

:root {
  --primary: #1a1a1a;
  --secondary: #666;
  --accent: #2563eb;
  --bg: #fafafa;
  --card-bg: #fff;
  --border: #e5e5e5;
  --text: #333;
  --text-light: #666;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

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

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header / Landing */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero .intro {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  opacity: 1;
}

.contact-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-info a {
  color: var(--text-light);
}

.contact-info a:hover {
  color: var(--primary);
}

/* Availability badge */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.availability::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

/* Portfolio Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 2rem;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.125rem;
}

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

.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

/* Portfolio Page */
.portfolio-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.portfolio-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Year Navigator */
.year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 2rem 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.year-label {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
  flex-shrink: 0;
}

.year-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}

.year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
  cursor: grab;
}

.year-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.year-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #333;
  border: none;
  border-radius: 50%;
  cursor: grab;
}

.year-reset {
  font-size: 0.75rem;
  color: #999;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.year-reset:hover {
  border-color: #999;
  color: #666;
}

.year-current {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  min-width: 2.5rem;
}

.project-card.hidden {
  display: none;
}

@media (max-width: 600px) {
  .year-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .year-slider {
    order: 3;
    width: 100%;
    flex: none;
  }
}

/* Project Grid */
.projects {
  padding: 2rem;
}

.project-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Project Card */
.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 1.5rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border-radius: 100px;
  color: var(--text-light);
}

/* Featured Project (larger) */
.project-featured {
  grid-column: 1 / -1;
}

.project-featured .project-image {
  aspect-ratio: 21/9;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}
