/* ============================================================
   ANICOMIC SERVICES — COMING SOON PAGE STYLING
   Pure Dark · Full Screen VFX · Responsive Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Orbitron:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #000000;
  --bg-card: #0A0A0A;
  --accent: #00A8FF;
  --accent-glow: rgba(0, 168, 255, 0.25);
  --text-primary: #FFFFFF;
  --text-secondary: #99AABF;
  --text-muted: #445566;
  --border: #161616;
  --border-accent: rgba(0, 168, 255, 0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden; /* Prevent scrolling for the full-screen effect */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ── FULL SCREEN EFFECT & BACKGROUND ── */
.ambient-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 168, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 40%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Moving grid background */
.depth-grid {
  position: absolute;
  bottom: -30%; left: -30%; right: -30%; height: 80%;
  background-image:
    linear-gradient(rgba(0, 168, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(72deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
  animation: grid-scroll 30s linear infinite;
  z-index: 1;
}

@keyframes grid-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 50px; }
}

/* ── WELCOME ANIMATION (LOADER) ── */
.welcome-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-inner {
  text-align: center;
}

.loader-logo-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(0, 168, 255, 0.1);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  animation: pulse-text 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-text {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* ── CENTER WRAPPER ── */
.center-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.center-logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.4));
  margin-bottom: 24px;
  animation: float-logo 5s ease-in-out infinite alternate, logo-pulse-glow 2.5s ease-in-out infinite alternate;
}

@keyframes float-logo {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes logo-pulse-glow {
  from { filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.3)); }
  to { filter: drop-shadow(0 0 35px rgba(0, 168, 255, 0.7)); }
}

.title-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(0, 168, 255, 0.07);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: fadeIn 1.2s 0.3s ease both;
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 86px);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, #99AABF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1.2s 0.5s ease both;
}

.main-title span {
  background: linear-gradient(135deg, var(--accent) 0%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(14px, 4vw, 17px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeIn 1.2s 0.7s ease both;
}

/* Button & Action */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #0066FF 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.35);
  transition: var(--transition);
  animation: fadeIn 1.2s 0.9s ease both;
  border: none;
  font-family: var(--font-body);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 168, 255, 0.5);
}

/* ── MODALS (FORM & ADMIN PANEL) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 36px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 50px rgba(0, 168, 255, 0.15);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--accent);
  background: rgba(0, 168, 255, 0.02);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Admin Panel overrides */
.modal-card.admin-width {
  max-width: 800px;
}

.admin-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  max-height: 350px;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

tr:last-child td {
  border-bottom: none;
}

td a {
  color: var(--accent);
}
td a:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

/* ── FOOTER & HIDDEN LOGIN OPTION ── */
footer {
  position: relative;
  z-index: 2;
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.secret-trigger-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Make the specific word clickable and styled neutrally */
.secret-word {
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.3s ease;
}
.secret-word:hover {
  color: rgba(255, 255, 255, 0.15);
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Particles styling */
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-10px) translateX(30px); opacity: 0; }
}

/* ── MOBILE RESPONSIVENESS ── */
@media (max-width: 768px) {
  .main-title {
    font-size: clamp(38px, 12vw, 56px);
  }
  .modal-card {
    padding: 24px;
  }
}
