/* Custom styles for SB PROPER MIS System */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1E293B;
}

::-webkit-scrollbar-thumb {
  background: #1FA2A5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F5C84B;
}

/* Animated scroll ticker */
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* Glassmorphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hover lift effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Custom focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid #F5C84B;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .text-white\/60 {
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Custom wave animation */
@keyframes wave {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
}

.wave-animation {
  animation: wave 3s ease-in-out infinite;
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-optimized {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .mobile-touch {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Custom utilities */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-custom {
  backdrop-filter: blur(20px) saturate(180%);
}

/* Alert ticker styles */
.alert-ticker {
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.alert-ticker .animate-scroll {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(248, 250, 252, 0.8);
  white-space: nowrap;
}

.ticker-item i {
  font-size: 0.85rem;
  color: #34d399;
}

.ticker-divider {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.35);
}

.ticker-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ticker-item a:hover {
  color: #f5c84b;
  border-bottom-color: rgba(245, 200, 75, 0.45);
}

.ticker-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Device frame styles */
.device-frame {
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  border-radius: 2rem;
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.device-screen {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 300px;
}

/* Counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  color: #f8fafc;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(31, 162, 165, 0.35), transparent 40%),
              radial-gradient(circle at bottom left, rgba(245, 200, 75, 0.25), transparent 40%),
              #021029;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1528980917907-8dfc56f914ce?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 16, 41, 0.2) 0%, rgba(2, 16, 41, 0.85) 55%, rgba(2, 16, 41, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 6rem;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 2rem;
}

.hero-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #1fa2a5, #f5c84b);
  color: #021029;
  box-shadow: 0 20px 40px rgba(31, 162, 165, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 55px rgba(31, 162, 165, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(31, 162, 165, 0.4);
  color: #1fa2a5;
}

.btn-outline:hover {
  border-color: #1fa2a5;
  background: rgba(31, 162, 165, 0.12);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1fa2a5;
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover {
  color: #f5c84b;
}

.hero-play {
  margin: 2.5rem auto 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(241, 245, 249, 0.85);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-play:hover {
  transform: translateY(-2px);
}

.hero-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 200, 75, 0.3), rgba(31, 162, 165, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #f5c84b;
}

.wave-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  color: #f6fbff;
}

.about-section {
  background: #f6fbff;
  padding: 5rem 0 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1fa2a5;
  background: rgba(31, 162, 165, 0.12);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-family: 'Bebas Neue', cursive;
  color: #0b1220;
  margin: 1.5rem 0 1rem;
}

.about-text p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  padding: 2.25rem 2rem;
  border-radius: 28px;
  background: rgba(2, 16, 41, 0.85);
  color: #f8fafc;
  box-shadow: 0 18px 35px rgba(2, 16, 41, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: rgba(241, 245, 249, 0.6);
}

.stat-value {
  margin-top: 1rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #f5c84b;
}

.stat-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(120deg, #1fa2a5, #f5c84b);
  border-radius: 999px;
  margin: 1.5rem auto 0;
}

.services-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-family: 'Bebas Neue', cursive;
  color: #0b1220;
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  padding: 2.25rem 2rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(31, 162, 165, 0.12), rgba(245, 200, 75, 0.12));
  display: grid;
  place-items: center;
  color: #1fa2a5;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #0c152c;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #475569;
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  margin-top: 1.5rem;
  color: #1fa2a5;
  text-decoration: none;
}

.insight-section {
  padding: 4.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(2, 16, 41, 0.95), rgba(2, 32, 74, 0.92));
}

.insight-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.insight-card {
  padding: 2.25rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  box-shadow: 0 15px 40px rgba(2, 16, 41, 0.35);
}

.insight-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #f5c84b;
}

.insight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.insight-card p {
  color: rgba(248, 250, 252, 0.75);
  line-height: 1.6;
}

.insight-meta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 200, 75, 0.15);
  color: #f5c84b;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.why-section {
  padding: 5rem 0 4.5rem;
  background: #fff;
}

.why-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.why-header h2 {
  margin-top: 1rem;
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #0b1220;
}

.why-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0 1.5rem;
}

.why-card {
  padding: 2rem 1.8rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(31, 162, 165, 0.12);
  color: #1fa2a5;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  margin-bottom: 0.6rem;
  color: #0b1220;
}

.why-card p {
  color: #475569;
  line-height: 1.6;
}

.gallery-section {
  background: linear-gradient(180deg, #03122b 0%, #052347 60%, #083869 100%);
  padding: 4.5rem 1.5rem;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid figure {
  position: relative;
  border-radius: 26px;
  min-height: 220px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px rgba(2, 16, 41, 0.5);
}

.gallery-grid figcaption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #f8fafc;
  font-weight: 600;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.blog-section {
  padding: 5rem 0;
  background: #ffffff;
}

.blog-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.blog-header h2 {
  margin-top: 1rem;
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 0 1.5rem;
}

.blog-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.blog-image {
  padding-top: 62%;
  background-size: cover;
  background-position: center;
}

.blog-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1fa2a5;
}

.blog-body h3 {
  font-size: 1.2rem;
  color: #0b1220;
}

.blog-body p {
  color: #475569;
  line-height: 1.6;
}

.blog-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1fa2a5;
  font-weight: 600;
  text-decoration: none;
}

.cta-section {
  padding: 4.5rem 1.5rem 5rem;
  background: linear-gradient(135deg, rgba(2, 32, 74, 1), rgba(3, 55, 108, 1));
}

.cta-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 20px 45px rgba(2, 16, 41, 0.45);
}

.cta-content h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  color: #fff;
  margin: 1rem 0;
}

.cta-content p {
  color: rgba(241, 245, 249, 0.78);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 2.4rem;
  }
  .hero-actions {
    width: 100%;
  }
}

