﻿/* style.css - Retro-Futurism Theme */
:root {
  --primary-color: #FFD166;
  --secondary-color: #00E5FF;
  --bg-color: #050505;
  --card-bg: rgba(10, 10, 15, 0.8);
  --text-color: #e0e0e0;
  --text-light: #a0a0a0;
  --white: #ffffff;
  --border-color: rgba(0, 229, 255, 0.3);
  --glow-yellow: 0 0 15px rgba(255, 209, 102, 0.5);
  --glow-cyan: 0 0 15px rgba(0, 229, 255, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Courier New', Courier, monospace, "Segoe UI", Roboto;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Retro Time Tunnel Background Grid */
body::before {
    content: '';
    position: fixed;
    bottom: -30%; left: -50%;
    width: 200vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(75deg);
    animation: gridMove 3s linear infinite;
    z-index: -2;
    pointer-events: none;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* Deep Space gradient */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(255,209,102,0.1), transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(0,229,255,0.1), transparent 50%);
    z-index: -3;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}
a:hover { color: var(--primary-color); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  background: rgba(5, 5, 5, 0.9);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--glow-cyan);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: var(--glow-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.main-nav a:hover {
  color: var(--primary-color);
  text-shadow: var(--glow-yellow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  box-shadow: var(--glow-yellow);
  border-radius: 4px; /* Hard mechanical edges */
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color) !important;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.8);
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: var(--glow-yellow);
  text-transform: uppercase;
}

.hero p {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
}

/* SVG Hero Graphic container injected via HTML */
.hero-svg-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}
.section[style*="background: var(--white);"] {
  background: transparent !important;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: var(--secondary-color);
  text-shadow: var(--glow-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Vertical Marquee (Time jumps) */
.vertical-data-marquee {
  position: fixed;
  right: 20px;
  top: 0;
  height: 100vh;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: bold;
  color: rgba(255, 209, 102, 0.15);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.vertical-data-marquee div {
  animation: scrollData 15s linear infinite;
  white-space: nowrap;
}
@keyframes scrollData {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Grid & Cards (Glassmorphism + Tech) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1) inset;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan), 0 0 30px rgba(0, 229, 255, 0.2) inset;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 10px var(--secondary-color));
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--white);
}

/* Pricing - 3D Carousel override */
#pricing .pricing-grid {
  display: flex !important;
  perspective: 1200px;
  justify-content: center;
  align-items: center;
  height: 550px;
  transform-style: preserve-3d;
  position: relative;
  gap: 0;
}

.price-card {
  background: rgba(5, 5, 10, 0.9);
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  text-align: center;
  position: absolute;
  width: 320px;
  /* Tech dashboard styling */
  background-image: 
    linear-gradient(rgba(0,229,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0,229,255,0.2);
  transition: transform 0.5s;
}

/* Mechanical Dashboard accoutrements */
.price-card::before {
  content: '[ SYS_ACTIVE ]';
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  color: var(--secondary-color);
}
.price-card::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 20px; height: 20px;
  border-right: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* 3D Positions */
.pricing-grid .price-card:nth-child(1) { transform: rotateY(0deg) translateZ(350px); }
.pricing-grid .price-card:nth-child(2) { transform: rotateY(120deg) translateZ(350px); }
.pricing-grid .price-card:nth-child(3) { transform: rotateY(240deg) translateZ(350px); }

/* Animation class applied via HTML */
.spin-carousel {
  animation: carouselSpin 20s infinite linear;
}
@keyframes carouselSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.price-card.popular {
  border-color: var(--primary-color);
  box-shadow: var(--glow-yellow), inset 0 0 20px rgba(255,209,102,0.2);
}
.price-card.popular::before {
  content: '[ OVERRIDE_ON ]';
  color: var(--primary-color);
}
.price-card.popular::after {
  border-color: var(--primary-color);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 5px 15px;
  font-weight: bold;
  border-radius: 2px;
  font-size: 14px;
  text-transform: uppercase;
}

.price {
  font-size: 40px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 0;
  text-shadow: var(--glow-yellow);
}

.price span {
  font-size: 16px;
  color: var(--text-light);
  text-shadow: none;
}

.features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.features li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
}

.features li::before {
  content: ">";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Testimonials Marquee */
.testimonials-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden;
  gap: 30px;
  padding: 20px 0;
}
.testimonials-grid .card {
  min-width: 350px;
  flex-shrink: 0;
  animation: marqueeHoriz 20s linear infinite;
}
@keyframes marqueeHoriz {
  from { transform: translateX(0); }
  to { transform: translateX(-150%); }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  padding: 20px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
  backdrop-filter: blur(5px);
}

.faq-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.faq-item p {
  color: var(--text-color);
}

/* Footer */
footer {
  background: rgba(0,0,0,0.8);
  color: #ccc;
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links a {
  color: var(--secondary-color);
  transition: color 0.3s;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-shadow: var(--glow-yellow);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}

/* Subpages Content */
.page-header {
  padding: 60px 0;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  color: var(--primary-color);
  text-shadow: var(--glow-yellow);
}

.content-box {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 60px;
  backdrop-filter: blur(10px);
}

.content-box h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  color: var(--secondary-color);
}

.content-box p, .content-box ul {
  margin-bottom: 15px;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { margin-bottom: 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: 1fr; }
  
  #pricing .pricing-grid { perspective: 800px; height: 450px; }
  .price-card { width: 280px; padding: 20px; }
  .pricing-grid .price-card:nth-child(1) { transform: rotateY(0deg) translateZ(250px); }
  .pricing-grid .price-card:nth-child(2) { transform: rotateY(120deg) translateZ(250px); }
  .pricing-grid .price-card:nth-child(3) { transform: rotateY(240deg) translateZ(250px); }
  
  .footer-links { flex-direction: column; align-items: center; gap: 20px; }
  .btn { display: block; width: 100%; padding: 15px 0; box-sizing: border-box; }
  .logo { font-size: 20px; }
  .nav-container { flex-direction: column; gap: 15px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 14px; }
}

/* --- SEO & Accessibility Fixes --- */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    padding: 15px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--primary-color);
    color: #000;
    z-index: 100000;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
}
:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px;
}
[id], section {
    scroll-margin-top: 80px;
}
details.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
details.faq-item summary {
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* Hide default arrow in some browsers */
    outline: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary:before {
    content: '►';
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s;
}
details[open].faq-item summary:before {
    transform: rotate(90deg);
}
details.faq-item p {
    margin-top: 15px;
    color: var(--text-light);
}

/* Pricing Table Semantic Styling */
.pricing-table-container {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 40px;
}
table.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px 0;
    min-width: 800px;
}
table.pricing-table caption {
    caption-side: top;
    text-align: center;
    font-size: 0;
    margin-bottom: 20px;
}
table.pricing-table th, table.pricing-table td {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    width: 33.333%;
}
table.pricing-table th {
    font-size: 20px;
    color: var(--white);
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    padding-top: 40px;
}
table.pricing-table td {
    color: var(--text-light);
    border-top: none;
    border-bottom: none;
}
table.pricing-table tfoot td {
    border-bottom: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-bottom: 30px;
}
table.pricing-table .popular, table.pricing-table th.popular {
    background: rgba(255, 209, 102, 0.05);
    border-color: var(--primary-color);
}
table.pricing-table th.popular .popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}
table.pricing-table .price {
    font-size: 40px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}
table.pricing-table .price span {
    font-size: 16px;
    color: var(--text-light);
}
