/* Modern Design System for Apsis Solutions */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --color-primary: #1E40AF;
  --color-primary-dark: #1E3A8A;
  --color-primary-light: #3B82F6;
  --color-accent: #06B6D4;
  --color-accent-hover: #0891B2;
  --color-accent-light: #CFFAFE;
  
  --color-dark: #0F172A;
  --color-dark-surface: #1E293B;
  --color-slate: #334155;
  --color-slate-muted: #64748B;
  --color-light: #F8FAFC;
  --color-white: #FFFFFF;

  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;

  --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #06B6D4 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --gradient-glow: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  --gradient-hero: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--color-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul {
  list-style: none;
}

/* Top Announcement / Info Bar */
.top-bar {
  background: var(--color-dark);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-top-login {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: var(--color-white) !important;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-top-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-dark);
}

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

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.logo-wrapper:hover img {
  transform: scale(1.03);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background: rgba(30, 64, 175, 0.06);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-slate);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-light);
  color: var(--color-primary);
  padding-left: 22px;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white) !important;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
  padding: 6px;
}

/* Hero Section / Slider */
.hero-wrapper {
  position: relative;
  background: var(--gradient-dark);
  color: var(--color-white);
  padding: 40px 0 60px 0;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-slider-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090D16;
}

.hero-slides {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.7) contrast(1.1);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-white);
}

.hero-title span {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94A3B8;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--color-accent);
}

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

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-dark .section-title {
  color: var(--color-white);
}

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

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.domain-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 64, 175, 0.2);
}

.domain-card:hover::before {
  opacity: 1;
}

.domain-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(30, 64, 175, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.domain-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.domain-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.domain-text {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 12px;
  color: var(--color-accent);
}

/* Feature/Product Showcase Cards */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.product-img-box {
  height: 190px;
  overflow: hidden;
  position: relative;
  background: #E2E8F0;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

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

.product-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--color-slate-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Main Body Layout (Content + Sidebar Widget) */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-top: 40px;
}

.content-area {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Sidebar & News Feed Widget */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  overflow: hidden;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-accent-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title svg {
  color: var(--color-accent);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-list::-webkit-scrollbar {
  width: 4px;
}
.news-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.news-item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-light);
  border-left: 3px solid var(--color-primary);
  transition: all var(--transition-fast);
}

.news-item:hover {
  background: #EFF6FF;
  transform: translateX(4px);
}

.news-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}

.news-text {
  font-size: 0.86rem;
  color: var(--color-dark);
  line-height: 1.45;
}

/* Stat Banner */
.stats-banner {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 50px 0;
  border-radius: var(--radius-xl);
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}

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

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

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Page Sub-Hero / Breadcrumb Header */
.page-hero {
  background: var(--gradient-dark);
  color: var(--color-white);
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94A3B8;
}

.breadcrumb a {
  color: #CBD5E1;
}

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

/* Styled Content Tables */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.styled-table thead tr {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
}

.styled-table th, .styled-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: var(--color-light);
}

.styled-table tbody tr:hover {
  background-color: #F1F5F9;
}

/* Modern Footer */
.main-footer {
  background: var(--color-dark);
  color: #94A3B8;
  padding: 70px 0 0 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  line-height: 1.65;
  color: #94A3B8;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  transition: all var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: #94A3B8;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748B;
}

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

.footer-bottom-links a {
  color: #64748B;
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }
  .nav-item.open .dropdown-menu {
    display: block;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-slide-content {
    padding: 30px 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
