/* ==========================================
   DESIGN SYSTEM VARIABLES & TOKENS
   ========================================== */
:root {
  --bg-dark: #080a10;
  --bg-secondary: rgba(15, 22, 36, 0.45);
  
  /* High-tech glow and accent colors */
  --primary-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(99, 102, 241, 0.35);
  
  --font-ndot: 'NDOT', sans-serif;
  --font-hud: 'Share Tech Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  
  --border-radius-lg: 12px;
  --border-radius-sm: 4px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.12);
}

/* ==========================================
   NDOT EMBEDDED CUSTOM FONT
   ========================================== */
@font-face {
  font-family: 'NDOT';
  src: url('./ndot font/ndot-47-inspired-by-nothing.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ==========================================
   CORE RESET & BASE STYLING
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas Position */
#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Sci-fi Overlay Scanlines */
.hud-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(18, 24, 38, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 100% 4px, 40px 40px, 40px 40px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.page-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

/* ==========================================
   HEADER SECTION
   ========================================== */
.site-header {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.header-logo {
  font-family: var(--font-ndot);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.logo-accent {
  color: var(--primary-indigo);
  text-shadow: 0 0 12px var(--primary-indigo);
  animation: pulseLogo 3s infinite ease-in-out;
}

.sys-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: blinkStatus 1.8s infinite ease-in-out;
}

/* ==========================================
   HERO / MAIN CONTENT
   ========================================== */
.hero-section {
  text-align: center;
  padding: 5.5rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-ndot);
  font-size: 5.5rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, #ffffff 60%, rgba(255, 255, 255, 0.45));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--primary-indigo);
  margin-bottom: 1.75rem;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================
   PRODUCTS GRID & MODULAR CARDS
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 4rem;
  width: 100%;
}

.product-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Glass card hover effect */
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.product-card:hover .card-glow {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.card-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.card-tag {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.card-title {
  font-family: var(--font-ndot);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-transform: lowercase;
  transition: var(--transition-smooth);
}

.product-card:hover .card-title {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-action {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.product-card:hover .card-action {
  color: var(--accent-cyan);
}

.arrow {
  transition: transform 0.3s ease;
}

.product-card:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.site-footer {
  width: 100%;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-hud);
  font-size: 0.68rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: var(--transition-smooth);
}

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

.link-separator {
  color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes blinkStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.95); }
}

@keyframes pulseLogo {
  0%, 100% { filter: drop-shadow(0 0 4px var(--primary-indigo)); }
  50% { filter: drop-shadow(0 0 12px var(--primary-indigo)); }
}

/* ==========================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================== */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .site-header, .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-section {
    padding: 3.5rem 0 2rem;
  }
}

/* ==========================================
   HEADER NAVIGATION ADDITIONS
   ========================================== */
a.header-logo {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
}

a.header-logo:hover {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-indigo);
  box-shadow: 0 0 8px var(--primary-indigo);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
  }
  .sys-status {
    order: 2;
  }
}

/* ==========================================
   MINIMALISTIC SVG ICONS & UNDER CONSTRUCTION STYLES
   ========================================== */
.card-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--primary-indigo);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.product-card:hover .card-icon-svg {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
  transform: scale(1.05);
}

@keyframes stripeSlide {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.product-card.under-construction {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.04);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(99, 102, 241, 0.04) 10px,
    rgba(99, 102, 241, 0.04) 20px
  ), var(--bg-secondary);
  background-size: 40px 40px;
  animation: stripeSlide 2.5s linear infinite;
  pointer-events: auto; /* Required for not-allowed cursor to trigger */
}

.product-card.under-construction:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  box-shadow: var(--shadow-card) !important;
}

.product-card.under-construction .card-tag {
  color: var(--text-muted);
  opacity: 0.7;
}

.product-card.under-construction .card-title {
  color: var(--text-muted);
  text-shadow: none !important;
}

.product-card.under-construction .card-desc {
  color: rgba(148, 163, 184, 0.55);
}

.product-card.under-construction .card-action {
  color: var(--text-muted);
  opacity: 0.6;
}

.product-card.under-construction .card-icon-svg {
  color: var(--text-muted);
  opacity: 0.5;
  filter: none !important;
}

/* ==========================================
   APP SUGGESTION SECTION
   ========================================== */
.suggestion-section {
  padding: 3rem 0 5rem;
  width: 100%;
}

.suggestion-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  border-color: rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.suggestion-container:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.05), var(--shadow-card);
}

.suggestion-title {
  font-family: var(--font-ndot);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-transform: lowercase;
}

.suggestion-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.suggestion-form textarea {
  width: 100%;
  min-height: 105px;
  background: rgba(8, 10, 16, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
}

.suggestion-form textarea:focus {
  border-color: var(--primary-indigo);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.btn-submit {
  align-self: flex-end;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.btn-submit:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-2px);
}

.btn-submit:hover .arrow {
  transform: translateX(4px);
}

.success-message {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  letter-spacing: 0.05em;
  animation: pulseGreen 2.2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { border-color: rgba(16, 185, 129, 0.25); box-shadow: 0 0 0px rgba(16, 185, 129, 0); }
  50% { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }
}

/* ==========================================
   PHILOSOPHY & SERVICES PAGE STYLES
   ========================================== */
.services-hero {
  text-align: center;
  padding: 5.5rem 0 3.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 5rem;
  width: 100%;
}

.philosophy-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.philosophy-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.philosophy-title {
  font-family: var(--font-ndot);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: lowercase;
  transition: var(--transition-smooth);
}

.philosophy-card:hover .philosophy-title {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.20);
}

.philosophy-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 992px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CONTACT US PAGE STYLES
   ========================================== */
.contact-section {
  padding: 5rem 0;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.contact-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  border-color: rgba(99, 102, 241, 0.15);
  transition: var(--transition-smooth);
}

.contact-container:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.05), var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control {
  background: rgba(8, 10, 16, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

select.form-control {
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

select.form-control option {
  background-color: #080a10;
  color: var(--text-primary);
}

.btn-contact {
  align-self: flex-start;
  margin-top: 0.5rem;
}

