/*
Theme Name: Indu Goswami Portfolio
Theme URI: https://indugoswami.in
Author: Indu Goswami Team
Author URI: https://indugoswami.in
Description: Official one-page portfolio theme for Indu Bala Goswami, Member of Parliament (Rajya Sabha) from Himachal Pradesh.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indu-goswami
Tags: one-page, portfolio, political, custom-background
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f4f0;
  --fg: #1a2233;
  --card: #f0ece6;
  --card-fg: #1a2233;
  --primary: #c45a1a;
  --primary-fg: #ffffff;
  --secondary: #1e2d4d;
  --secondary-fg: #ffffff;
  --muted: #e3e0da;
  --muted-fg: #5c6370;
  --accent: #2e7a47;
  --accent-fg: #ffffff;
  --gold: #c9943a;
  --border: #d9d4cb;
  --saffron: #c45a1a;
  --tri-white: #ffffff;
  --tri-green: #2e7a47;
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

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

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

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

/* ===== TRICOLOR BAR ===== */
.tricolor-bar {
  height: 6px;
  background: linear-gradient(
    to right,
    var(--saffron) 0%, var(--saffron) 33%,
    var(--tri-white) 33%, var(--tri-white) 66%,
    var(--tri-green) 66%, var(--tri-green) 100%
  );
}

/* ===== GRADIENT UTILITIES ===== */
.gradient-gold {
  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #141e33 50%, var(--secondary) 100%);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 45, 77, 0.82);
}

.hero .tricolor-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__content {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }
}

.hero__photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.hero__photo {
  width: 224px;
  height: 224px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(196, 90, 26, 0.4);
  box-shadow: 0 25px 50px -12px rgba(196, 90, 26, 0.2);
}

@media (min-width: 768px) {
  .hero__photo {
    width: 288px;
    height: 288px;
  }
}

@media (min-width: 1024px) {
  .hero__photo {
    width: 320px;
    height: 320px;
  }
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero__flag {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero__subtitle {
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-fg);
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero__title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 6rem; }
}

.hero__role {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero__desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero__buttons {
    justify-content: flex-start;
  }
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  color: var(--primary-fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid rgba(196, 90, 26, 0.4);
  color: var(--secondary-fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(196, 90, 26, 0.1);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 6rem 0;
}

.section--card {
  background-color: var(--card);
}

.section__label {
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section__heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section__heading { font-size: 3rem; }
}

/* ===== ACHIEVEMENTS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: rgba(196, 90, 26, 0.3);
}

.stat-card__icon {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.stat-card__value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-card__value { font-size: 3rem; }
}

.stat-card__label {
  color: var(--muted-fg);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-grid h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-grid p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-grid strong {
  color: var(--fg);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.detail-row__label {
  color: var(--muted-fg);
}

.detail-row__value {
  font-weight: 500;
  text-align: right;
  max-width: 55%;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .timeline__line {
    left: 50%;
    transform: translateX(-0.5px);
  }
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.timeline-item__dot {
  position: absolute;
  left: 16px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(196, 90, 26, 0.2);
}

@media (min-width: 768px) {
  .timeline-item__dot {
    left: 50%;
  }
}

.timeline-item__content {
  margin-left: 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .timeline-item__content {
    width: 45%;
    margin-left: 0;
  }

  .timeline-item--left .timeline-item__content {
    padding-right: 3rem;
    text-align: right;
  }

  .timeline-item--right .timeline-item__content {
    margin-left: auto;
    padding-left: 3rem;
    text-align: left;
  }
}

.timeline-item__year {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
}

.timeline-item__desc {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.quote-section blockquote {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote-section__mark {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 3.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.quote-section__text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--secondary-fg);
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .quote-section__text { font-size: 2.25rem; }
}

.quote-section footer {
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* ===== VISION / KEY POSITIONS ===== */
.roles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
}

.role-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.role-card:hover {
  border-color: rgba(196, 90, 26, 0.3);
  box-shadow: 0 10px 25px rgba(196, 90, 26, 0.05);
}

.role-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.role-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.role-card__desc {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--secondary);
  color: var(--secondary-fg);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-grid h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-grid h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-grid p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.75rem;
}

.footer-grid a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator__pill {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator__dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
