/* ============================================================
   Harry Dhindsa — Personal Site
   Design inspired by harry-he.com aesthetic
   ============================================================ */

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

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE7DA;
  --gold: #C8A96E;
  --gold-light: #D4BA85;
  --ink: #1A1A1A;
  --ink-light: #3A3A3A;
  --ink-muted: #6B6B6B;
  --teal: #2A6B7C;
  --teal-light: #358A9E;
  --white: #FFFFFF;
  --rule: rgba(26, 26, 26, 0.1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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;
  z-index: 900;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.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);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1.5rem;
  min-height: 1.2em;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero-name {
  display: block;
}

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

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

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

/* Hero photo area */
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrap {
  position: relative;
}

.photo-placeholder {
  width: 340px;
  height: 420px;
  background: var(--cream-dark);
  border: 3px solid var(--gold);
  border-radius: 4px;
  position: relative;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  background: var(--gold);
  opacity: 0.15;
  border-radius: 4px;
  z-index: -1;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--ink-light);
  transform: translateY(-2px);
}

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

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

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

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

.about-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-centered p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--ink-light);
  font-size: 1.05rem;
}

.about-education {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.edu-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}

.edu-school {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.edu-degree, .edu-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.edu-note {
  font-style: italic;
  font-size: 0.82rem;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.4rem;
}

.about-tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--ink-light);
}

/* --- Experience --- */
.experience {
  border-top: 1px solid var(--rule);
}

.exp-divider {
  padding: 1.5rem 0;
  margin: 1rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--rule);
}

.exp-divider span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 500;
}

.exp-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.exp-company {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.exp-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exp-description {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-style: italic;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-light);
}

.exp-bullets li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.exp-subtitle-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.exp-lead {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.quantdesk-designed-for {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(200, 169, 110, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

.quantdesk-designed-for .edge-label {
  display: block;
  margin-bottom: 0.6rem;
}

.exp-link, .exp-link-inline {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.exp-link:hover, .exp-link-inline:hover {
  border-bottom-color: var(--teal);
  color: var(--teal-light);
}

.exp-link-inline {
  font-size: 0.78rem;
  margin-left: 0.5rem;
}

.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 2px;
  transition: background 0.3s;
}

.chip:hover {
  background: var(--teal);
}

/* --- Strategies --- */
.strategies {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
}

.strategies .section-heading {
  color: var(--cream);
}

.strategies .section-heading::after {
  background: var(--gold);
}

.strategies-intro {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.7);
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.strategy-card {
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.strategy-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.strategy-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}

.strategy-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.strategy-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--teal);
  border-radius: 2px;
}

.strategy-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 0;
}

.strategy-edge {
  background: rgba(200, 169, 110, 0.1);
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1rem;
  border-radius: 0 4px 4px 0;
}

.edge-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.strategy-edge p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.6);
}

.strategies-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.strategies-footer p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.5);
  max-width: 500px;
  line-height: 1.6;
}

.strategies-footer .btn-primary {
  background: var(--gold);
  color: var(--ink);
  white-space: nowrap;
}

.strategies-footer .btn-primary:hover {
  background: var(--gold-light);
}

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

.projects-intro {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: var(--white);
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: var(--cream-dark);
  border-radius: 2px;
  color: var(--ink-muted);
}

.project-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 0.3s;
}

.project-card:hover .project-cta {
  border-bottom-color: var(--teal);
}

/* --- Skills --- */
.skills {
  border-top: 1px solid var(--rule);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.skill-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

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

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 2px;
  transition: background 0.3s;
}

.skill-tags span:hover {
  background: var(--teal);
}

/* --- Interests --- */
.interests-section {
  border-top: 1px solid var(--rule);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
}

.interest-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.interest-card:hover {
  border-color: var(--gold);
}

.interest-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.interest-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.interest-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

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

.contact-grid {
  max-width: 600px;
}

.contact-info p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  transition: color 0.3s;
}

.contact-item:hover {
  color: var(--teal);
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(245, 240, 232, 0.5);
  padding: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo {
    display: none;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

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

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

  .strategies-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

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

@media (max-width: 600px) {
  .hero {
    padding: 6rem 1.2rem 3rem;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .projects-grid {
    gap: 1rem;
  }
}
