/* ===========================================================
   Himanshu Deshpande — personal site
   Custom styling layer (loaded automatically by Dash)
   =========================================================== */

:root {
  --bg: rgb(255, 248, 240);
  --card-bg: #ffffff;
  --primary: rgb(210, 96, 26);
  --primary-dark: rgb(178, 78, 16);
  --secondary: rgb(164, 74, 63);
  --text: rgb(61, 44, 41);
  --text-muted: rgb(120, 100, 95);
  --subtle: rgb(238, 221, 211);
  --shadow: 0 10px 30px rgba(61, 44, 41, 0.08);
  --shadow-hover: 0 16px 40px rgba(61, 44, 41, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", sans-serif;
}

/* ---------- Navbar ---------- */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(210, 96, 26, 0.12);
}

.site-navbar .brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.site-navbar .brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a.nav-link-item {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a.nav-link-item:hover {
  opacity: 1;
  color: var(--primary);
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .site-navbar { padding: 12px 5vw; }
}

/* ---------- Buttons ---------- */
.btn-primary-cta, .btn-outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(210, 96, 26, 0.28);
  border: none;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(210, 96, 26, 0.38);
  color: #fff;
}

.btn-outline-cta {
  background: transparent;
  color: var(--text) !important;
  border: 1.5px solid rgba(61, 44, 41, 0.25);
}

.btn-outline-cta:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 64px 6vw 24px;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(210, 96, 26, 0.18), rgba(164, 74, 63, 0.05) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-avatar-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-avatar {
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
  border: 6px solid var(--card-bg);
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-name {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 6px;
}

.hero-tagline {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.hero-summary {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.7s ease both;
}

/* ---------- Sections ---------- */
.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}

.section-eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ---------- Cards ---------- */
.surface-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}

/* ---------- Skills ---------- */
.skill-group-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.skill-chip:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Carousel ---------- */
.carousel-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-frame img {
  border-radius: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 48px 6vw 28px;
  background: var(--text);
  color: rgba(255, 248, 240, 0.85);
  border-radius: 28px 28px 0 0;
}

.site-footer .footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.site-footer .footer-sub {
  color: rgba(255, 248, 240, 0.7);
  margin-bottom: 26px;
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-icon-btn img {
  height: 18px;
  width: 18px;
  filter: invert(1);
}

.footer-icon-btn i {
  color: #fff;
  font-size: 1rem;
}

.footer-icon-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 248, 240, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 248, 240, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.back-to-top {
  color: rgba(255, 248, 240, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: #fff;
}
