/* -------------------------------------------------------------
   Right Now Studio — Abhishek Rathod Portfolio
   Styles matching exact typography, colors, and layout
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #fafaf8;
  --text-primary: #0f0f0f;
  --text-secondary: #777777;
  --text-light: #dedede;
  --card-border: #e8e8e8;
  --card-radius: 20px;
  --footer-bg: #0b0b0b;
  --font-heading: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1350px;
  --card-height: 435px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

/* ------------------ NAVIGATION ------------------ */
.nav-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #2b2e31;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ff5a1f;
}

/* ------------------ MAIN WRAPPER ------------------ */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* ------------------ HERO SECTION ------------------ */
.hero-section {
  padding: 50px 0 45px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #0f0f0f;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #0f0f0f;
}

/* ------------------ PROJECT GRIDS ------------------ */
.grid-row {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

/* Row 1: FashionxID (fixed/narrow), Unified (flexible), ClearShot (flexible) */
.grid-row-1 {
  grid-template-columns: 260px 1.05fr 1fr;
}

/* Row 2: ResQ-Link (larger), Aero (medium) */
.grid-row-2 {
  grid-template-columns: 1.48fr 1fr;
}

/* Row 3: MotionMate, Tri-Kart */
.grid-row-3 {
  grid-template-columns: 1.18fr 1fr;
}

/* ------------------ CARD STYLING ------------------ */
.card {
  position: relative;
  height: var(--card-height);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 0.8px solid var(--card-border);
  border-bottom: none;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img-wrapper img {
  transform: scale(1.03);
}

/* Dark gradient overlay for text readability */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.card.light-theme .card-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.card-top {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.card-category {
  font-family: var(--font-body);
  font-size: 12.8px;
  font-weight: 500;
  letter-spacing: 0.64px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-light);
}

.card.light-theme .card-category {
  color: #141414;
}

.card-bottom {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 23.2px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

.card.light-theme .card-title {
  color: #141414;
}

.card-arrow {
  font-family: var(--font-body);
  font-size: 20.8px;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.25s ease;
}

.card.light-theme .card-arrow {
  color: #141414;
}

.card:hover .card-arrow {
  transform: translate(3px, -3px);
}

/* ------------------ SLIDESHOW CONTROLS ------------------ */
.slideshow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
}

.card:hover .slideshow-btn {
  opacity: 1;
}

.slideshow-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slideshow-btn.prev {
  left: 14px;
}

.slideshow-btn.next {
  right: 14px;
}

.slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s ease, width 0.2s ease;
}

.dot.active {
  background: #ffffff;
  width: 14px;
  border-radius: 10px;
}

/* ------------------ PHILOSOPHY BANNER ------------------ */
.philosophy-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 0.8px solid var(--card-border);
}

.quote-highlight {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: #141414;
  margin-bottom: 40px;
  max-width: 900px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.philosophy-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.72px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.philosophy-col p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: #333333;
}

/* ------------------ FOOTER ------------------ */
.footer-panel {
  background-color: var(--footer-bg);
  border-radius: 28px;
  padding: 56px 64px 48px;
  color: #ffffff;
  position: relative;
  margin-top: 16px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  width: 114px;
  height: auto;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #1a1a1a;
  border: 0.8px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-circle-btn svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.social-circle-btn:hover {
  transform: translateY(-3px);
  background-color: #262626;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-tagline {
  max-width: 280px;
}

.footer-tagline p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: #a0a0a0;
}

.footer-contact {
  text-align: right;
}

.footer-phone {
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: #ff5a1f;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666666;
}

/* ------------------ ABOUT PAGE STYLES ------------------ */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 80px;
}

.about-intro-col {
  padding-right: 20px;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #0f0f0f;
  margin-bottom: 24px;
}

.about-bio {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 36px;
  max-width: 520px;
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #141414;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-resume:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.about-image-col {
  position: relative;
}

.about-portrait-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--card-border);
  aspect-ratio: 3 / 4;
}

.about-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blogs Section */
.blogs-section {
  padding: 20px 0 60px;
}

.blogs-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.blogs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 0.8px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-img-wrapper {
  height: 280px;
  overflow: hidden;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.03);
}

.blog-content {
  padding: 24px;
}

.blog-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: #141414;
}

/* ------------------ RESPONSIVE BREAKPOINTS ------------------ */
@media (max-width: 1100px) {
  .hero-title, .hero-subtitle {
    font-size: 42px;
  }
  
  .grid-row-1 {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-row-1 .card:first-child {
    grid-column: span 2;
  }
  
  .grid-row-2, .grid-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .hero-title, .hero-subtitle {
    font-size: 34px;
    letter-spacing: -1px;
  }
  
  .grid-row-1, .grid-row-2, .grid-row-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-row-1 .card:first-child {
    grid-column: span 1;
  }
  
  .card {
    height: 380px;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blogs-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-panel {
    padding: 40px 28px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 550px) {
  .hero-title, .hero-subtitle {
    font-size: 28px;
  }
  
  .nav-links {
    gap: 18px;
  }
  
  .nav-links a {
    font-size: 13px;
  }
  
  .philosophy-card {
    padding: 28px 20px;
  }
  
  .quote-highlight {
    font-size: 20px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
}
