/* ==========================================================================
   AAMIR ATA BARRY - OFFICIAL CHAMBER BOARD WEBSITE
   Design System & Styling Rules
   ========================================================================== */

/* --- Typography Imports & Root Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --navy-dark: #0A192F;
  --navy-slate: #112240;
  --navy-light: #1E3A8A;
  --emerald-green: #186752;
  --emerald-hover: #095943;
  --gold-accent: #e75423;
  --gold-hover: #c65e0f;
  --crimson-red: #C82333;
  --crimson-hover: #A71D2A;
  --gray-bg: #F8FAFC;
  --card-bg-light: #FFFFFF;
  --card-border: rgba(226, 232, 240, 0.8);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(13, 122, 93, 0.25);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

/* --- Global Resets & Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-green);
}

/* --- Top Announcement Bar --- */
.top-announcement-bar {
  background: linear-gradient(90deg, var(--navy-dark) 0%, var(--emerald-green) 50%, var(--navy-dark) 100%);
  color: #FFFFFF;
  font-size: 0.875rem;
  padding: 8px 0;
  font-weight: 500;
}

.top-announcement-bar .badge-victory {
  background-color: var(--gold-accent);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* --- Navbar Styling --- */
.navbar-custom {
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.navbar-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #FFFFFF !important;
}

.navbar-brand-subtitle {
  font-size: 0.72rem;
  color: var(--gold-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF !important;
  background-color: rgba(13, 122, 93, 0.25);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 93, 0.4);
}

/* --- Buttons --- */
.btn-emerald {
  background-color: var(--emerald-green);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 26px;
  border: none;
  box-shadow: 0 4px 14px rgba(13, 122, 93, 0.35);
  transition: all 0.3s ease;
}

.btn-emerald:hover {
  background-color: var(--emerald-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 122, 93, 0.45);
}

.btn-gold {
  background-color: var(--gold-accent);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 26px;
  border: none;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline-custom {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- Section Title Formatting --- */
.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: rgba(13, 122, 93, 0.1);
  color: var(--emerald-green);
  margin-bottom: 12px;
  border: 1px solid rgba(13, 122, 93, 0.2);
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-color: var(--navy-dark);
  color: #FFFFFF;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0 80px;
}

.hero-video-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.2) contrast(1.1);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(13, 122, 93, 0.35) 0%, rgba(10, 25, 47, 0.95) 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-accent);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 16px;
}

@media (min-width: 992px) {
  .hero-headline {
    font-size: 4.2rem;
  }
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 620px;
  line-height: 1.7;
}

.hero-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-portrait-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

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

.hero-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
}

/* --- Alliance Section --- */
.alliance-section {
  background-color: #F8FAFC;
  padding: 70px 0;
  border-bottom: 1px solid var(--card-border);
}

.alliance-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.alliance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-green);
}

.alliance-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 122, 93, 0.08);
  color: var(--emerald-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.alliance-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-dark);
}

.alliance-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- About Section --- */
.about-section {
  padding: 100px 0;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.stat-box {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--card-border);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: #FFFFFF;
  border-color: var(--emerald-green);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emerald-green);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Vision Section --- */
.vision-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-slate) 100%);
  color: #FFFFFF;
  padding: 100px 0;
}

.vision-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.vision-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold-accent);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.vision-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-accent);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.vision-card-title {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.vision-card-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Priorities Section --- */
.priorities-section {
  padding: 100px 0;
  background-color: #FFFFFF;
}

.priority-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.priority-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--emerald-green);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.priority-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 122, 93, 0.3);
}

.priority-card:hover::before {
  opacity: 1;
  width: 6px;
}

.priority-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(13, 122, 93, 0.08);
  color: var(--emerald-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* --- Downloads Section --- */
.downloads-section {
  background-color: var(--gray-bg);
  padding: 100px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin: 4px;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

.download-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-green);
}

.file-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(200, 35, 51, 0.1);
  color: var(--crimson-red);
}

/* --- News / Updates Section --- */
.updates-section {
  padding: 100px 0;
}

.news-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.news-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 25, 47, 0.88);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.news-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Ask Aamir AI Chatbot Section & Widget --- */
.ai-section {
  background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
  color: #FFFFFF;
  padding: 100px 0;
}

.chat-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.chat-header {
  background: rgba(10, 25, 47, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  object-fit: cover;
}

.chat-box {
  height: 380px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 82%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg-bot {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  background: var(--emerald-green);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-prompts-wrapper {
  padding: 12px 20px;
  background: rgba(10, 25, 47, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.prompt-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-pill:hover {
  background: var(--gold-accent);
  color: var(--navy-dark);
  border-color: var(--gold-accent);
  font-weight: 600;
}

.chat-input-wrapper {
  padding: 16px 20px;
  background: rgba(10, 25, 47, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-accent);
  color: #FFFFFF;
  box-shadow: none;
}

/* Floating AI Chat Widget Trigger */
.floating-chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-green) 0%, var(--navy-dark) 100%);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(13, 122, 93, 0.5);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-accent);
}

.floating-chat-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(13, 122, 93, 0.7);

}

.floating-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-accent);
  opacity: 0.6;
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* --- Contact Section --- */
.contact-section {
  padding: 100px 0;
  background-color: #FFFFFF;
}

.contact-info-card {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow-lg);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer-custom {
  background-color: #060E1A;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-accent);
  padding-left: 4px;
}

/* --- Anti-Bot Drag Slider --- */
.slide-captcha-container {
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slide-captcha-track {
  position: relative;
  height: 52px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.slide-captcha-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease, color 0.3s ease;
}

.slide-captcha-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-green) 0%, #20C997 100%);
  border-radius: var(--radius-pill);
  z-index: 1;
}

.slide-captcha-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-size: 1.1rem;
  cursor: grab;
  z-index: 3;
  transition: background-color 0.3s ease;
}

.slide-captcha-thumb:active {
  cursor: grabbing;
}

.slide-captcha-track.unlocked {
  background: rgba(24, 103, 82, 0.12);
  border-color: var(--emerald-green);
}

.slide-captcha-track.unlocked .slide-captcha-text {
  color: var(--emerald-green);
  font-weight: 700;
}

.slide-captcha-track.unlocked .slide-captcha-thumb {
  background: var(--emerald-green);
  color: #FFFFFF;
  cursor: default;
}