/* ===========================
   STORAGECLOUDS SUPPORT.CSS
   Advanced Halloween Edition
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: radial-gradient(ellipse at bottom, #0a0a0a 0%, #000 100%);
  color: #f5f5f5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 🔮 Parallax Animated Background */
#parallax {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.fog,
.bats,
.lanterns,
.embers {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.15;
  pointer-events: none;
}

.fog {
  background-image: url("../img/fog.png");
  animation: fogMove 100s linear infinite;
}

.bats {
  background-image: url("../img/bats.png");
  animation: flyBats 60s linear infinite;
  opacity: 0.2;
}

.lanterns {
  background-image: url("../img/lanterns.png");
  animation: lanternGlow 10s ease-in-out infinite alternate;
  opacity: 0.12;
}

.embers {
  background-image: url("../img/embers.png");
  animation: emberDrift 120s linear infinite;
  opacity: 0.1;
}

@keyframes fogMove {
  from { background-position: 0 0; }
  to { background-position: 2000px 0; }
}

@keyframes flyBats {
  from { background-position: 0 0; }
  to { background-position: 3000px 0; }
}

@keyframes lanternGlow {
  from { filter: brightness(0.8); }
  to { filter: brightness(1.3); }
}

@keyframes emberDrift {
  from { background-position: 0 0; }
  to { background-position: 0 1000px; }
}

/* 🕸️ Header */
header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ff6600;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .logo {
  font-size: 1.7rem;
  font-weight: 600;
  color: #ff6600;
  text-shadow: 0 0 12px #ff6600;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: all 0.3s;
}

nav a:hover,
nav a.active {
  color: #ff6600;
  text-shadow: 0 0 10px #ff6600;
}

/* 🎭 Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

.hero h2 {
  font-size: 2.5rem;
  color: #ffb347;
  text-shadow: 0 0 20px #ff6600;
}

.hero p {
  font-size: 1.2rem;
  color: #ddd;
  margin: 15px 0 25px;
}

.support-links button {
  margin: 10px;
  padding: 12px 25px;
  border: none;
  background: linear-gradient(90deg, #ff6600, #ff3300);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.support-links button:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #ff6600;
}

/* ⚡ Quick Help */
.quick-help {
  padding: 60px 20px;
  text-align: center;
  background: rgba(20, 20, 20, 0.8);
}

.quick-help h2 {
  color: #ffa64d;
  text-shadow: 0 0 15px #ff6600;
  margin-bottom: 30px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 40px;
}

.help-card {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 102, 0, 0.3);
  padding: 25px;
  border-radius: 16px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.help-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px #ff660066;
}

.help-card i {
  color: #ff6600;
  margin-bottom: 10px;
}

/* 🛰️ System Status */
.status {
  padding: 80px 30px;
  text-align: center;
  background: rgba(10, 10, 10, 0.85);
}

.status h2 {
  font-size: 2rem;
  color: #ff884d;
  text-shadow: 0 0 20px #ff6600;
}

.status-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.status-card {
  width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  text-align: left;
  border: 1px solid rgba(255, 102, 0, 0.3);
  transition: transform 0.3s;
}

.status-card:hover {
  transform: translateY(-5px);
}

.status-card.online .state {
  color: #00ff88;
}

.status-card.degraded .state {
  color: #ffcc00;
}

/* 💀 FAQ */
.faq {
  background: rgba(15, 15, 15, 0.9);
  padding: 80px 20px;
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  color: #ffa64d;
  text-shadow: 0 0 20px #ff6600;
  margin-bottom: 40px;
}

.faq-item {
  max-width: 700px;
  margin: 15px auto;
  border: 1px solid rgba(255, 102, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(30, 30, 30, 0.8);
  transition: all 0.3s;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px;
  background: none;
  border: none;
  color: #ffb347;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: #ddd;
  transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 18px;
}

/* 🕯️ Contact Form */
.contact-form {
  text-align: center;
  padding: 80px 20px;
  background: rgba(20, 20, 20, 0.85);
}

.contact-form h2 {
  color: #ff944d;
  text-shadow: 0 0 20px #ff6600;
  margin-bottom: 20px;
}

.contact-form form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.4);
  border-radius: 8px;
  color: #fff;
  padding: 12px;
  resize: none;
  outline: none;
}

.contact-form button {
  background: linear-gradient(90deg, #ff6600, #ff3300);
  border: none;
  padding: 12px 0;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px #ff6600;
}

/* 🤖 AI Assistant */
.ai-assistant {
  padding: 80px 20px;
  text-align: center;
  background: rgba(10, 10, 10, 0.8);
}

.ai-assistant h2 {
  color: #ff884d;
  text-shadow: 0 0 20px #ff6600;
}

.ai-assistant .ai-preview {
  max-width: 600px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 16px;
  padding: 30px;
  text-align: left;
}

.ai-assistant ul {
  list-style: "⚡ ";
  margin-left: 20px;
  color: #ccc;
}

/* 🕸️ Footer */
footer {
  text-align: center;
  padding: 25px;
  color: #aaa;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 102, 0, 0.3);
  background: rgba(0, 0, 0, 0.8);
}
/* 💬 Live Chat Popup */
.chat-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 25, 0.95);
  border: 2px solid #7a5cfb;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(122, 92, 251, 0.5);
  overflow: hidden;
  z-index: 9999;
  backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.chat-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #7a5cfb, #a88eff);
  padding: 12px 16px;
  color: #fff;
}

#chatHours {
  font-size: 0.8em;
  opacity: 0.8;
  margin-right: auto;
  margin-left: 10px;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
}

.message.bot {
  background: #2b2b33;
  color: #e2e2e2;
  align-self: flex-start;
}

.message.user {
  background: #7a5cfb;
  color: white;
  align-self: flex-end;
}

.chat-input {
  display: flex;
  border-top: 1px solid #444;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: white;
  outline: none;
}

.chat-input button {
  background: none;
  border: none;
  color: #a88eff;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.chat-input button:hover {
  color: #fff;
}

.hidden {
  display: none;
}
/* === Upgraded Infernal AI UI === */
.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,136,0,0.2);
  background: rgba(255,136,0,0.05);
}
.ai-header img {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,136,0,0.5);
}
.ai-header h3 {
  flex: 1;
  font-size: 1.2rem;
  color: #ffa64b;
}
.ai-header button {
  background: transparent;
  border: none;
  color: #ffb76b;
  cursor: pointer;
}

.ai-body {
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,136,0,0.2);
  border-radius: 12px;
  padding: 12px;
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.ai-body::-webkit-scrollbar { width: 6px; }
.ai-body::-webkit-scrollbar-thumb {
  background: rgba(255,136,0,0.4);
  border-radius: 3px;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  animation: fadeIn 0.4s ease;
}
.message.bot img,
.message.user img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,136,0,0.3);
}
.message .bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  position: relative;
  line-height: 1.4;
}
.message.user .bubble {
  background: rgba(255,136,0,0.1);
  color: #ffe4c2;
  border: 1px solid rgba(255,136,0,0.25);
}
.message.bot .bubble {
  background: rgba(255,136,0,0.18);
  color: #fff7e6;
  border: 1px solid rgba(255,136,0,0.25);
}
.timestamp {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
  text-align: right;
}
.typing {
  display: flex;
  gap: 4px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,136,0,0.6);
  animation: blink 1s infinite alternate;
}
.dot:nth-child(2){animation-delay:.2s;}
.dot:nth-child(3){animation-delay:.4s;}

@keyframes fadeIn { from {opacity:0; transform:translateY(5px);} to{opacity:1; transform:none;} }
@keyframes blink { from{opacity:0.2;} to{opacity:1;} }

.ai-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(255,136,0,0.05);
  border: 1px solid rgba(255,136,0,0.2);
  border-radius: 10px;
  padding: 6px;
}
.ai-input-area textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  resize: none;
  font-size: 0.95rem;
  padding: 6px;
}
.ai-input-area textarea:focus { outline: none; }
.ai-input-area button {
  background: linear-gradient(135deg,#ff7a18,#ff4800);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.ai-input-area button:hover { transform: scale(1.05); }
/* === SUMMON AI SECTION === */
.ai-section {
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at center, rgba(255,136,0,0.08), transparent 70%);
}

.summon-container {
  position: relative;
  z-index: 5;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ai-title {
  font-size: 2.2rem;
  color: #ffb347;
  text-shadow: 0 0 10px rgba(255,136,0,0.6), 0 0 30px rgba(255,136,0,0.3);
  margin-bottom: 12px;
}

.ai-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 24px;
}

.summon-button {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff4800);
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 120, 0, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summon-button::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, rgba(255,120,0,0.3), rgba(255,255,255,0.8), rgba(255,120,0,0.3));
  animation: spinGlow 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.summon-button:hover::before {
  opacity: 1;
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.summon-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(255,120,0,0.8);
}

.summon-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle at top, rgba(255,140,0,0.25), transparent 70%);
  filter: blur(60px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Shaking when summoning */
.ai-section.shaking {
  animation: shake 0.4s ease-in-out 0s 4;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
}
/* === Haunted Gooey Loading Bar === */
.loading-bar {
  width: 320px;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  margin: 25px auto 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 25px rgba(255,120,0,0.5);
  border: 1px solid rgba(255,120,0,0.2);
  backdrop-filter: blur(4px);
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff7a18, #ff4800, #ffb347);
  border-radius: 50px;
  box-shadow: 0 0 25px rgba(255,120,0,0.7);
  animation: gooWave 3s ease-in-out infinite;
  transition: width 0.1s linear;
  position: relative;
  overflow: visible;
  filter: url(#gooey-effect);
}

/* Spooky glowing drip animation */
.goo-drip {
  position: absolute;
  bottom: -8px;
  left: 20%;
  width: 10px;
  height: 10px;
  background: #ff6600;
  border-radius: 50%;
  animation: drip 2.5s infinite ease-in;
  opacity: 0.8;
  box-shadow: 0 0 20px #ff6600aa;
}

.goo-drip.delay1 {
  left: 50%;
  animation-delay: 1s;
}
.goo-drip.delay2 {
  left: 80%;
  animation-delay: 1.8s;
}

@keyframes drip {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  70% {
    transform: translateY(15px) scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: translateY(35px) scale(0.5);
    opacity: 0;
  }
}

/* Wavey glowing liquid motion */
@keyframes gooWave {
  0%,100% {
    filter: brightness(1.1) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.4) hue-rotate(20deg);
  }
}

#countdownText {
  font-size: 1.3rem;
  color: #ffb76b;
  text-shadow: 0 0 12px rgba(255,136,0,0.6), 0 0 30px rgba(255,80,0,0.3);
  animation: spookyPulse 2s ease-in-out infinite;
}

@keyframes spookyPulse {
  0%,100% { opacity: 0.8; text-shadow: 0 0 8px #ff6600; }
  50% { opacity: 1; text-shadow: 0 0 25px #ffa64d; }
}

/* Optional goo filter (you can drop this in your <body> once) */
svg#goo-filter {
  position: absolute;
  width: 0;
  height: 0;
}
/* 👻 AI Spirit Assistant Section */
.ai-assistant {
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  position: relative;
  background: radial-gradient(circle at center, #1b0b2b, #000);
  overflow: hidden;
}

.ai-assistant h2 {
  font-size: 2rem;
  text-shadow: 0 0 15px #a855f7;
}

.ai-assistant p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Countdown + Loading */
.summon-area {
  margin-top: 30px;
}

.ai-countdown {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #c084fc;
  text-shadow: 0 0 10px #c084fc;
}

.loading-bar {
  width: 300px;
  height: 10px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px #9333ea inset;
}

.loading-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #9333ea, #a855f7, #ec4899);
  animation: loading 5s linear forwards;
}

@keyframes loading {
  to { width: 100%; }
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translate(0); }
  20%, 60% { transform: translate(-8px, 8px); }
  40%, 80% { transform: translate(8px, -8px); }
}

.shake {
  animation: shake 0.6s ease-in-out;
}

/* Chat UI */
.chat-window {
  max-width: 500px;
  margin: 40px auto 0;
  background: rgba(20, 20, 35, 0.95);
  border: 2px solid #9333ea;
  border-radius: 15px;
  box-shadow: 0 0 25px #a855f7;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #2d1b4b;
  border-bottom: 1px solid #9333ea;
}

.chat-header .ai-avatar {
  width: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-header h3 {
  flex: 1;
  text-align: left;
  font-size: 1rem;
}

.status {
  font-size: 0.8rem;
  color: #10b981;
}

.chat-body {
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
}

.message {
  margin-bottom: 15px;
}

.message.bot {
  color: #e9d5ff;
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #888;
}

.chat-input {
  display: flex;
  gap: 8px;
  border-top: 1px solid #9333ea;
  padding: 10px;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1e1e2d;
  color: #fff;
}

.chat-input button {
  background: linear-gradient(90deg, #9333ea, #ec4899);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.3s;
}

.chat-input button:hover {
  box-shadow: 0 0 15px #ec4899;
}

.hidden {
  display: none;
}
