/* ==========================================================================
   SKoM Systems - Premium CSS Design System
   ========================================================================== */

/* --- Custom Properties & Tokens --- */
:root {
  --bg-primary: #070913;
  --bg-secondary: #0f1322;
  --bg-card: #151b30;
  --bg-card-hover: #1e2644;

  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;

  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.15);

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 240, 255, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    40px 40px,
    40px 40px;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* --- Utility Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Badges & CTA Buttons --- */
.hero-badge,
.section-tag,
.support-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.07);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  border: 1px solid rgba(21, 89, 174, 0.15);
  margin-bottom: 20px;
}

.cta-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  border: none;
}

.primary-cta {
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-blue) 100%
  );
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(21, 89, 174, 0.25);
}

.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(21, 89, 174, 0.45);
  filter: brightness(1.1);
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  margin-left: 16px;
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* --- Main Header / Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(7, 9, 19, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

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

.logo-img {
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-sub {
  color: var(--accent-cyan);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-cta {
  padding: 10px 20px;
  background: rgba(0, 240, 255, 0.05);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.nav-cta:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(21, 89, 174, 0.3);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(
    135deg,
    var(--text-primary) 50%,
    var(--text-muted) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-actions {
  display: flex;
  align-items: center;
}

/* --- Isometric Graphic wrapper & details --- */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.isometric-wrapper {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 800 / 650;
}

/* --- Isometric SVG Animation Classes --- */
.isometric-svg {
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.4));
}

/* Floating animation for isometric nodes */
@keyframes float {
  0% {
    transform: translate(0, 0px);
  }
  50% {
    transform: translate(0, -8px);
  }
  100% {
    transform: translate(0, 0px);
  }
}

.float-animation {
  animation: float 5s ease-in-out infinite;
}

.float-animation.delay-1 {
  animation-delay: 1.5s;
}

.float-animation.delay-2 {
  animation-delay: 3s;
}

/* Data streaming animation along connection paths */
.data-stream {
  stroke-dasharray: 10 15;
  animation: stream 25s linear infinite;
}

@keyframes stream {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Interactive SVG hover highlights */
.iso-node {
  cursor: pointer;
  transition: var(--transition-bounce);
}

.iso-node:hover {
  filter: brightness(1.2);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-description {
  font-size: 17px;
  color: var(--text-muted);
}

/* --- Why SKoM Systems Cards --- */
.why-section {
  padding: 100px 0;
  background: rgba(15, 19, 34, 0.3);
  position: relative;
}

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

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 240, 255, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition-smooth);
}

.why-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: var(--transition-bounce);
}

.why-card-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.why-card-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(21, 89, 174, 0.3);
  box-shadow: 0 12px 30px rgba(21, 89, 174, 0.05);
}

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

.why-card:hover .why-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-cyan);
  color: #000;
}

/* --- Services Grid --- */
.services-section {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-bounce);
}

.service-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.04);
}

.service-card:hover .service-icon {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: scale(1.05);
}

/* --- SHIELD Framework Scroll Section --- */
.framework-section {
  padding: 120px 0;
  background: rgba(15, 19, 34, 0.2);
  position: relative;
}

.framework-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.framework-sticky {
  position: sticky;
  top: 140px;
  height: fit-content;
}

.framework-main-title {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 40px;
}

.shield-display {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.shield-letter {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  transition: var(--transition-bounce);
  user-select: none;
  cursor: default;
}

.shield-letter.active {
  color: var(--accent-cyan);
  text-shadow:
    0 0 30px rgba(21, 89, 174, 0.8),
    0 0 60px rgba(21, 89, 174, 0.4);
  transform: scale(1.1) translateY(-5px);
}

.framework-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-bottom: 200px;
}

.framework-step-card {
  background: rgba(21, 27, 48, 0.4);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
}

.step-num {
  position: absolute;
  top: -24px;
  right: 40px;
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 900;
  color: rgba(21, 89, 174, 1);
  line-height: 1;
  transition: var(--transition-smooth);
}

.step-title {
  font-size: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.framework-step-card.active {
  border-color: rgba(21, 89, 174, 0.35);
  background: rgba(21, 27, 48, 0.85);
  box-shadow: 0 10px 40px rgba(21, 89, 174, 0.03);
}

.framework-step-card.active .step-num {
  color: rgba(21, 89, 174, 0.05);
}

.step-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* --- Timeline Section --- */
.timeline-section {
  padding: 100px 0;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 40px 0;
}

.timeline-track {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--border-color) 0%,
    var(--accent-cyan) 50%,
    var(--accent-purple) 100%
  );
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: 20px;
  top: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  z-index: 2;
  transition: var(--transition-bounce);
}

.timeline-content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 30px;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.timeline-item-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-item-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Active Timeline Items on scroll */
.timeline-item.active .timeline-badge {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: scale(1.1);
}

.timeline-item.active .timeline-content-box {
  border-color: rgba(21, 89, 174, 0.25);
  background: var(--bg-card-hover);
}

/* --- Technologies Logos --- */
.tech-section {
  padding: 80px 0;
  background: rgba(15, 19, 34, 0.15);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}

.logo-item {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  opacity: 0.4;
  filter: grayscale(100%);
}

.tech-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.12);
}

/* --- Support/CTA Section (Blue Background Container) --- */
.support-section {
  padding: 100px 0;
}

.support-box {
  background: linear-gradient(135deg, #0f1c3f 0%, #060b1b 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.support-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.support-title {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 20px;
}

.support-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.support-cta-btn {
  background: #00e676;
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25);
  padding: 15px 32px;
}

.support-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.45);
  background: #00ff80;
}

/* --- Main Footer --- */
.main-footer {
  background: #04060d;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

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

.footer-brand .brand-slogan {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 20px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-logo {
  display: inline-flex;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

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

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

.contact-item {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item svg {
  color: var(--accent-cyan);
}

.contact-item:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .framework-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .framework-sticky {
    position: relative;
    top: 0;
    text-align: center;
  }

  .shield-display {
    justify-content: center;
    margin-bottom: 20px;
  }

  .framework-scroll-content {
    gap: 60px;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Mobile menu handles this */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 24px;
    gap: 20px;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }

  .secondary-cta {
    margin-left: 0;
  }

  .timeline-track {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-badge {
    left: 0;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

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