/* ==========================================================================
   ONFO Digitalways - Corporate Modern Stylesheet
   Designed for cPanel / High-Performance Standalone Hosting
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
  --primary-color: #0b2545;
  --primary-light: #134074;
  --accent-color: #116dff;
  --accent-hover: #0b50c4;
  --accent-gold: #f5a623;
  --dark-bg: #071526;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-gray: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;
  --success: #10b981;
  --warning: #f59e0b;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-gutter: stable;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.brand-logo-text,
.project-title,
.page-header h1 {
  font-family: var(--font-heading);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.2s ease;
  transform: translateZ(0);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 200px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: 48px;
  min-width: 48px;
  object-fit: contain;
  display: block;
}

.brand-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-color);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-logo-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-block;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(17, 109, 255, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 109, 255, 0.45);
}

.btn-outline {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

.btn-dark:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(17, 109, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(17, 109, 255, 0.1);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(11, 37, 69, 0.25), 0 0 0 1px rgba(17, 109, 255, 0.1);
  background: #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(11, 37, 69, 0.35);
}

.hero-visual img {
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Section Common */
.section {
  padding: 90px 0;
}

.section-subtle {
  background-color: var(--bg-gray);
}

.section-dark {
  background-color: var(--dark-bg);
  color: #ffffff;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-dark .section-subtitle {
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #ffffff;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(17, 109, 255, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Projects Showcase Grid & Horizontal Scroll */
.projects-scroll-wrapper {
  position: relative;
  margin: 0 -12px;
  padding: 0 12px;
}

.projects-scroll-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 6px 36px;
  -webkit-overflow-scrolling: touch;
}

/* Custom Sleek Scrollbar */
.projects-scroll-track::-webkit-scrollbar {
  height: 8px;
}

.projects-scroll-track::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
}

.projects-scroll-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.projects-scroll-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.projects-scroll-track .project-card {
  flex: 0 0 360px;
  width: 360px;
  scroll-snap-align: start;
}

/* Carousel Control Arrows */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-color);
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.project-img-wrap {
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

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

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  background-color: rgba(11, 37, 69, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.project-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

.project-features-list {
  margin-bottom: 20px;
}

.project-features-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-features-list li span.check-icon {
  color: var(--success);
  font-weight: bold;
}

/* Page Header (Inner Pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #071a33 100%);
  color: #ffffff;
  padding: 70px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
}

/* Content Block */
.content-block {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.content-block h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-light);
  margin: 24px 0 12px;
}

.content-block p {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-block ul {
  margin: 16px 0 24px 20px;
  list-style: disc;
}

.content-block li {
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Two Column Layout */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.col-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Stats Counter */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-box {
  padding: 32px 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* Team Card */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 32px 24px;
  transition: var(--transition);
}

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

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid var(--bg-subtle);
  background-color: #e2e8f0;
}

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

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Forms */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(17, 109, 255, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* E-Book Showcase in Footer */
.ebook-footer-banner {
  background: linear-gradient(135deg, #0d2847 0%, #153e6b 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
  margin-bottom: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.ebook-footer-grid {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  align-items: center;
}

.ebook-cover-img {
  width: 100%;
  max-width: 160px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.ebook-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--accent-gold);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ebook-footer-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.ebook-footer-info p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.6;
}

.ebook-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Site Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: #cbd5e1;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(17, 109, 255, 0.18);
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-info-list a {
  color: var(--text-light);
}

.contact-info-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-light);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-light);
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Alert Notification */
.alert-box {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-cta-group {
    justify-content: center;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .ebook-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ebook-cover-img {
    margin: 0 auto;
  }

  .ebook-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--bg-subtle);
  }

  .nav-actions {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .features-grid,
  .projects-grid,
  .team-grid,
  .stats-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .form-card {
    padding: 28px 20px;
  }

  .projects-scroll-track .project-card {
    flex: 0 0 85vw;
    width: 85vw;
    max-width: 320px;
  }

  /* Featured Publication Mobile Optimization */
  .ebook-footer-banner {
    padding: 28px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    text-align: center;
  }

  .ebook-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    justify-items: center;
  }

  .ebook-cover-img {
    width: 140px;
    max-width: 140px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .ebook-badge {
    margin: 0 auto 10px auto;
    display: inline-block;
  }

  .ebook-footer-info h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .ebook-footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 6px;
  }

  .ebook-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
  }

  .ebook-actions .btn {
    width: auto;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .ebook-footer-banner {
    padding: 24px 16px;
  }

  .ebook-cover-img {
    width: 120px;
    max-width: 120px;
  }

  .ebook-footer-info h3 {
    font-size: 1.25rem;
  }

  .ebook-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ebook-actions .btn {
    width: 100%;
    min-width: unset;
  }
}

/* ==========================================================================
   Page-Specific Consolidated Styles
   ========================================================================== */

/* Vision Page */
.focus-sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.focus-sector-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.focus-sector-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.focus-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(17, 109, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.focus-sector-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.focus-sector-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}
.challenge-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-left: 6px solid #f59e0b;
  padding: 36px 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 60px;
}
@media (max-width: 992px) {
  .focus-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .focus-sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* Team Page */
.tech-stack-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tech-stack-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tech-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tag {
  background: var(--bg-subtle);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(19, 64, 116, 0.1);
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.sector-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.sector-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(17, 109, 255, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.quote-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #071a33 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-top: 50px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.quote-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(17, 109, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Impact Page */
.impact-grid-10 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.impact-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.impact-card-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.impact-emoji-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(17, 109, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.impact-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.impact-card-content p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}
@media (max-width: 850px) {
  .impact-grid-10 {
    grid-template-columns: 1fr;
  }
}

/* Projects Page */
.projects-filter-bar {
  background: var(--bg-gray);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.projects-filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.projects-filter-container .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .projects-filter-bar {
    padding: 12px 0;
  }

  .projects-filter-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px;
  }

  .projects-filter-container::-webkit-scrollbar {
    display: none;
  }
}

.project-detail-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-color);
}
.project-detail-section:last-of-type {
  border-bottom: none;
}
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.project-detail-grid.reversed {
  direction: rtl;
}
.project-detail-grid.reversed > * {
  direction: ltr;
}
.project-preview-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #ffffff;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.project-preview-frame:hover {
  transform: translateY(-4px);
}
.project-preview-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}
.feature-tag {
  padding: 6px 14px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}
@media (max-width: 900px) {
  .project-detail-grid,
  .project-detail-grid.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
  }
}

/* Careers Page */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.job-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
}
.job-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.job-info {
  width: 100%;
}
.job-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.35;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.job-desc {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.6;
}
.job-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
@media (max-width: 850px) {
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .job-card {
    padding: 24px 20px;
  }
}
