@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary: #818cf8;
  /* Indigo-400 */
  --primary-glow: rgba(129, 140, 248, 0.5);
  --accent: #22d3ee;
  /* Cyan-400 */

  /* Deep Aurora Gradient */
  --bg-gradient: linear-gradient(135deg, #020617 0%, #1e1b4b 50%, #312e81 100%);

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --card-hover-bg: rgba(255, 255, 255, 0.07);

  --text-main: #ffffff;
  --text-muted: #e2e8f0;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Light Theme Override */
:root[data-theme="light"] {
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.3);
  --accent: #0ea5e9;

  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.5);
  --card-hover-bg: #fff;

  --text-main: #1e293b;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Toggle Button Style */
.theme-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.1);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  /* Parallax-like feel */
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Header - Glass Strip */
.header {
  padding: 1.5rem 2rem;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header h1 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, #fff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(199, 210, 254, 0.3);
}

.header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.header nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.main {
  flex: 1;
  padding: 4rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Hero Section */
.seo-description,
.description {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.seo-description h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.seo-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

/* Cards - Glassmorphism */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--card-hover-bg);
  border-color: var(--glass-highlight);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.2);
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: rotate(10deg) scale(1.1);
}

.card h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.75rem 0;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Tools Container */
.tool-container,
.tool-form {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Inner glow for tool container */
.tool-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.tool-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tool-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.tool-header p {
  color: var(--text-muted);
}

/* Inputs & Buttons */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
}

.drop-zone:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  color: #fff;
}

input[type="text"],
textarea,
.result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary,
button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  letter-spacing: 0.02em;
}

.btn-primary:hover,
button:hover {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: rgba(2, 6, 23, 0.8);
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.footer a {
  margin: 0 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Disclaimer Box Adjustment */
div[style*="background: #fffbeb"] {
  background: rgba(254, 252, 232, 0.1) !important;
  border-left: 4px solid #fbbf24 !important;
  color: #fef3c7 !important;
  backdrop-filter: blur(4px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    background: rgba(2, 6, 23, 0.9);
  }

  .main {
    padding: 2rem 1rem;
  }

  .tool-container,
  .tool-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .seo-description h2 {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
  background-color: #20bd5a;
}

.whatsapp-float svg {
  width: 38px;
  height: 38px;
  fill: white;
}