@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Montserrat:wght@300;400;600&display=swap');

/* Variables */
:root {
  --bg-dark: #0B0E13;
  --bg-secondary: #1C1D20;
  --accent: #00D8FF;
  --text-main: #FFFFFF;
  --text-muted: #888C99;
  --font-heading: 'Ethnocentric', 'Michroma', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography styles matching the aggressive sci-fi look */
h1, h2, h3, h4, h5, h6, .nav-links a, .btn {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ----- NAVBAR ----- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(11, 14, 19, 0.95);
  border-bottom: 1px solid rgba(0, 216, 255, 0.2);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
}

.logo-placeholder {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  letter-spacing: 2px;
}
.logo-placeholder span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #fff;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 216, 255, 0.5);
}

.btn-contact {
  border: 1px solid var(--accent);
  padding: 10px 25px;
  background: rgba(0, 216, 255, 0.05);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.btn-contact:hover {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--accent);
}

/* ----- HERO WITH DIAMOND LAYOUT ----- */
.hero-section {
  position: relative;
  height: 75vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 100px; /* Offset nav (Logo 60px + 40px padding) */
  background-size: cover;
  background-position: center;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 700px;
}

.hero-text h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-text p {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 35px;
}

/* Converging lines like XConnect */
.hero-bg-lines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(0, 216, 255, 0.1) 49%, rgba(0, 216, 255, 0.3) 50%, rgba(0, 216, 255, 0.1) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0, 216, 255, 0.1) 49%, rgba(0, 216, 255, 0.3) 50%, rgba(0, 216, 255, 0.1) 51%, transparent 52%);
  background-size: 100% 100%;
  opacity: 0.6;
  z-index: 1;
}

.diamond-container {
  position: relative;
  z-index: 2;
  width: 550px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(60px, 40px) scale(0.85);
  flex-shrink: 0;
}

.diamond-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 216, 255, 0.3);
  transform: rotate(45deg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.5s ease;
}

.diamond-container:hover .diamond-shape {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(0, 216, 255, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.diamond-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 40px;
}

.diamond-number {
  font-size: 5rem;
  color: #fff;
  letter-spacing: 5px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.diamond-text {
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 3px;
}

/* ----- GENERAL CONTENT SECTIONS ----- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
}

.section-gray {
  background-color: var(--bg-secondary);
  position: relative;
}

/* Angled Section Transitions */
.section-gray::before {
  content: '';
  position: absolute;
  top: -49px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--bg-secondary);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-gray::after {
  content: '';
  position: absolute;
  bottom: -49px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--bg-secondary);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 10;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  letter-spacing: 2px;
}

.section-title span {
  color: var(--accent);
}

/* Grid Layouts for Products / Features */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Cards (Mirroring xcperf styling) */
.product-card {
  background: #111111;
  border: 1px solid #222;
  border-top: 3px solid var(--accent);
  padding: 40px 30px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 216, 255, 0.05), transparent);
  transition: 0.5s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 216, 255, 0.1);
}

.product-card:hover::before {
  left: 100%;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.product-card p, .product-card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card ul {
  margin-left: 15px;
  list-style: square;
}

.product-card ul li {
  margin-bottom: 10px;
}

/* Custom List Styles */
.highlight-list {
  display: inline-block;
  text-align: left;
}

.highlight-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #ddd;
  position: relative;
  padding-left: 25px;
}

.highlight-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: bold;
}

/* ----- INNER HEADER FOR SUBPAGES ----- */
.page-header {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at bottom, #11151c 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid rgba(0, 216, 255, 0.1);
  padding: 140px 0 100px; /* Top padding clears nav, Bottom clears angled section */
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3rem;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(0, 216, 255, 0.3);
}
.page-header p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* ----- FOOTER ----- */
footer {
  background: #050608;
  padding: 80px 0 30px;
  margin-top: 100px;
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: block;
}

.footer-logo span {
  color: var(--accent);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1a1a1a;
  color: #555;
  font-size: 0.8rem;
}

/* ----- FORMS ----- */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-body);
  transition: 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 216, 255, 0.1);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 15px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  letter-spacing: 2px;
  font-weight: bold;
}

.btn-submit:hover {
  background: #fff;
  color: var(--bg-dark);
}

/* ----- HELPERS FOR SUBPAGES ----- */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #111;
  padding: 50px;
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.process-step {
  background: #111;
  padding: 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-number {
  background: var(--accent);
  color: #000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
  margin-top: 40px;
}

.bento-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at center, #151a22 0%, var(--bg-dark) 100%);
  border: 1px solid rgba(0, 216, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
}

.bento-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.bento-item::after {
  content: '';
  position: absolute;
  top: 40%; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(11, 14, 19, 0.95) 0%, rgba(11, 14, 19, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.bento-content {
  position: relative;
  z-index: 3;
}

.bento-item h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 5px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.9);
}

.bento-item p {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0, 216, 255, 0.15), inset 0 0 30px rgba(0,216,255,0.05);
}

.bento-item:hover .bento-bg {
  transform: scale(1.1);
  opacity: 1;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-small { grid-column: span 1; grid-row: span 1; }
.bento-full { grid-column: span 4; grid-row: span 1; }

/* ----- HAMBURGER MENU ----- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001; /* Above mobile menu */
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 4px 0;
  transition: 0.3s;
}

/* Responsiveness */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 250px;
    height: 100vh;
    background: rgba(11, 14, 19, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    border-left: 1px solid rgba(0, 216, 255, 0.2);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    padding: 0;
  }

  .nav-links.active {
    right: 0; /* Slide in */
  }

  /* Hamburger to X animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hero-section {
    height: auto;
    min-height: 80vh;
    padding: 100px 0 40px;
    overflow: hidden;
  }
  .hero-section .container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 95%; /* More edge buffer */
  }
  .hero-text {
    max-width: 100%;
    text-align: center;
    margin: 0 auto 30px;
    padding: 0 10px;
  }
  .hero-text h1 {
    font-size: clamp(1.5rem, 7.5vw, 2.8rem);
    letter-spacing: -1.2px;
    line-height: 1.05;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  .hero-text p {
    font-size: 1.05rem;
    max-width: 320px; /* Force readable width */
    margin: 0 auto 25px;
    line-height: 1.5;
  }
  .diamond-container { 
    width: 280px; 
    height: 280px; 
    transform: none;
    margin: 0 auto;
    flex-shrink: 0;
  }
  .diamond-number { font-size: 2.2rem; }
  .diamond-text { font-size: 0.8rem; letter-spacing: 1px; }
  .page-header {
    height: auto;
    min-height: 250px;
    padding: 140px 0 80px;
  }
  .page-header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    padding: 0 15px;
  }
  .page-header p {
    font-size: 1rem;
    padding: 0 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 30px 20px;
  }
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .section {
    padding: 60px 0;
  }
  .section-title { font-size: 2rem; }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .bento-item, .bento-large, .bento-wide, .bento-full, .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }
}
