/* ══════════════════════════════════════════════════════
   Om Chavan — Portfolio Stylesheet
   Design: Dark, clean, premium, zero-flashiness
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Surface */
  --bg-primary: #09090b;
  --bg-secondary: #111113;
  --bg-elevated: #18181b;
  --bg-hover: #1e1e22;

  /* Borders */
  --border-subtle: #1c1c20;
  --border-default: #27272a;
  --border-strong: #3f3f46;

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Accent — warm bronze/copper */
  --accent: #c8956c;
  --accent-soft: rgba(200, 149, 108, 0.12);
  --accent-hover: #d4a57c;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1080px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}


/* ── Container ──────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}


/* ── Navigation ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}

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

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.toggle-icon {
  width: 22px;
  height: 22px;
}

.toggle-icon.hidden {
  display: none;
}


/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

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

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: heroSlideInLeft 0.8s var(--ease) 0.1s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.accent-dot {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeInUp 0.8s var(--ease) 0.8s forwards;
}

.hero-description {
  font-size: 1.0625rem;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeInUp 0.8s var(--ease) 1s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: heroFadeInUp 0.8s var(--ease) 1.2s forwards;
}

/* ── Hero Animations ────────────────────────────────── */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}

.btn i {
  width: 18px;
  height: 18px;
}

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

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

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

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


/* ── Section Shared ─────────────────────────────────── */
.section {
  padding: var(--section-padding);
}

.section-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.label-number {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-right: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 48px;
  max-width: 480px;
}


/* ── About ──────────────────────────────────────────── */
.about-section {
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease);
}

.detail-card:hover {
  border-color: var(--border-default);
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
}

.detail-icon i {
  width: 20px;
  height: 20px;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.detail-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ── Tech Stack ─────────────────────────────────────── */
.tech-section {
  border-top: 1px solid var(--border-subtle);
}

.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tech-category-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.tech-item:hover {
  border-color: var(--border-default);
  background: var(--bg-elevated);
}

.tech-item i {
  font-size: 1.375rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  flex-shrink: 0;
}

.tech-item:hover i {
  color: var(--accent);
}

.tech-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}


/* ── Projects ───────────────────────────────────────── */
.projects-section {
  border-top: 1px solid var(--border-subtle);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.project-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
}

.project-icon i {
  width: 22px;
  height: 22px;
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  display: flex;
  align-items: center;
}

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

.project-links a i {
  width: 20px;
  height: 20px;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tech-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.projects-cta .btn i {
  width: 16px;
  height: 16px;
}


/* ── Contact ────────────────────────────────────────── */
.contact-section {
  border-top: 1px solid var(--border-subtle);
}

.contact-container {
  max-width: 600px;
  text-align: center;
}

.contact-container .section-label {
  text-align: center;
}

.contact-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.contact-link:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: var(--bg-elevated);
}

.contact-link i {
  width: 18px;
  height: 18px;
}

.contact-email-btn {
  margin: 0 auto;
}


/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-credit {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-credit a {
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.footer-credit a:hover {
  color: var(--accent);
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.6;
}


/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Tech */
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .section-label {
    font-size: 1.25rem;
  }

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

  .project-card {
    padding: 22px;
  }
}
