/* ==========================================================================
   Maulik Parmar - Executive Portfolio Stylesheet
   Theme: Executive Celestial & Asgardian Gold
   ========================================================================== */

:root {
  --bg-page: #06080d;
  --bg-surface: #0b0f17;
  --bg-surface-elevated: #101622;
  --bg-surface-hover: #161e2e;
  --bg-accent-subtle: rgba(245, 158, 11, 0.08);
  --bg-emerald-subtle: rgba(16, 185, 129, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(245, 158, 11, 0.22);
  --border-gold: rgba(245, 158, 11, 0.45);
  --border-focus: #f59e0b;

  --text-main: #fcfbfa;
  --text-muted: #9ba4b5;
  --text-faint: #647082;

  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.3);

  --accent-bifrost-blue: #38bdf8;
  --accent-bifrost-purple: #818cf8;
  --accent-emerald: #10b981;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.6);
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Celestial & Bifrost Lighting */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(129, 140, 248, 0.05) 0%, transparent 50%);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #161e2e, #0c1017);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-gold-light);
  letter-spacing: 0.5px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold-light);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-header-outline {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.btn-header-outline:hover {
  color: var(--text-main);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-header-primary {
  color: #000;
  background: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-weight: 700;
}

.btn-header-primary:hover {
  background: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section - 2-Column Balanced Layout
   ========================================================================== */

.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--bg-accent-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-narrative {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0f17;
  font-weight: 700;
  border: 1px solid #fbbf24;
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Hero Right Profile Spotlight Card */
.hero-spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Bifrost & Asgardian Ribbon Top Accent */
.hero-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 40%, #38bdf8 80%, #818cf8 100%);
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-gold-light);
}

.spotlight-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.spotlight-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spotlight-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spotlight-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
}

.spotlight-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.spotlight-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  color: #cbd5e1;
}

/* ==========================================================================
   Full-Width Stat Bar
   ========================================================================== */

.stat-bar-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.stat-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--accent-gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label-text {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   Section Headers & Common
   ========================================================================== */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 40px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-light);
  margin-bottom: 6px;
}

.section-heading {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-subtext {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 650px;
}

/* ==========================================================================
   Filter Buttons
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(245, 158, 11, 0.3);
}

.filter-btn.active {
  background: var(--bg-accent-subtle);
  color: var(--accent-gold-light);
  border-color: rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   Case Study Cards & Screenshot Frames
   ========================================================================== */

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-hover);
}

.case-content {
  display: flex;
  flex-direction: column;
}

.case-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.case-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.3px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.case-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.case-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.feature-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.case-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
}

.case-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

.case-link:hover {
  color: #fef08a;
  text-decoration: underline;
}

/* Styled Screenshot Window Frame */
.screenshot-window {
  background: #141b29;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.window-header {
  background: #0d121c;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: auto;
  font-family: var(--font-mono);
}

.window-viewport {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.window-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.window-viewport:hover img {
  transform: scale(1.02);
}

.viewport-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.window-viewport:hover .viewport-zoom-hint {
  opacity: 1;
}

.zoom-pill {
  padding: 6px 14px;
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold-light);
}

/* Gallery Thumbnails row */
.gallery-thumbs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb-item {
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.thumb-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   Technical Skills Matrix
   ========================================================================== */

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

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.skill-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-icon-box {
  width: 38px;
  height: 38px;
  background: var(--bg-accent-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-gold-light);
}

.skill-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.skill-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #cbd5e1;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.skill-pill:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

/* ==========================================================================
   Experience & Education
   ========================================================================== */

.timeline-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color var(--transition);
}

.timeline-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.timeline-org {
  font-size: 14.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.timeline-org span.muted {
  font-weight: 400;
  color: var(--text-faint);
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Contact / Outreach Card
   ========================================================================== */

.contact-box {
  background: linear-gradient(135deg, #0b0f17 0%, #121824 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.contact-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.contact-headline {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.contact-copy {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.contact-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ==========================================================================
   Modal Lightbox
   ========================================================================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal {
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  background: #0f1522;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.lightbox-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: auto;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b0f17;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

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

  .nav-toggle {
    display: block;
  }

  .header-cta-group {
    display: none;
  }

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

  .contact-box {
    padding: 32px 20px;
  }
}
