/* ============================================================
   style.css — Rris Technologies
   All visual styling: layout, colors, fonts, animations
   ============================================================ */


/* ── 1. CSS VARIABLES (your design tokens / color palette) ── */
:root {
  --bg: #04060f;
  --surface: #080d1e;
  --card: #0c1228;
  --accent: #0ef;
  --accent2: #7b5cff;
  --text: #e8eaf6;
  --muted: #7a80a0;
  --border: rgba(255, 255, 255, 0.07);
}


/* ── 2. RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* Noise texture overlay on the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}


/* ── 3. CUSTOM CURSOR ── */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}




/* ── 4. NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
}

/* Nav gets a frosted glass background on scroll (added via JS) */
nav.scrolled {
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo span {
  -webkit-text-fill-color: var(--text);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* constrain the logo image inside the navigation bar */
nav .logo img {
  /* ensure the logo isn't huge and won't overlap content */
  height: 40px;
  width: auto;
  display: block;
}

/* hamburger button (visible only on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110; /* above nav-links when open */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* transform into X when active */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* responsive rules */
@media (max-width: 768px) {
  nav {
    padding: 1rem 2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 4rem;
    transition: right 0.3s ease;
    z-index: 105; /* ensure menu overlays the navbar */
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }
}



/* ── 5. HERO SECTION ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 6rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Dot grid background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 238, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 238, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 238, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.12) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

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

/* "Currently accepting" pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 238, 255, 0.08);
  border: 1px solid rgba(0, 238, 255, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

/* Pulsing dot inside badge */
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Primary filled button */
.btn-primary {
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: none;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Ghost / text button with arrow */
.btn-ghost {
  padding: 0.9rem 2rem;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.btn-ghost:hover {
  gap: 0.9rem;
}

.btn-ghost svg {
  width: 18px;
  height: 18px;
}

/* Shared fade-up entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── 6. STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}


/* ── 7. SHARED SECTION STYLES ── */
section {
  padding: 6rem 6rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}


/* ── 8. SERVICES SECTION ── */
#services {
  background: var(--surface);
}

.services-header {
  max-width: 560px;
  margin-bottom: 4rem;
}

.services-header p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* 3-column grid with 1.5px gap (creates visible dividers) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--card);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

/* Animated top border line on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: rgba(12, 18, 40, 0.8);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 238, 255, 0.08);
  border: 1px solid rgba(0, 255, 72, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}


/* ── 9. ABOUT SECTION ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 238, 255, 0.05), rgba(123, 92, 255, 0.1));
}

/* Circuit-board grid inside the visual */
.circuit {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 238, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 238, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.about-badge {
  position: relative;
  z-index: 2;
  text-align: center;
}

.about-badge-num {
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.about-badge-text {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

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

.value-item {
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.value-item:hover {
  border-color: rgba(0, 238, 255, 0.3);
}

.value-item strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.value-item span {
  font-size: 0.82rem;
  color: var(--muted);
}


/* ── 10. PROCESS SECTION ── */
#process {
  background: var(--surface);
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.process-header p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Horizontal connecting line between step numbers */
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.process-step:hover .step-num {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
}

.process-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
}


/* ── 11. TECH STACK SECTION ── */
#tech {
  padding: 4rem 6rem;
}

.tech-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Fade edges on the scrolling strip */
.tech-scroll {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

/* Infinite scrolling animation */
.tech-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.tech-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-chip {
  padding: 0.7rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-chip:hover {
  border-color: rgba(0, 238, 255, 0.4);
  color: var(--text);
}


/* ── 12. CONTACT SECTION ── */
#contact {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Purple glow behind the contact section */
#contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(123, 92, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-inner p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-form input {
  flex: 1;
  max-width: 320px;
  padding: 0.85rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder {
  color: var(--muted);
}

.contact-form button {
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 6px;
  color: var(--bg);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: none;
  transition: opacity 0.2s, transform 0.2s;
}

.contact-form button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.contact-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.email-highlight {
  color: var(--accent);
}


/* ── 13. FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}


/* ── 14. SCROLL REVEAL ANIMATION ── */
/* Elements start hidden, JS adds .visible when they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 15. RESPONSIVE / MOBILE ── */
@media (max-width: 1024px) {
  nav, section, .stats-bar, footer { padding-left: 2.5rem; padding-right: 2.5rem; }
  .hero { padding: 8rem 2.5rem 4rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  #about { grid-template-columns: 1fr; }
  .about-visual { height: 280px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  #tech { padding: 4rem 2.5rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 640px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section, .stats-bar, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-form { flex-direction: column; align-items: center; }
  .contact-form input { max-width: 100%; width: 100%; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}
