/* 
  NEBULA GLASS DESIGN SYSTEM v3.0
  A high-fidelity, ultra-modern glassmorphism design system.
*/

:root {
  /* Clean Color Palette */
  --accent-primary: #00f2ff;       /* Neon Cyan */
  
  /* Glass Morphology */
  --glass-surface: rgba(10, 10, 15, 0.5);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 30px;
  --glass-glow: 0 0 20px rgba(0, 242, 255, 0.2);
  
  /* Spacing & Radii */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 99px;
  
  /* Text & BG */
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --bg-dark: #0a0a0f;
  
  /* Fluid Scaling Helpers */
  --container-max: 1400px;
  --nav-height: clamp(60px, 8vh, 80px);
}

/* --- Foundation & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

/* --- Background Gradient --- */
body::before {
  content: "";
  position: fixed;
  top: -20%; 
  left: -20%; 
  width: 140%; 
  height: 140%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.25;
  background: radial-gradient(circle at 30% 30%, var(--accent-primary), transparent 50%);
  filter: blur(100px);
}

/* --- Global Layout Containers --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  width: 100%;
}

main {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

/* --- Premium Navigation --- */
nav {
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.logo {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
  background: linear-gradient(to right, #fff, var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s;
}

.logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a {
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* --- Glass UI Primitives --- */
.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  margin-bottom: clamp(3rem, 15vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Data Displays (Tables & Cards) --- */
.table-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  background: var(--glass-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th {
  padding: 1.5rem 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* --- Interactive Elements --- */
.badge {
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 255, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 242, 255, 0.25);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
}

.buy-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
}

.buy-btn:hover {
  transform: scale(1.05) translateY(-2px);
  background: var(--accent-primary);
  box-shadow: var(--glass-glow);
}

.buy-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* --- Details Page Specifics --- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 3rem;
  width: 100%;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s;
}

.tab-btn.active {
  background: #fff;
  color: #000;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.tab-content {
  display: none;
  animation: contentFade 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.tab-content.active { display: block; }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Responsive Adaptations --- */
@media (max-width: 1200px) {
  .details-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem;
  }
  .sidebar .glass-card {
    position: static !important;
  }
  .table-container { overflow-x: auto; }
}

@media (max-width: 960px) {
  .table-container { display: none; }
  #project-cards-mobile { 
    display: grid; 
    gap: 1.5rem; 
  }
}

/* Hide mobile cards on desktop */
@media (min-width: 961px) {
  #project-cards-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 1rem 5%;
    gap: 1rem;
  }
  .nav-links { 
    width: 100%; 
    justify-content: center; 
  }
  .nav-links a {
    padding: 0.75rem 1.2rem; /* Minimum 44px touch target */
  }
  .hero h1 { 
    font-size: clamp(2rem, 12vw, 3.5rem); 
    letter-spacing: -2px; 
  }
  .tab-btn {
    min-height: 44px; /* Touch target optimization */
  }
}

@media (max-width: 480px) {
  main { padding-top: 1.5rem; }
  .glass-card { 
    border-radius: 20px; 
    padding: 1.5rem !important; 
  }
  .buy-btn { 
    width: 100%; 
    min-height: 48px; /* Touch target optimization */
    padding: 0.875rem 2rem;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }
}

/* --- Component Utilities --- */
.cost-display {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.2;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.15));
  margin: 1rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  display: block;
}

.info-box {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-box h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.info-box p {
  font-weight: 700;
  font-size: 1rem;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spec-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.faq-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.faq-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-q {
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.faq-a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

/* Mobile Card v3.0 */
.mobile-card {
  background: var(--glass-surface);
  backdrop-filter: blur(var(--glass-blur));
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-card h3 { font-size: 1.2rem; font-weight: 700; }
.mobile-card .cost { font-size: 1.5rem; font-weight: 900; color: var(--accent-primary); }

footer {
  padding: 4rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 8, 0.8);
  text-align: center;
}

footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.grid-auto { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 2rem; 
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sticky-top {
  position: sticky;
  top: 120px;
}

.contact-info {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.divider {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.text-sm {
  font-size: 0.8rem;
}

.text-lg {
  font-size: 1.1rem;
}

.font-bold {
  font-weight: 800;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

/* --- Contact Page Specific --- */
.contact-card {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 5rem);
  overflow: hidden;
}

.contact-section {
  margin-bottom: 3rem;
}

.contact-section:last-of-type {
  margin-bottom: 0;
}

.contact-label {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.contact-link {
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-block;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-link:hover {
  opacity: 0.8;
  color: #fff !important;
}

.contact-link:visited {
  color: #fff !important;
}

/* Contact page mobile optimizations */
@media (max-width: 768px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .cost-display {
    font-size: clamp(1rem, 5vw, 1.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .contact-section {
    margin-bottom: 2.5rem;
  }
}

/* Desktop contact page - keep text inside box */
@media (min-width: 769px) {
  .contact-card .cost-display {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 1.5rem 1rem;
  }
  
  .cost-display {
    font-size: 0.9rem;
    letter-spacing: -1px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .text-lg {
    font-size: 1rem;
  }
}

