/* Viking Net LLC — v2 Theme */
:root {
  --bg: #080c12;
  --bg-2: #0c1219;
  --bg-3: #101822;
  --text: #e6eef7;
  --muted: #8a9bb0;
  --line: #1a2636;
  --brand: #00c2ff;
  --brand-2: #35e1ff;
  --brand-glow: rgba(0, 194, 255, 0.15);
  --accent: #7aa2ff;
  --success: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-brand: 0 6px 24px rgba(0, 194, 255, 0.2);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
}

/* Utility */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══ HEADER ═══ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 12, 18, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 42px; width: auto; border-radius: var(--radius-sm); }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--brand-glow); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }

/* ═══ HERO ═══ */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(0, 194, 255, 0.06), transparent),
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(122, 162, 255, 0.04), transparent),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero-logo { margin: 0 auto 20px; max-height: 100px; width: auto; display: block; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
.hero h1 .highlight { color: var(--brand); }
.hero p { color: var(--muted); margin: 0 0 28px; font-size: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
  background: var(--brand-glow); border: 1px solid rgba(0, 194, 255, 0.25);
  color: #cfefff; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(0, 194, 255, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn + .btn { margin-left: 12px; }

/* ═══ GRID & CARDS ═══ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: rgba(0, 194, 255, 0.3); box-shadow: 0 8px 32px rgba(0, 194, 255, 0.08); }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: var(--brand-glow); border: 1px solid rgba(0, 194, 255, 0.2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* ═══ SECTION HEADERS ═══ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 12px; }
.section-header p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 17px; }

/* ═══ FEATURE ROW ═══ */
.feature-row { display: grid; gap: 32px; align-items: center; grid-template-columns: 1.2fr 0.8fr; }
.feature-row .pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: #dbe9f4; font-weight: 600; font-size: 13px;
}

/* ═══ SERVICES SHOWCASE ═══ */
.service-card { position: relative; overflow: hidden; }
.service-card .tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--brand-glow); border: 1px solid rgba(0, 194, 255, 0.3);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--brand-2); text-transform: uppercase;
}
.service-card ul { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }
.service-card li { margin-bottom: 4px; }

/* ═══ CTA BANNER ═══ */
.cta-banner {
  text-align: center; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 194, 255, 0.06), rgba(255, 255, 255, 0.015));
  padding: 40px; box-shadow: var(--shadow);
}
.cta-banner h3 { font-size: 24px; margin: 0 0 10px; }
.cta-banner p { color: var(--muted); margin: 0 0 20px; }

/* ═══ NEWS FEED ═══ */
.news-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.news-item .date { font-size: 13px; color: var(--muted); font-weight: 600; }
.news-item h4 { margin: 4px 0 6px; font-size: 17px; }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ═══ FOOTER ═══ */
.footer {
  border-top: 1px solid var(--line); color: var(--muted);
  padding: 40px 0; font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: var(--text); font-size: 15px; margin: 0 0 12px; }
.footer p { margin: 0 0 8px; font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--brand); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }

/* ═══ FORMS ═══ */
.form-card { max-width: 720px; margin: 0 auto; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; color: #cfe0f3; font-weight: 600; font-size: 14px; }
.input, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--line); outline: none; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15); }
.textarea { resize: vertical; min-height: 120px; }

/* ═══ CHAT WIDGET ═══ */
.chat-button {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018; padding: 14px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 15px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.15s, box-shadow 0.2s;
}
.chat-button:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 194, 255, 0.4); }

.chat-widget {
  position: fixed; bottom: 84px; right: 20px; z-index: 9998;
  width: 360px; max-height: 500px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018; font-weight: 700; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header button { background: none; border: none; color: #001018; font-size: 18px; cursor: pointer; font-weight: 700; }
.chat-messages {
  flex: 1; padding: 14px; overflow-y: auto; font-size: 14px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 340px;
}
.msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; line-height: 1.5; }
.msg.bot { background: rgba(0, 194, 255, 0.1); align-self: flex-start; }
.msg.user { background: rgba(255, 255, 255, 0.08); align-self: flex-end; }
.msg.typing { opacity: 0.6; }

.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.quick-replies button {
  border: none; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: var(--brand-glow); color: #e6faff; font-weight: 600; font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(0, 194, 255, 0.3);
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}
.quick-replies button:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 194, 255, 0.2); background: rgba(0, 194, 255, 0.2); }

.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 12px 14px; border: none; background: transparent; color: var(--text); font-size: 14px; outline: none; }
.chat-input button { background: var(--brand); border: none; padding: 0 18px; cursor: pointer; font-weight: 700; font-size: 16px; color: #001018; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px 24px;
  }
  .hero h1 { font-size: 28px; }
  .chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 76px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 194, 255, 0.25); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }
.animate-on-scroll:nth-child(7) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(8) { transition-delay: 0.35s; }

/* Hero animations */
.hero { animation: fadeIn 0.8s ease; }
.hero h1 { animation: fadeIn 0.4s ease 0s both; }
.hero p { animation: fadeInUp 0.8s ease 0.4s both; }
.hero .badge { animation: fadeInUp 0.6s ease 0.1s both; }
.hero .btn { animation: fadeInUp 0.8s ease 0.5s both; }
.hero-logo { animation: fadeIn 1s ease 0s both; }

/* Card enhancements */
.card {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(0, 194, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 194, 255, 0.1);
  transform: translateY(-4px);
}

/* Icon enhancements */
.card .icon {
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.2);
}

/* Button hover glow */
.btn-primary {
  transition: transform 0.15s, box-shadow 0.3s, background 0.3s;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.4);
  transform: translateY(-2px);
}

/* Chat button pulse */
.chat-button {
  animation: glow 3s ease-in-out infinite;
}
.chat-button:hover {
  animation: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 194, 255, 0.5);
}

/* CTA banner glow */
.cta-banner {
  transition: box-shadow 0.3s;
}
.cta-banner:hover {
  box-shadow: 0 12px 48px rgba(0, 194, 255, 0.12);
}

/* Pill hover */
.pill {
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: default;
}
.pill:hover {
  background: var(--brand-glow);
  color: var(--brand-2);
  transform: translateY(-1px);
}

/* Service card tag animation */
.service-card .tag {
  animation: pulse 2s ease-in-out infinite;
}

/* Smooth gradient on hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,194,255,0.03), transparent 40%, rgba(122,162,255,0.03));
  pointer-events: none;
}
.hero { position: relative; overflow: hidden; }

/* Nav link underline effect */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* Selection color */
::selection { background: rgba(0, 194, 255, 0.25); color: white; }
