/* ==========================================================================
   Cyber Sinon v2.1 - Core Stylesheet & Design System
   Palette: Deep Navy (#0A1128), Cyan (#00E5FF), Violet (#6C5CE7)
   ========================================================================== */

/* 1. Reset & Global Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--cs-font-body, 'Inter', system-ui, sans-serif);
  background-color: var(--cs-primary, #0A1128);
  color: var(--cs-surface-white, #FFFFFF);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cs-font-heading, 'Orbitron', 'Space Grotesk', sans-serif);
  color: var(--cs-surface-white, #FFFFFF);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: #E2E8F0;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cs-secondary, #00E5FF);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover, a:focus {
  color: var(--cs-accent, #6C5CE7);
}

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

/* 3. Container & Layout Grid */
.cs-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.cs-section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.cs-section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

.cs-section-heading {
  margin: 0;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.cs-section-subheading {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #94A3B8;
  max-width: 600px;
}

/* Badges */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--cs-font-heading, monospace);
  line-height: 1;
}

.cs-badge-cyan {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00E5FF;
}

.cs-badge-violet {
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.4);
  color: #A29BFE;
}

.cs-badge-mode {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.cs-badge-dark {
  background: rgba(10, 17, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
}

/* 4. Glassmorphism Card Effects */
.cs-glass-card {
  background: rgba(14, 26, 56, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--cs-radius, 8px);
  padding: 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cs-glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--cs-secondary, #00E5FF);
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.12), 0 0 20px rgba(108, 92, 231, 0.15);
}

/* 5. Buttons */
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--cs-font-heading, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--cs-radius, 8px);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

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

.cs-btn-block {
  width: 100%;
}

.cs-btn-glow {
  background: var(--cs-secondary, #00E5FF);
  color: #0A1128 !important;
  border-color: var(--cs-secondary, #00E5FF);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
}

.cs-btn-glow:hover {
  background: #33ebff;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.7);
}

.cs-btn-outline {
  background: transparent;
  color: #FFFFFF !important;
  border-color: rgba(0, 229, 255, 0.4);
}

.cs-btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00E5FF;
  color: #00E5FF !important;
  transform: translateY(-2px);
}

/* 6. Pulse Play Button */
@keyframes cs-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(0, 229, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.cs-play-pulse-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cs-secondary, #00E5FF);
  color: #0A1128;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: cs-pulse 2s infinite;
  border: none;
  transition: all 0.25s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.cs-play-pulse-btn:hover {
  background: #FFFFFF;
  color: var(--cs-accent, #6C5CE7);
}

/* 7. Section 1: Hero Styles */
.cs-hero-section {
  padding-top: clamp(60px, 10vw, 120px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.cs-hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cs-hero-title {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
}

.cs-hero-subtitle-line {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.1em;
}

.cs-hero-main-line {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: #FFFFFF;
}

.cs-hero-brand-line {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  background: linear-gradient(135deg, #00E5FF 0%, #6C5CE7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cs-hero-description {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 540px;
  margin-bottom: 32px;
}

.cs-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cs-hero-partner-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94A3B8;
  font-family: monospace;
}

.cs-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
}

/* Terminal Card */
.cs-terminal-card {
  padding: 0 !important;
  background: rgba(10, 17, 40, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.cs-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0E1A38;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.cs-term-dots {
  display: flex;
  gap: 6px;
}

.cs-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cs-dot-red { background: #EF4444; }
.cs-dot-yellow { background: #F59E0B; }
.cs-dot-green { background: #10B981; }

.cs-term-title {
  font-size: 12px;
  color: #94A3B8;
  font-family: monospace;
}

.cs-term-status {
  font-size: 10px;
  font-weight: 700;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.cs-terminal-body {
  padding: 24px;
}

.cs-terminal-code {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #CBD5E1;
  margin: 0 0 24px;
  white-space: pre-wrap;
}

.cs-term-green { color: #10B981; }
.cs-term-cyan { color: #00E5FF; }

.cs-terminal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-metric-item {
  text-align: center;
}

.cs-metric-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #00E5FF;
  font-family: var(--cs-font-heading, sans-serif);
}

.cs-metric-lbl {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* 8. Highlights Video Section */
.cs-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-video-card {
  padding: 0 !important;
}

.cs-video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0E1A38;
  overflow: hidden;
}

.cs-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 16px;
  position: relative;
  background: linear-gradient(135deg, #0E1A38 0%, #15244C 100%);
}

.cs-cyber-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cs-video-info {
  padding: 20px;
}

.cs-video-meta {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-bottom: 8px;
}

.cs-video-cat {
  color: #00E5FF;
  font-weight: 600;
}

.cs-video-title {
  font-size: 1.1rem;
  margin: 0;
  color: #FFFFFF;
}

/* 9. Events Grid Section */
.cs-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-event-card {
  display: flex;
  flex-direction: column;
}

.cs-event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cs-event-date-pill {
  font-size: 0.8rem;
  color: #94A3B8;
  font-family: monospace;
}

.cs-event-card-title {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.cs-event-card-title a {
  color: #FFFFFF;
}

.cs-event-card-title a:hover {
  color: #00E5FF;
}

.cs-event-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.cs-event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-event-meta-item svg {
  color: #00E5FF;
  flex-shrink: 0;
}

.cs-event-card-footer {
  margin-top: auto;
}

/* 10. About Us Split Section */
.cs-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cs-grid-reverse {
  direction: rtl;
}

.cs-grid-reverse > * {
  direction: ltr;
}

.cs-video-featured-card {
  padding: 0 !important;
}

.cs-video-featured-inner {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0A1128 0%, #15244C 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.cs-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: monospace;
  width: fit-content;
}

.cs-video-card-overlay-text {
  margin-top: auto;
  z-index: 2;
}

.cs-video-card-overlay-text h3 {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.cs-video-card-overlay-text p {
  font-size: 0.85rem;
  color: #94A3B8;
  margin: 0;
}

.cs-about-body-text {
  margin-top: 16px;
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.cs-pillars-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.cs-pillar-item {
  display: flex;
  gap: 12px;
}

.cs-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00E5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-pillar-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cs-pillar-item p {
  font-size: 0.8rem;
  color: #94A3B8;
  margin: 0;
}

/* 11. Moments Gallery */
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-gallery-item {
  padding: 0 !important;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.cs-gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cs-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cs-gallery-item:hover .cs-gallery-img {
  transform: scale(1.08);
}

.cs-gallery-placeholder {
  width: 100%;
  height: 100%;
  background: #0E1A38;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 17, 40, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.cs-gallery-zoom-icon {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  color: #00E5FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-gallery-item-title {
  font-size: 1rem;
  margin: 0 0 4px;
  color: #FFFFFF;
}

.cs-gallery-item-caption {
  font-size: 0.8rem;
  color: #94A3B8;
  margin: 0;
}

/* 12. Latest News */
.cs-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-news-card {
  display: flex;
  flex-direction: column;
}

.cs-news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cs-news-date {
  font-size: 0.8rem;
  color: #94A3B8;
  font-family: monospace;
}

.cs-news-card-title {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.cs-news-card-title a {
  color: #FFFFFF;
}

.cs-news-card-title a:hover {
  color: #00E5FF;
}

.cs-news-card-excerpt {
  font-size: 0.9rem;
  color: #CBD5E1;
  margin-bottom: 20px;
}

.cs-news-card-footer {
  margin-top: auto;
}

.cs-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00E5FF;
  text-transform: uppercase;
}

.cs-link-arrow:hover {
  color: #6C5CE7;
  transform: translateX(4px);
}

/* 13. Leadership Team */
.cs-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cs-team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-team-avatar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 2px solid rgba(0, 229, 255, 0.4);
  padding: 3px;
  background: rgba(0, 229, 255, 0.05);
  overflow: hidden;
}

.cs-team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cs-team-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #0E1A38;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cs-team-name {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.cs-team-designation {
  font-size: 0.8rem;
  color: #00E5FF;
  font-weight: 600;
  margin-bottom: 10px;
}

.cs-team-bio {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.cs-team-socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.cs-team-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
}

.cs-team-socials a:hover {
  background: rgba(0, 229, 255, 0.2);
  color: #00E5FF;
}

/* 14. Partners Grid */
.cs-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cs-partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  text-align: center;
  padding: 20px !important;
}

.cs-partner-logo-img {
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.3s ease;
}

.cs-partner-card:hover .cs-partner-logo-img {
  filter: grayscale(0) brightness(1);
}

.cs-partner-text-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-partner-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cs-partner-tier {
  font-size: 0.75rem;
  color: #00E5FF;
  font-family: monospace;
}

/* 15. Video Lightbox & Image Lightbox Modals */
.cs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cs-modal-backdrop.is-open {
  display: flex;
}

.cs-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0A1128;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.3);
  overflow: hidden;
}

.cs-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.cs-modal-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
}

.cs-modal-video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.cs-modal-video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cs-modal-lightbox-img-wrap {
  text-align: center;
  padding: 10px;
}

.cs-modal-lightbox-img-wrap img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 6px;
}

.cs-modal-lightbox-caption {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #E2E8F0;
  text-align: center;
  background: #0E1A38;
}

/* 16. Responsive Media Queries */
@media (max-width: 1024px) {
  .cs-hero-grid,
  .cs-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-video-grid,
  .cs-events-grid,
  .cs-gallery-grid,
  .cs-news-grid {
    grid-template-columns: 1fr;
  }
  .cs-team-grid,
  .cs-partners-grid {
    grid-template-columns: 1fr;
  }
  .cs-section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
