/* ============================================================
   Azure User Group Vadodara — Shared Stylesheet
   Inspired by Microsoft Build dark theme + Azure branding
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  --bg:           #0a0a0a;
  --surface:      #141414;
  --card:         #1c1c1c;
  --card-hover:   #242424;
  --border:       #2a2a2a;
  --azure:        #0078D4;
  --azure-light:  #50a3e0;
  --azure-dark:   #005a9e;
  --gold:         #FFB900;
  --green:        #107c10;
  --text:         #ffffff;
  --text-muted:   #9a9a9a;
  --text-dim:     #5a5a5a;
  --radius:       0px;
  --radius-lg:    0px;
  --nav-h:        60px;
  --max-w:        1200px;

  /* Mosaic accent colours (hero block grid) */
  --m1: #0078D4; --m2: #50a3e0; --m3: #107c10;
  --m4: #FFB900; --m5: #e74856; --m6: #8764b8;
  --m7: #00b4d8; --m8: #ff8c00; --m9: #00cc6a;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg:           #f4f6f8;
  --surface:      #ffffff;
  --card:         #ffffff;
  --card-hover:   #f0f2f5;
  --border:       #dde1e7;
  --text:         #0a0a0a;
  --text-muted:   #4a4a4a;
  --text-dim:     #888888;
  --azure-light:  #005a9e;
}
[data-theme="light"] .nav {
  background: rgba(244,246,248,.96);
  border-bottom-color: #dde1e7;
}
[data-theme="light"] .hero::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.06) 1px, transparent 0);
}
[data-theme="light"] .page-hero::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 0);
}
[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, rgba(0,120,212,.08) 0%, rgba(0,90,158,.04) 100%);
}
[data-theme="light"] .mosaic { opacity: 1; }

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover {
  border-color: var(--azure);
  color: var(--azure-light);
  background: rgba(0,120,212,.07);
}
.theme-toggle svg { width: 16px; height: 16px; pointer-events: none; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Utility ---- */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 48px 0; }
.divider     { height: 1px; background: linear-gradient(90deg, transparent, var(--azure), transparent); margin: 0; }
.tag         { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 0; }
.tag-azure   { background: rgba(0,120,212,.15); color: var(--azure-light); border: 1px solid rgba(0,120,212,.3); }
.tag-gold    { background: rgba(255,185,0,.12); color: var(--gold); border: 1px solid rgba(255,185,0,.25); }
.tag-green   { background: rgba(16,124,16,.15); color: #3dd68c; border: 1px solid rgba(16,124,16,.3); }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.nav__logo {
  width: 28px; height: 28px;
  background: var(--azure);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.nav__brand-text { color: var(--text); }
.nav__brand-text span { color: var(--azure-light); }
.nav__links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav__links a {
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav__cta {
  margin-left: auto;
  padding: 7px 18px; border-radius: 0;
  background: var(--azure); color: #fff;
  font-size: 13px; font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--azure-dark); }
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 0; transition: .2s; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--azure-light); margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--azure);
}
.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-light) 60%, #00b4d8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 18px; color: var(--text-muted); max-width: 460px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Mosaic ---- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 40px);
  gap: 6px;
  opacity: .88;
}
.mosaic__block { border-radius: 0; }
.mosaic__block:nth-child(1)  { grid-column: 1/3; grid-row: 1/3; background: var(--m1); }
.mosaic__block:nth-child(2)  { grid-column: 3/4; grid-row: 1/2; background: var(--m3); }
.mosaic__block:nth-child(3)  { grid-column: 4/6; grid-row: 1/2; background: var(--m4); }
.mosaic__block:nth-child(4)  { grid-column: 6/7; grid-row: 1/3; background: var(--m5); }
.mosaic__block:nth-child(5)  { grid-column: 3/5; grid-row: 2/4; background: var(--m2); }
.mosaic__block:nth-child(6)  { grid-column: 5/6; grid-row: 2/3; background: var(--m6); }
.mosaic__block:nth-child(7)  { grid-column: 1/2; grid-row: 3/5; background: var(--m7); }
.mosaic__block:nth-child(8)  { grid-column: 2/4; grid-row: 3/4; background: var(--m8); }
.mosaic__block:nth-child(9)  { grid-column: 4/6; grid-row: 3/5; background: var(--m9); }
.mosaic__block:nth-child(10) { grid-column: 6/7; grid-row: 3/4; background: var(--m1); }
.mosaic__block:nth-child(11) { grid-column: 2/3; grid-row: 4/6; background: var(--m5); }
.mosaic__block:nth-child(12) { grid-column: 3/4; grid-row: 4/5; background: var(--m3); }
.mosaic__block:nth-child(13) { grid-column: 5/7; grid-row: 4/6; background: var(--m4); }
.mosaic__block:nth-child(14) { grid-column: 1/2; grid-row: 5/7; background: var(--m6); }
.mosaic__block:nth-child(15) { grid-column: 3/5; grid-row: 5/7; background: var(--m7); }
.mosaic__block:nth-child(16) { grid-column: 2/3; grid-row: 6/7; background: var(--m2); }
.mosaic__block:nth-child(17) { grid-column: 5/6; grid-row: 6/8; background: var(--m8); }
.mosaic__block:nth-child(18) { grid-column: 6/7; grid-row: 6/7; background: var(--m9); }
.mosaic__block:nth-child(19) { grid-column: 1/3; grid-row: 7/9; background: var(--m3); }
.mosaic__block:nth-child(20) { grid-column: 3/4; grid-row: 7/8; background: var(--m5); }
.mosaic__block:nth-child(21) { grid-column: 4/6; grid-row: 7/9; background: var(--m1); }
.mosaic__block:nth-child(22) { grid-column: 6/7; grid-row: 7/9; background: var(--m4); }
.mosaic__block:nth-child(23) { grid-column: 3/4; grid-row: 8/9; background: var(--m6); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 0;
  font-size: 14px; font-weight: 600;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: var(--azure-dark); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--azure); color: var(--azure-light); background: rgba(0,120,212,.06); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Section headers ---- */
.section-header { margin-bottom: 48px; }
.section-header__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--azure-light); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-header__eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--azure); }
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
}
.section-header p { margin-top: 12px; color: var(--text-muted); font-size: 17px; max-width: 560px; }

/* ---- Stat bar ---- */
.stats {
  display: flex; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.stat {
  flex: 1; padding: 28px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat__num { font-size: 36px; font-weight: 800; color: var(--azure-light); line-height: 1; margin-bottom: 4px; }
.stat__label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ---- Event cards ---- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.event-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.event-card:hover { border-color: var(--azure); transform: translateY(-3px); }
.event-card__thumb {
  height: 140px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; position: relative; overflow: hidden;
}
.event-card__thumb-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--azure-light));
}
.event-card__body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.event-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 10px;
}
.event-card__meta svg { width: 13px; height: 13px; opacity: .6; }
.event-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.event-card__title a:hover { color: var(--azure-light); }
.event-card__desc { font-size: 14px; color: var(--text-muted); flex: 1; }
.event-card__footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.event-card__location { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }

/* ---- Speaker cards ---- */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.speaker-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.speaker-card:hover { border-color: var(--azure); transform: translateY(-3px); }
.speaker-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--azure-dark), var(--azure-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  margin: 0 auto 16px;
  border: 2px solid rgba(0,120,212,.3);
}
.speaker-card__name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.speaker-card__title { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.speaker-card__links { display: flex; align-items: center; justify-content: center; gap: 10px; }
.speaker-card__links a {
  color: var(--text-dim);
  transition: color .2s;
  display: flex; align-items: center;
}
.speaker-card__links a:hover { color: var(--azure-light); }
.speaker-card__links svg { width: 16px; height: 16px; }

/* ---- Sponsor section ---- */
.sponsors-grid {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center;
}
.sponsor-slot {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 32px;
  display: flex; align-items: center; justify-content: center;
  min-width: 160px; min-height: 72px;
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  text-align: center;
  transition: border-color .2s;
}
.sponsor-slot:hover { border-color: var(--azure); }
.sponsor-slot--cta {
  border-style: dashed; border-color: var(--azure);
  color: var(--azure-light); cursor: pointer; background: rgba(0,120,212,.04);
}

/* ---- About/Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.team-card:hover { border-color: var(--azure); transform: translateY(-3px); }
.team-card__photo-wrap {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--surface);
  position: relative;
}
.team-card__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform .3s;
}
.team-card:hover .team-card__photo { transform: scale(1.04); }
.team-card__name { font-size: 15px; font-weight: 700; margin-bottom: 2px; padding: 14px 16px 0; }
.team-card__role {
  font-size: 12px; color: var(--azure-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 0 16px 12px;
}
.team-card__bio { font-size: 14px; color: var(--text-muted); padding: 0 16px 14px; }
.team-card__linkedin {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  padding: 0 16px 16px;
  transition: color .2s;
  text-decoration: none;
}
.team-card__linkedin:hover { color: var(--azure-light); }
.team-card__linkedin svg { width: 14px; height: 14px; }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,120,212,.15) 0%, rgba(0,90,158,.08) 100%);
  border: 1px solid rgba(0,120,212,.25);
  border-radius: var(--radius-lg); padding: 48px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }
.cta-banner__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-muted);
}
.footer__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer__brand { max-width: 260px; }
.footer__brand .nav__brand { margin-bottom: 14px; }
.footer__brand p { font-size: 13px; line-height: 1.7; }
.footer__col h4 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer__col ul li a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer__bottom a { color: var(--text-muted); transition: color .2s; }
.footer__bottom a:hover { color: var(--text); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
  background-size: 28px 28px;
}
.page-hero__inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 560px; }

/* ---- Misc ---- */
.text-azure { color: var(--azure-light); }
.text-muted { color: var(--text-muted); }
.mt-48 { margin-top: 48px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: repeat(8, 32px); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__cta { display: none; }
  .hero__inner { padding: 48px 24px; }
  .hero__title { font-size: 32px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .cta-banner { padding: 32px 24px; }
}
