/* =============================================
   CYBER SECURE INDIA PORTAL — Main Stylesheet
   File: public/assets/css/style.css
   ============================================= */

/* ── CSS Variables ── */
:root {
  --primary: #06b6d4;
  --secondary: #2563eb;
  --dark: #020617;
  --card: #0f172a;
  --accent: #00ffcc;
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ── Base Body ── */
body {
  background: var(--dark);
  color: white;
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

/* ── Font Utilities ── */
.mono    { font-family: 'Share Tech Mono', monospace; }
.rajdhani{ font-family: 'Rajdhani', sans-serif; }

/* ── Grid Background ── */
.cyber-grid {
  background-image:
    linear-gradient(rgba(6,182,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── Hero Section ── */
.hero {
  background:
    linear-gradient(rgba(0,0,0,0.78), rgba(2,6,23,0.92)),
    url('https://images.unsplash.com/photo-1510511459019-5dda7724fd87?q=80&w=1920');
  background-size: cover;
  background-position: center;
}

/* ── Glass Effect ── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Cards ── */
.card {
  transition: 0.4s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px rgba(0,255,204,0.2);
}

/* ── Glow Text ── */
.glow {
  color: #00ffcc;
  text-shadow: 0 0 18px rgba(0,255,204,0.6);
}

/* ── Portal Button ── */
.portal-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: white;
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
  transition: 0.3s;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.portal-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(6,182,212,0.45);
}

/* ── Section Titles ── */
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
}

.section-subtitle {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1.9rem;
}

/* ── Cyber Border Effect ── */
.cyber-border {
  position: relative;
  overflow: hidden;
}
.cyber-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(45deg, #06b6d4, transparent, #3b82f6, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
}

/* ── Stat Card ── */
.stat-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(2,6,23,0.96));
  border: 1px solid rgba(6,182,212,0.14);
  backdrop-filter: blur(16px);
}

/* ── Live Dot ── */
.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 1.5s infinite;
  display: inline-block;
}

/* ── Animations ── */
@keyframes pulse {
  0%   { transform: scale(1);    opacity: 1;    }
  50%  { transform: scale(1.45); opacity: 0.55; }
  100% { transform: scale(1);    opacity: 1;    }
}

@keyframes float {
  0%   { transform: translateY(0px);   }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px);   }
}

@keyframes glowPulse {
  0%   { box-shadow: 0 0 6px  rgba(6,182,212,0.18); }
  50%  { box-shadow: 0 0 28px rgba(6,182,212,0.55); }
  100% { box-shadow: 0 0 6px  rgba(6,182,212,0.18); }
}

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

@keyframes scanline {
  0%   { top: -10%;  }
  100% { top:  110%; }
}

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

@keyframes ticker {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}

/* ── Animation Utility Classes ── */
.floating      { animation: float     4.5s ease-in-out infinite; }
.dynamic-glow  { animation: glowPulse 3s   infinite;             }
.animate-fade  { animation: fadeInUp  0.9s ease forwards;        }

/* ── Scanline Effect ── */
.scanline-container {
  position: relative;
  overflow: hidden;
}
.scanline-container::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(transparent, rgba(0,255,204,0.15), transparent);
  animation: scanline 4s linear infinite;
  pointer-events: none;
}

/* ── Step Number (Workflow) ── */
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid rgba(6,182,212,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #06b6d4;
  margin: 0 auto 16px;
  font-family: 'Share Tech Mono', monospace;
}

/* ── News Card Image ── */
.news-img {
  border-radius: 16px;
  margin-bottom: 18px;
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.card:hover .news-img {
  transform: scale(1.03);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 0.9rem;
  color: #67e8f9;
  font-family: 'Share Tech Mono', monospace;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: #020617; }
::-webkit-scrollbar-thumb  {
  background: linear-gradient(#06b6d4, #2563eb);
  border-radius: 20px;
}

/* ── Mobile Nav ── */
#mobile-menu      { display: none; }
#mobile-menu.open { display: flex; }

/* ── Tooltip ── */
.tooltip { position: relative; }
.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid #06b6d4;
  color: #67e8f9;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.8rem;
  font-family: 'Share Tech Mono', monospace;
  z-index: 99;
}

/* ── Search / Input Bar ── */
.search-input {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 12px;
  padding: 12px 18px;
  color: white;
  width: 100%;
  outline: none;
  font-family: 'Share Tech Mono', monospace;
  transition: 0.3s;
}
.search-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.search-input::placeholder { color: #475569; }

/* ── News Ticker ── */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: #06b6d4;
}
.ticker {
  display: inline-flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker:hover { animation-play-state: paused; }
