/* ===== CSX DEVELOPERS – Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,600;0,800;1,300&family=Share+Tech+Mono&display=swap');

:root {
  --navy:      #060d1f;
  --navy-mid:  #0c1a35;
  --navy-card: #0f2040;
  --navy-edge: #162848;
  --cyan:      #00e5ff;
  --cyan-dim:  #00b3cc;
  --magenta:   #ff00c8;
  --purple:    #7b2fff;
  --white:     #e8f4ff;
  --grey:      #8ba0bc;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --glow-c:    0 0 20px rgba(0,229,255,.45), 0 0 60px rgba(0,229,255,.15);
  --glow-m:    0 0 20px rgba(255,0,200,.45), 0 0 60px rgba(255,0,200,.15);
  --transition: .3s cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

/* ── GRID BACKGROUND ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,13,31,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,229,255,.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
  text-transform: uppercase;
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--grey);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width var(--transition);
  box-shadow: var(--glow-c);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

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

.nav-cta {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1.4rem;
  border: 1.5px solid var(--cyan);
  color: var(--cyan) !important;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--navy) !important;
  box-shadow: var(--glow-c);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: var(--transition);
}

/* ===== PAGE WRAPPER ===== */
main {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,100,180,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(123,47,255,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0,229,255,.1) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-logo {
  width: min(420px, 80vw);
  margin: 0 auto 2rem;
  animation: fadeInDown .9s ease both;
  filter: drop-shadow(0 0 30px rgba(0,229,255,.25));
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
  animation: fadeInUp .9s .2s ease both;
}

.hero-tagline .accent-c { color: var(--cyan); text-shadow: var(--glow-c); }
.hero-tagline .accent-m { color: var(--magenta); text-shadow: var(--glow-m); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--grey);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp .9s .35s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: fadeInUp .9s .5s ease both;
}

.btn-primary {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  background: var(--cyan);
  color: var(--navy);
  border-radius: 4px;
  transition: var(--transition);
  border: 1.5px solid var(--cyan);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: var(--glow-c);
}

.btn-secondary {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  background: transparent;
  color: var(--white);
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: var(--glow-m);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,229,255,.1);
  animation: fadeInUp .9s .65s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: .3rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 5%;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-c);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  margin-top: .75rem;
  max-width: 560px;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--navy-card);
  border: 1px solid rgba(0,229,255,.1);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,255,.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), var(--glow-c);
}

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

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-img.portrait {
  height: 260px;
  object-fit: cover;
  object-position: top;
}

.product-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,229,255,.1);
  padding: .2rem .7rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: .75rem;
}

.product-tag.magenta {
  color: var(--magenta);
  background: rgba(255,0,200,.1);
}

.product-tag.purple {
  color: #a78bfa;
  background: rgba(123,47,255,.12);
}

.product-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.product-desc {
  font-size: .92rem;
  color: var(--grey);
  line-height: 1.65;
}

.product-links {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-small {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-small.outline-c {
  border: 1px solid rgba(0,229,255,.4);
  color: var(--cyan);
}

.btn-small.outline-c:hover {
  background: rgba(0,229,255,.1);
  border-color: var(--cyan);
}

.btn-small.outline-m {
  border: 1px solid rgba(255,0,200,.3);
  color: var(--magenta);
}

.btn-small.outline-m:hover {
  background: rgba(255,0,200,.1);
  border-color: var(--magenta);
}

/* ===== FEATURED STRIP ===== */
.featured {
  background: var(--navy-mid);
  border-top: 1px solid rgba(0,229,255,.08);
  border-bottom: 1px solid rgba(0,229,255,.08);
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-inner.reverse {
  direction: rtl;
}

.featured-inner.reverse > * {
  direction: ltr;
}

.featured-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.15);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.featured-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease;
}

.featured-img:hover img {
  transform: scale(1.03);
}

.featured-text .section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.featured-text .product-tag {
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .93rem;
  color: var(--grey);
}

.feature-list li::before {
  content: '▸';
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== TECH STRIP ===== */
.tech-strip {
  text-align: center;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  padding: .4rem 1rem;
  border: 1px solid rgba(0,229,255,.15);
  border-radius: 20px;
  color: var(--grey);
  background: var(--navy-card);
  transition: var(--transition);
}

.tech-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,.05);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 6rem 5% 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-bottom: 1px solid rgba(0,229,255,.1);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,100,180,.2) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero .section-label { margin-bottom: 1rem; }

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.about-text p {
  color: var(--grey);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--navy-card);
  border: 1px solid rgba(0,229,255,.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(0,229,255,.3);
  transform: translateY(-3px);
}

.value-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
}

.value-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--white);
}

.value-card p {
  font-size: .87rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--grey);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--navy-card);
  border-radius: 8px;
  border: 1px solid rgba(0,229,255,.08);
}

.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-item-text span {
  display: block;
  font-size: .75rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-mono);
}

.contact-item-text strong {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
}

.contact-form {
  background: var(--navy-card);
  border: 1px solid rgba(0,229,255,.1);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-form h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--navy-edge);
  border: 1px solid rgba(0,229,255,.15);
  border-radius: 6px;
  padding: .75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,.08);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-group select option {
  background: var(--navy-mid);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--navy-mid);
  border-top: 1px solid rgba(0,229,255,.1);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0,229,255,.08);
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: .6rem;
}

.footer-col a {
  font-size: .87rem;
  color: var(--grey);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: .82rem;
  color: var(--grey);
  font-family: var(--font-mono);
}

.footer-copy span {
  color: var(--cyan);
}

/* ===== DIVIDER ===== */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.3), transparent);
  margin: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(6,13,31,.97); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid rgba(0,229,255,.15); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .featured-inner { grid-template-columns: 1fr; gap: 2rem; }
  .featured-inner.reverse { direction: ltr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .products-grid { grid-template-columns: 1fr; }
}
