/* ============================================
   Rajvee Shah - Personal Website Styles
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

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

:root {
  --bg-primary: #f5f0ea;
  --bg-secondary: #e8e0d8;
  --bg-card: #ece5dd;
  --text-dark: #3d2e1e;
  --text-body: #5a4a3a;
  --text-light: #8a7a6a;
  --accent-brown: #6b4c32;
  --accent-gold: #a08050;
  --border-color: #a08050;
  --white: #ffffff;
  --font-heading: 'Marcellus', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}


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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
  padding: 25px 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--bg-primary);
}

.logo {
  display: flex;
  align-items: stretch;
  text-decoration: none;
}

.logo-bar {
  width: 3px;
  background-color: var(--accent-gold);
  margin-right: 14px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: 5px;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-top: 8px;
}

nav a {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-body);
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.3s;
}

/* Alternating background pages: header & footer use card bg */
.page-alt header,
.page-alt footer {
  background-color: var(--bg-card);
}

/* About page: footer uses lighter bg for contrast with philosophy section */
.page-alt-about footer {
  background-color: var(--bg-primary);
}

nav a:hover,
nav a.active {
  color: var(--text-dark);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-dark);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--bg-primary);
  padding: 60px 50px 40px;
  border-top: 2px solid var(--accent-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  margin-bottom: 30px;
}

.footer-logo .logo-text {
  font-size: 36px;
  letter-spacing: 4px;
}

.footer-logo .logo-bar {
  width: 3px;
}

.footer-info {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-email {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 20px;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #0077b5;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 30px;
}

.footer-divider {
  border: none;
  border-top: 1.5px solid var(--text-dark);
  margin: 30px 0 20px;
}

.footer-disclaimer {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 15px;
}

.footer-copyright {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
}

/* ============================================
   HOME PAGE - HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(245, 240, 234, 0.92);
  padding: 50px 70px;
  text-align: center;
  max-width: 650px;
}

.hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.hero-overlay p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background-color: var(--accent-brown);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #5a3d25;
}

/* ============================================
   HOME PAGE - MY APPROACH
   ============================================ */
.my-approach {
  padding: 80px 50px;
  text-align: center;
  background-color: var(--bg-primary);
}

.section-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 0 auto 20px;
}

.my-approach h2 {
  font-size: 40px;
  margin-bottom: 40px;
}

.my-approach-image {
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: 0;
}

.my-approach-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.my-approach p {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ============================================
   HOME PAGE - AREAS OF EXPERTISE
   ============================================ */
.areas-of-expertise {
  padding: 80px 50px;
  background-color: var(--bg-card);
}

.areas-of-expertise .section-header {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.areas-of-expertise h2 {
  font-size: 42px;
  line-height: 1.2;
  min-width: 200px;

}

.expertise-cards {
  display: flex;
  flex-direction: column;
  gap: 60px;
  flex: 1;
}

.expertise-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.expertise-card.reverse {
  flex-direction: row-reverse;
}

.expertise-card-image {
  width: 350px;
  min-width: 350px;
  height: 280px;
  overflow: hidden;
}

.expertise-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-card-content {
  flex: 1;
}

.expertise-card-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.expertise-card-content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  text-align: left;
}

/* ============================================
   EXPERTISE PAGE - DESIGN INTEGRATION
   ============================================ */
.expertise-section {
  padding: 80px 50px;
  background-color: var(--bg-primary);
}

.expertise-block {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto 80px;
  align-items: flex-start;
}

.expertise-block.reverse {
  flex-direction: row-reverse;
}

.expertise-block-image {
  width: 450px;
  min-width: 400px;
  height: 380px;
  overflow: hidden;
}

.expertise-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-block-content {
  flex: 1;
}

.expertise-block-content h2 {
  font-size: 38px;
  margin-bottom: 25px;
}

.expertise-block-content p {
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
  color: var(--text-body);
}

/* ============================================
   EXPERTISE PAGE - INTENTIONAL FRAMEWORK
   ============================================ */
.intentional-framework {
  padding: 80px 50px;
  background-color: var(--bg-card);
}

.intentional-framework h2 {
  text-align: center;
  font-size: 38px;

  margin-bottom: 40px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.framework-item {
  text-align: center;
}

.framework-item-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 25px;
}

.framework-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framework-item h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.framework-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ============================================
   EXPERTISE PAGE - 4-STEP APPROACH
   ============================================ */
.four-step {
  padding: 80px 50px;
  background-color: var(--bg-primary);
}

.four-step h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 50px;
}

.steps-list {
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  padding: 30px 0;
  border-top: 1px solid var(--bg-secondary);
}

.step-number {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.step-item h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.step-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: 60px 50px 80px;
  background-color: var(--bg-primary);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 48px;
  margin-bottom: 40px;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.about-photo {
  width: 380px;
  min-width: 350px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text-body);
}

/* About - Philosophy */
.philosophy {
  padding: 80px 50px;
  text-align: center;
  background-color: var(--bg-card);
}

.philosophy-inner {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--bg-secondary);
  padding: 50px 60px;
  background-color: var(--bg-primary);
}

.philosophy-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 15px;
}

.philosophy h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.philosophy p {
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-body);
}

.philosophy .author {
  font-size: 15px;
  font-style: italic;
  color: var(--text-light);
  margin-top: 15px;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-hero {
  padding: 60px 50px 40px;
  background-color: var(--bg-primary);
}

.projects-hero h1 {
  font-size: 48px;

  margin-bottom: 15px;
}

.projects-hero p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 700px;
  margin-bottom: 30px;
}

.projects-hero hr {
  border: none;
  border-top: 1px solid var(--bg-secondary);
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  padding: 40px 50px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  border-top: 3px solid var(--accent-brown);
  padding-top: 20px;
}

.project-card-icon {
  width: 28px;
  height: 20px;
  background-color: var(--accent-brown);
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.project-card .location {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.project-card h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.project-card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 20px;
}

.projects-row-divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid var(--bg-secondary);
  margin: 0;
}

.projects-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  padding: 30px 50px 60px;
  border-top: 1px solid var(--accent-gold);
  max-width: 1000px;
  margin: 0 auto;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero {
  padding: 20px 50px 10px;
}

.blog-filter {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 50px 80px;
  max-width: 800px;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-link:hover .blog-card {
  opacity: 0.85;
}

.blog-card {
  background-color: var(--bg-primary);
  transition: opacity 0.3s ease;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.blog-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.blog-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-author {
  font-size: 12px;
  color: var(--text-light);
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 15px;
}

.blog-card-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   CONNECT PAGE
   ============================================ */
.connect-section {
  padding: 60px 50px 0;
  background-color: var(--bg-primary);
}

.connect-top {
  max-width: 1100px;
  margin: 0 auto 40px;
}

.connect-text {
  flex: 1;
}

.connect-text h1 {
  font-size: 48px;

  margin-bottom: 25px;
}

.connect-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 20px;
}

.connect-email {
  font-size: 15px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.connect-email .footer-linkedin {
  width: 28px;
  height: 28px;
  font-size: 14px;
  margin-bottom: 0;
}

.connect-image-side {
  width: 350px;
  min-width: 300px;
  height: 300px;
  overflow: hidden;
}

.connect-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.connect-hero-image {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.connect-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.connect-btn {
  text-align: center;
  padding: 20px 0 60px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   ANIMATIONS
   ============================================ */

/* Base state: hidden before animation triggers */
.fade-in,
.fade-up,
.fade-left,
.fade-right,
.scale-in,
.fade-up-stagger {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-50px);
}

.fade-right {
  transform: translateX(50px);
}

.scale-in {
  transform: scale(0.92);
}

.fade-up-stagger {
  transform: translateY(30px);
}

/* Visible state: triggered by IntersectionObserver */
.fade-in.is-visible,
.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible,
.scale-in.is-visible,
.fade-up-stagger.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid/list children */
.stagger-children > .fade-up-stagger:nth-child(1) { transition-delay: 0s; }
.stagger-children > .fade-up-stagger:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > .fade-up-stagger:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > .fade-up-stagger:nth-child(4) { transition-delay: 0.45s; }

/* Hero entrance — plays immediately on load */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroOverlayReveal {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes heroImageZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

header {
  animation: heroFadeDown 0.8s ease-out both;
}

.hero .hero-image {
  animation: heroImageZoom 1.6s ease-out both;
}

.hero .hero-overlay {
  animation: heroOverlayReveal 1s 0.3s ease-out both;
}

/* Subtle parallax-like hover on expertise images */
.expertise-card-image img,
.expertise-block-image img,
.framework-item-image img,
.blog-card-image img,
.connect-hero-image img {
  transition: transform 0.6s ease;
}

.expertise-card-image:hover img,
.expertise-block-image:hover img,
.framework-item-image:hover img,
.blog-card-image:hover img,
.connect-hero-image:hover img {
  transform: scale(1.04);
}

/* Smooth gold line draw */
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 40px; }
}

.section-line.is-visible {
  animation: lineGrow 0.7s ease-out both;
}

/* Step items slide up sequentially */
.step-item.fade-up-stagger:nth-child(1) { transition-delay: 0s; }
.step-item.fade-up-stagger:nth-child(2) { transition-delay: 0.12s; }
.step-item.fade-up-stagger:nth-child(3) { transition-delay: 0.24s; }
.step-item.fade-up-stagger:nth-child(4) { transition-delay: 0.36s; }

/* Button hover lift */
.btn-primary {
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 76, 50, 0.25);
}

/* Project card hover */
.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in, .fade-up, .fade-left, .fade-right, .scale-in, .fade-up-stagger {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
  }

  nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-overlay {
    padding: 30px 40px;
    max-width: 90%;
  }

  .hero-overlay h1 {
    font-size: 32px;
  }

  .areas-of-expertise .section-header {
    flex-direction: column;
    gap: 30px;
  }

  .expertise-card,
  .expertise-card.reverse {
    flex-direction: column;
  }

  .expertise-card-image {
    width: 100%;
    min-width: unset;
  }

  .expertise-block,
  .expertise-block.reverse {
    flex-direction: column;
  }

  .expertise-block-image {
    width: 100%;
    min-width: unset;
  }

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

  .about-content {
    flex-direction: column;
  }

  .about-photo {
    width: 100%;
    min-width: unset;
  }

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

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

  .connect-top {
    flex-direction: column;
  }

  .connect-image-side {
    width: 100%;
    min-width: unset;
  }

  footer {
    padding: 40px 30px 30px;
  }
}
