/* ================================================
   VIRTUAL WEBNOLOGIES — Custom Styles
   ================================================ */

:root {
  --primary: #020617;
  --secondary: #0f172a;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-cyan: #06b6d4;
  --text-muted: #cbd5e1;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--primary);
  color: #fff;
  overflow-x: hidden;
}

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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: 0;
  opacity: 0.4;
}

/* ── Navbar Scrolled State ── */
#navbar.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow Effects ── */
.glow-blue {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.25), 0 0 80px rgba(37, 99, 235, 0.1);
}

.glow-blue-hover:hover {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.4), 0 0 80px rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
}

.glow-cyan {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
}

/* ── Glass Cards ── */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

/* ── Animated Gradient Background ── */
.animated-gradient {
  background: linear-gradient(-45deg, #020617, #0f172a, #1e1b4b, #0c1445, #020617);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Hero Grid Pattern ── */
.hero-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Floating Animation ── */
@keyframes floatUp {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

.float-1 { animation: floatUp 7s ease-in-out infinite; }
.float-2 { animation: floatUp 7s ease-in-out 1.5s infinite; }
.float-3 { animation: floatUp 7s ease-in-out 3s infinite; }
.float-4 { animation: floatUp 7s ease-in-out 4.5s infinite; }

/* ── Gradient Border ── */
.gradient-border {
  position: relative;
  border-radius: 1rem;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37,99,235,0.5), rgba(6,182,212,0.5), rgba(37,99,235,0));
  z-index: -1;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Syne', sans-serif;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,99,235,0.4); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  font-family: 'Syne', sans-serif;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.25);
  transition: all 0.3s ease;
  font-family: 'Syne', sans-serif;
}

.btn-whatsapp:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.2);
}

/* ── Tech Logo Marquee ── */
.marquee-wrapper { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

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

/* ── Service Card ── */
.service-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.service-card:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 80px rgba(37,99,235,0.12);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(6,182,212,0.1));
  border: 1px solid rgba(37,99,235,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(6,182,212,0.25));
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
}

/* ── Stats Counter ── */
.counter-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Process Step ── */
.process-step {
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(50% + 2.5rem);
  width: calc(100% - 5rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,0.5), transparent);
}
.process-step:last-child::after { display: none; }

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  text-align: left;
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover { color: #3b82f6; }

.faq-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
  background: rgba(37,99,235,0.3);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

.faq-answer p { color: #94a3b8; line-height: 1.7; }

/* ── Portfolio Card ── */
.portfolio-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2,6,23,0.95) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .overlay { opacity: 1; }

.portfolio-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-card:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.5rem;
  padding: 2rem;
}

/* ── Swiper ── */
.swiper-pagination-bullet { background: rgba(255,255,255,0.3) !important; }
.swiper-pagination-bullet-active { background: #3b82f6 !important; }

/* ── Section heading ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── Input / Form ── */
.form-input {
  width: 100%;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

.form-input:focus {
  border-color: rgba(37,99,235,0.5);
  background: rgba(15,23,42,0.8);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder { color: #475569; }

/* ── Industry Card ── */
.industry-card {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.industry-card:hover {
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.06);
  transform: scale(1.02);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.375rem;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #3b82f6;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(1rem); opacity: 0; }
}

/* ── CTA Section ── */
.cta-gradient {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(6,182,212,0.08));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.12), transparent 60%);
  pointer-events: none;
}

/* ── Admin Panel ── */
.admin-sidebar {
  background: #0a0f1e;
  border-right: 1px solid rgba(255,255,255,0.05);
  min-height: 100vh;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 1.5rem;
}

.admin-main {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
  background: #060c1a;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(37,99,235,0.12);
  color: #60a5fa;
}

.admin-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.5rem;
}

.admin-table th {
  background: rgba(15,23,42,0.8);
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* ── Success Popup ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: #0f172a;
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-box { transform: scale(1); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .counter-value { font-size: 2rem; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
}

/* ── Orbit Rings (Hero decoration) ── */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.12);
  animation: orbitalSpin 20s linear infinite;
}

@keyframes orbitalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Particle dots ── */
.dot-grid {
  background-image: radial-gradient(rgba(37,99,235,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}
