/* SMR Builders - Premium Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* HSL tailored color palette matching the SMR logo brand identity */
  --bg-primary: hsl(222, 25%, 6%);
  --bg-secondary: hsl(222, 20%, 9%);
  --bg-glass: rgba(13, 17, 23, 0.7);
  
  /* SMR Brand Royal Blue Theme */
  --accent-brand: hsl(214, 85%, 42%);
  --accent-brand-hover: hsl(214, 90%, 50%);
  --accent-brand-glow: rgba(15, 89, 182, 0.35);
  --accent-brand-dark: hsl(214, 75%, 32%);
  
  --text-primary: hsl(0, 0%, 95%);
  --text-muted: hsl(215, 16%, 70%);
  --border-brand: rgba(15, 89, 182, 0.25);
  --border-glass: rgba(255, 255, 255, 0.05);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-brand-glow: 0 0 30px rgba(15, 89, 182, 0.2);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Selection and scrollbar */
::selection {
  background: var(--accent-brand);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-brand-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-brand);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gold {
  color: var(--accent-brand); /* Replaced gold highlight with brand blue */
}

.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 12, 16, 0.9) 0%, rgba(11, 12, 16, 0.6) 100%);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--accent-brand);
  box-shadow: var(--shadow-premium), var(--shadow-brand-glow);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 17, 23, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
}

/* Logo Image Styling */
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 89, 182, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-brand);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-brand);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent-brand);
  color: var(--accent-brand);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: var(--accent-brand);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-brand-glow);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--accent-brand);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: rgba(15, 89, 182, 0.05);
  box-shadow: var(--shadow-brand-glow);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-content h1 span {
  display: block;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-brand);
  color: var(--text-primary);
  border: 1px solid var(--accent-brand);
}

.btn-primary:hover {
  background: var(--accent-brand-hover);
  border-color: var(--accent-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 89, 182, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Sections General */
section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  color: var(--accent-brand);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Portal Section */
.portals-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .portals-grid {
    grid-template-columns: 1fr;
  }
}

.primary-portal {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 450px;
}

.primary-portal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
  z-index: 1;
}

.primary-portal:hover .primary-portal-bg {
  transform: scale(1.03);
}

.primary-portal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.98) 15%, rgba(11, 12, 16, 0.7) 60%, rgba(11, 12, 16, 0.35) 100%);
  z-index: 2;
}

.primary-portal-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem;
}

.portal-tag {
  background: var(--accent-brand);
  color: var(--text-primary);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.primary-portal h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.primary-portal p {
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.portal-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-item i {
  color: var(--accent-brand);
  font-size: 1rem;
}

.secondary-portals {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mini-portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.mini-portal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-brand-dark);
  opacity: 0.5;
}

.mini-portal-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mini-portal-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mini-portal-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-narrative h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about-narrative p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: justify;
  font-size: 0.95rem;
}

.about-values {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-brand);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stats Section */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 4.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

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

.stat-item {
  padding: 1rem;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-brand);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.stat-item span {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-brand);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* Leadership Section */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.leader-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  padding: 2rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.leader-card:hover {
  border-color: var(--accent-brand);
  box-shadow: var(--shadow-premium), var(--shadow-brand-glow);
}

.leader-media {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-brand);
  aspect-ratio: 0.85;
}

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

.leader-details h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.leader-details .title {
  color: var(--accent-brand);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.leader-details p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.leader-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.leader-achievements li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.leader-achievements li i {
  color: var(--accent-brand);
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .leader-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .leader-media {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* Footer Section */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 0;
  text-align: center;
}

/* Footer Logo Container */
.footer-logo-container {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo-container .brand-logo {
  height: 55px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin-bottom: 1.75rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--accent-brand);
  border-color: var(--accent-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-glow);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-glass);
    z-index: 99;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-cta {
    display: none; /* Hide top header button on small mobile screens */
  }
}

/* CSS Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page animations on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
