@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-color: #050811;
  --primary-glow: rgba(0, 180, 216, 0.08);
  --secondary-glow: rgba(0, 119, 182, 0.05);
  --accent-color: #00b4d8;
  --accent-glow: rgba(0, 180, 216, 0.2);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 
                 inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: var(--font-sans);
  color: var(--text-primary);
}

/* Atmospheric Glow Background */
.ambient-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.glow-1 {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 180, 216, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float-glow-1 25s ease-in-out infinite alternate;
}

.glow-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0, 119, 182, 0) 70%);
  border-radius: 50%;
  filter: blur(70px);
  animation: float-glow-2 20s ease-in-out infinite alternate;
}

/* Background interactive canvas */
#canvas-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Main Layout Grid */
.main-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  z-index: 10;
  perspective: 1500px; /* 3D depth */
}

/* Interactive 3D Card */
.console-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  z-index: 15;
  text-align: center;
}

.console-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 40px 90px rgba(0, 180, 216, 0.08),
              0 30px 70px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 3D Elements Positioning inside the card */
.tilt-element-logo {
  transform: translateZ(50px);
  margin-bottom: 2rem;
  display: inline-block;
}

.tilt-element-header {
  transform: translateZ(40px);
}

.tilt-element-progress {
  transform: translateZ(30px);
}

.tilt-element-footer {
  transform: translateZ(25px);
}

/* Logo Styling */
.logo-container {
  position: relative;
  display: inline-block;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 180, 216, 0) 70%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  animation: logo-glow-pulse 4s ease-in-out infinite alternate;
}

.logo-img {
  position: relative;
  max-width: 130px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  animation: floating-logo 5s ease-in-out infinite alternate;
}

/* Maintenance Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  color: var(--accent-color);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.05);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Text Styling */
h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, #90e0ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 2.5rem auto;
}

/* Premium Glowing Progress Bar */
.progress-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 3rem;
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-label {
  color: var(--text-muted);
  font-weight: 500;
}

.progress-percentage {
  color: var(--text-primary);
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  border-radius: 10px;
  box-shadow: 0 0 12px var(--accent-glow);
  position: relative;
  transition: width 2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine-bar 2s infinite linear;
}

/* Premium Email Chip with Clipboard Action */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.email-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.email-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
  transform: translateY(-2px);
}

.email-chip:active {
  transform: translateY(0);
}

.email-text {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.email-chip:hover .email-text {
  color: var(--text-primary);
}

.copy-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.email-chip:hover .copy-icon {
  fill: var(--accent-color);
  transform: scale(1.1);
}

/* Custom Glassmorphic Notification Toast */
.toast-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 180, 216, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(0, 180, 216, 0.1);
  z-index: 100;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast-notification.show {
  bottom: 40px;
}

.toast-icon {
  width: 16px;
  height: 16px;
  fill: var(--accent-color);
}

.toast-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Brand copyright bottom footer (optional semantic details) */
footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 10;
}

/* Animations */
@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 5%) scale(1.1); }
  100% { transform: translate(-5%, -8%) scale(0.9); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -10%) scale(1.05); }
  100% { transform: translate(5%, 5%) scale(0.95); }
}

@keyframes floating-logo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes logo-glow-pulse {
  0% { opacity: 0.6; filter: blur(10px) scale(0.95); }
  100% { opacity: 1; filter: blur(16px) scale(1.05); }
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shine-bar {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Mobile Responsiveness styling updates */
@media (max-width: 580px) {
  .console-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .description {
    font-size: 0.85rem;
    margin-bottom: 2rem;
  }
  
  .progress-container {
    padding: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .logo-img {
    max-width: 100px;
  }
}
