/* ============================================================
   DEEPCHAND PORTFOLIO — style.css
   Aesthetic: Editorial / Refined Minimalism
   ============================================================ */

:root {
  --bg: #f9f7f4;
  --fg: #1a1714;
  --accent: #8b4a2f;
  --accent-light: #c4845f;
  --muted: #6b6560;
  --border: #ddd9d4;
  --nav-bg: rgba(249, 247, 244, 0.95);
  --card-bg: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --max-w: 1100px;
  --nav-h: 64px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--fg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: var(--nav-h);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--max-w);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-xl) var(--space-md);
  min-height: calc(100vh - var(--nav-h));
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.hero-role {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--muted);
  margin-bottom: var(--space-md);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-sm);
}

.hero-bio {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.hero-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  transition: background 0.2s, color 0.2s;
}

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

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--fg);
}

/* Hero image */
.hero-image-wrap {
  flex-shrink: 0;
}

.hero-image-placeholder {
  width: 320px;
  height: 380px;
  background: linear-gradient(145deg, #e8e2dc, #d4ccc5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--muted);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60%;
  height: 60%;
  background: var(--accent);
  opacity: 0.08;
}

/* ============================================================
   PAGE SECTIONS (About / Works / Projects / Blogs / Contact)
   ============================================================ */
.page-section {
  margin-top: var(--nav-h);
  max-width: var(--max-w);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-lg) var(--space-md);
  flex: 1;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.page-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #e8e2dc, #d4ccc5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--muted);
  border: 1px solid var(--border);
}

.about-text-col p {
  color: var(--muted);
  margin-bottom: var(--space-sm);
  max-width: 640px;
}

.about-text-col strong { color: var(--fg); font-weight: 500; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.skill-tag {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-bg);
  transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   TIMELINE (Experience)
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 160px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 154px;
  top: calc(var(--space-md) + 10px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-date {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 0.4rem;
  text-align: right;
  padding-right: var(--space-md);
}

.timeline-dash { color: var(--border); }

.timeline-body { padding-left: var(--space-sm); }

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-bullets li {
  font-size: 0.93rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: -0.1rem;
  color: var(--border);
}

.timeline-bullets strong { color: var(--fg); font-weight: 500; }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: var(--space-sm);
}

.project-card {
  border: 1px solid var(--border);
  padding: var(--space-md);
  background: var(--card-bg);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.project-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
}

.project-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.project-link {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.project-link:hover { border-color: var(--accent); }

/* ============================================================
   BLOG LIST
   ============================================================ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.blog-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: 0.5rem;
  align-items: center;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.blog-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--accent);
}

.blog-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.blog-title a {
  transition: color 0.2s;
}

.blog-title a:hover { color: var(--accent); }

.blog-excerpt {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 680px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-intro {
  max-width: 560px;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  width: 100%;
  max-width: 700px;
}

.contact-card {
  border: 1px solid var(--border);
  padding: var(--space-md);
  background: var(--card-bg);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 100%;
}

.footer-links {
  display: flex;
  gap: var(--space-sm);
}

.footer-links a {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: color 0.2s;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }

  .hero {
    flex-direction: column-reverse;
    padding: var(--space-md);
    padding-top: calc(var(--nav-h) + var(--space-md));
    min-height: auto;
  }

  .hero-image-placeholder { width: 100%; height: 240px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image-placeholder { width: 160px; height: 200px; }

  .timeline::before { left: 0; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item::before { display: none; }
  .timeline-date { text-align: left; padding-right: 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer { flex-direction: column; gap: var(--space-sm); text-align: center; }
}
