/* ============================================================
   RVA Digital Consulting — Main Stylesheet
   ============================================================ */


/* === DESIGN TOKENS === */
:root {
  --bg: #060810;
  --surface: #0d1120;
  --surface2: #131828;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #2563ff;
  --accent2: #00d4ff;
  --text: #e8eaf0;
  --muted: #7b82a0;
  --white: #ffffff;
}


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

html {
  scroll-behavior: smooth;
}

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

/* Noise texture overlay */
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;
}


/* === ANIMATIONS === */
@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(1.15); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5%;
  background: rgba(6, 8, 16, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

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

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

footer .logo-img {
  height: 40px;
}

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

nav ul a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switcher .lang-active { color: var(--white); }
.lang-switcher .lang-sep { color: var(--border); }


/* === SHARED SECTION STYLES === */
section {
  padding: 7rem 5%;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
}


/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(37, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(37, 99, 255, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface);
}


/* === HERO === */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.18) 0%, transparent 70%);
  top: -100px; right: -150px;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite alternate;
}

.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  bottom: 50px; left: -100px;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite alternate-reverse;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

h1 .gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.stat-item .stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-item .stat-num span { color: var(--accent2); }

.stat-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}


/* === SERVICES === */
#services { background: var(--surface); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.services-header p {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

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

.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 { background: var(--surface2); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

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

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 255, 0.3);
  color: var(--accent2);
  background: rgba(37, 99, 255, 0.07);
}


.service-learn-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.service-learn-more:hover { opacity: 0.7; }

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

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.2) 0%, transparent 70%);
}

.about-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 3px solid transparent;
  background-clip: padding-box;
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  margin-bottom: 1.5rem;
  display: block;
}

.about-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.about-card .title {
  font-size: 0.85rem;
  color: var(--accent2);
  margin-top: 0.3rem;
  margin-bottom: 1.25rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

.badge-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.badge:hover { border-color: var(--accent2); }

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.about-text .btn-primary { margin-top: 1rem; }


/* === WHY US === */
#why { background: var(--surface); }

.why-header {
  max-width: 600px;
  margin-bottom: 1rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.why-item {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: border-color 0.3s, transform 0.3s;
}

.why-item:hover {
  border-color: rgba(37, 99, 255, 0.4);
  transform: translateY(-4px);
}

.why-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.why-item h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}


/* === CONTACT === */
#contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.5rem; }

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.contact-detail span:first-child {
  color: var(--accent2);
  font-size: 1rem;
}

.contact-detail a { color: var(--accent2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-form h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.15);
}

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

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

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 30px rgba(37, 99, 255, 0.3);
}

.form-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.success-msg {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: rgba(37, 99, 255, 0.1);
  border: 1px solid rgba(37, 99, 255, 0.3);
  border-radius: 10px;
  color: var(--accent2);
  font-size: 0.9rem;
  margin-top: 1rem;
}


/* === FOOTER === */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .logo { font-size: 0.95rem; }

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

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

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

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


/* === FAQ === */
#faq {
  padding: 6rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-header {
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--surface2); }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-question[aria-expanded="true"] { background: var(--surface2); }
.faq-question[aria-expanded="true"]::after { content: '−'; }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  background: var(--surface2);
}
.faq-answer.faq-open {
  display: block;
}
.faq-answer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  #about, #contact { grid-template-columns: 1fr; gap: 3rem; }
  .stats { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  nav ul { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .services-header { flex-direction: column; }
}
