/* ═══════════════════════════════════════════════
   VIPERPROJECTS47 — Main Stylesheet
   Fonts: Syne (display) + DM Sans (body)
═══════════════════════════════════════════════ */

:root {
  --viper-red: #e63946;
  --viper-red-dark: #b5282e;
  --viper-black: #080b10;
  --viper-dark: #0d1117;
  --viper-dark2: #161b22;
  --viper-dark3: #1c2333;
  --viper-border: rgba(255,255,255,0.08);
  --viper-text: #e6edf3;
  --viper-muted: #8b949e;
  --viper-accent: #58a6ff;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--viper-red);
  color: #fff;
  box-shadow: 0 0 30px rgba(230,57,70,0.3);
}
.btn-primary:hover {
  background: var(--viper-red-dark);
  box-shadow: 0 0 50px rgba(230,57,70,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--viper-text);
  border: 1px solid var(--viper-border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.w-full { width: 100%; justify-content: center; }

/* ── SECTION SHARED ── */
.section-pad { padding: 100px 6vw; }
.bg-dark { background: var(--viper-dark); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 12px 0;
}
.section-header p { color: var(--viper-muted); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }
.section-header.light h2, .section-header.light p { color: #fff; }
.section-header.light p { color: var(--viper-muted); }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--viper-red);
  color: var(--viper-red);
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════
   HEADER
═══════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,11,16,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--viper-border);
  transition: background var(--transition);
}
#site-header.scrolled {
  background: rgba(8,11,16,0.95);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 6vw;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-viper { color: var(--viper-red); }
.logo-proj { color: var(--viper-text); }
.logo-num {
  color: var(--viper-accent);
  font-size: 0.85em;
  vertical-align: super;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--viper-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item:hover { color: var(--viper-text); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--viper-red) !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
}
.nav-cta:hover { background: var(--viper-red-dark) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.chevron { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform var(--transition); }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 520px;
  background: var(--viper-dark2);
  border: 1px solid var(--viper-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.dd-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.dd-item:hover { background: rgba(255,255,255,0.06); }
.dd-icon { font-size: 1.3rem; grid-row: span 2; display: flex; align-items: center; }
.dd-label { font-weight: 600; font-size: 0.9rem; color: var(--viper-text); }
.dd-desc { font-size: 0.78rem; color: var(--viper-muted); margin-top: 2px; }
.dd-footer {
  padding: 10px 14px 4px;
  border-top: 1px solid var(--viper-border);
  font-size: 0.85rem;
  color: var(--viper-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--viper-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 6vw 80px;
  position: relative;
  overflow: hidden;
  gap: 48px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 0%, transparent 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: rgba(230,57,70,0.15); top: -100px; right: 0; animation-delay: 0s; }
.orb2 { width: 300px; height: 300px; background: rgba(88,166,255,0.1); bottom: 0; right: 200px; animation-delay: -3s; }
.orb3 { width: 200px; height: 200px; background: rgba(230,57,70,0.08); top: 40%; left: 10%; animation-delay: -5s; }

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

.hero-content {
  flex: 1;
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(230,57,70,0.1);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--viper-red);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--viper-red), #ff6b6b, var(--viper-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent { color: var(--viper-red); -webkit-text-fill-color: var(--viper-red); }

.hero-sub {
  color: var(--viper-muted);
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--viper-text); }
.stat-label { font-size: 0.78rem; color: var(--viper-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--viper-border); }

/* 3D Hero Canvas */
.hero-3d {
  flex: 0 0 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
#viper3d {
  width: 420px;
  height: 420px;
  border-radius: var(--radius-lg);
  background: transparent;
}
.canvas-label {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--viper-muted);
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

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

/* ═══════════════════════════════════
   SLIDER
═══════════════════════════════════ */
.slider-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.slider-track { position: relative; height: 400px; border-radius: var(--radius-lg); overflow: hidden; }
.slide {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97) translateX(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--viper-border);
}
.slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
}
.slide-inner { text-align: center; padding: 48px; max-width: 500px; }
.slide-icon { font-size: 4rem; margin-bottom: 20px; }
.slide-inner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.slide-inner p { color: var(--viper-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
.slide-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--viper-border);
  background: var(--viper-dark2);
  color: var(--viper-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.slider-btn:hover { border-color: var(--viper-red); color: var(--viper-red); }
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--viper-dark3);
  border: 1px solid var(--viper-border);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--viper-red); border-color: var(--viper-red); width: 24px; border-radius: 4px; }

.slider-progress {
  height: 2px;
  background: var(--viper-dark3);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.slider-progress-bar {
  height: 100%;
  background: var(--viper-red);
  border-radius: 2px;
  width: 0%;
  transition: width linear;
}

/* ═══════════════════════════════════
   FEATURES
═══════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--viper-dark2);
  border: 1px solid var(--viper-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(230,57,70,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-card.featured {
  grid-column: span 1;
  border-color: rgba(230,57,70,0.4);
  background: linear-gradient(135deg, var(--viper-dark2), rgba(230,57,70,0.05));
}
.fc-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p { color: var(--viper-muted); font-size: 0.9rem; line-height: 1.7; }
.fc-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--viper-muted);
}
.fc-list li::before { content: '✓'; color: var(--viper-red); font-weight: 700; }

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 32px;
}
.ci-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.ci-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.ci-item strong { display: block; font-weight: 600; margin-bottom: 4px; }
.ci-item p { color: var(--viper-muted); font-size: 0.9rem; }
.ci-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.social-pill {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--viper-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--viper-muted);
  transition: var(--transition);
}
.social-pill:hover { color: var(--viper-text); border-color: var(--viper-red); background: rgba(230,57,70,0.08); }

.contact-form {
  background: var(--viper-dark2);
  border: 1px solid var(--viper-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--viper-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--viper-dark3);
  border: 1px solid var(--viper-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--viper-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--viper-red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}
.form-group textarea { resize: vertical; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.3);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
#site-footer {
  background: var(--viper-dark);
  border-top: 1px solid var(--viper-border);
  padding: 80px 6vw 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--viper-muted);
  font-size: 0.9rem;
  margin: 16px 0 24px;
  max-width: 280px;
  line-height: 1.7;
}
.footer-logo { margin-bottom: 4px; }
.footer-socials { display: flex; gap: 10px; }
.fsocial {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--viper-border);
  font-size: 0.9rem;
  color: var(--viper-muted);
  font-style: normal;
  transition: var(--transition);
}
.fsocial:hover { color: var(--viper-text); border-color: var(--viper-red); background: rgba(230,57,70,0.1); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.fl-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--viper-text);
  margin-bottom: 16px;
}
.fl-col a {
  display: block;
  color: var(--viper-muted);
  font-size: 0.88rem;
  padding: 5px 0;
  transition: var(--transition);
}
.fl-col a:hover { color: var(--viper-text); padding-left: 4px; }

.footer-newsletter {
  border-top: 1px solid var(--viper-border);
  border-bottom: 1px solid var(--viper-border);
  padding: 48px 0;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.newsletter-text p { color: var(--viper-muted); font-size: 0.9rem; }
.newsletter-form {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 480px;
}
.newsletter-form input {
  flex: 1;
  background: var(--viper-dark2);
  border: 1px solid var(--viper-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  color: var(--viper-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--viper-red); }
.nl-success { display: none; font-size: 0.9rem; color: #58a6ff; align-self: center; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--viper-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--viper-accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  #hero { flex-direction: column; text-align: center; padding-top: calc(var(--nav-h) + 40px); }
  .hero-content { max-width: 100%; }
  .hero-3d { flex: none; }
  #viper3d { width: 320px; height: 320px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,11,16,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--viper-border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-item { width: 100%; }
  .dropdown-menu { position: static; transform: none !important; width: 100%; opacity: 1; visibility: visible; box-shadow: none; display: none; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .slider-track { height: 320px; }
  .slide-inner { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .hero-3d { display: none; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-form { padding: 24px; }
  .dropdown-grid { grid-template-columns: 1fr; }
}
