/* 
 * AJAY Dev Studio Website Styles
 * Modern, Futuristic, User-Friendly Design
 */

:root {
  /* Color palette */
  --primary: #1e88e5;
  /* Futuristic blue */
  --primary-light: #6ab7ff;
  /* Lighter blue for glows */
  --primary-dark: #005cb2;
  /* Darker blue for depth */
  --secondary: #00c853;
  /* Vibrant green for accents */
  --secondary-light: #5efc82;
  /* Lighter green for glows */
  --background: #f5f5f7;
  /* Light background */
  --dark-bg: #121212;
  /* Dark background for footer */
  --text: #333333;
  /* Dark grey for text */
  --light-text: #ffffff;
  /* White text */
  --border: #e0e0e0;
  /* Light border color */
  --text-light: #666666;
  /* Muted text color */

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Effects */
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --button-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
  --button-shadow-hover: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.15);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --section-spacing: 6rem;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

body.page-transition-out {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(0, 200, 83, 0.1);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section with Particles */
.hero {
  padding: 0;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(0, 200, 83, 0.1));
}

.hero.fallback-bg {
  background: linear-gradient(135deg, #1e88e5, #00c853);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  z-index: 5;
  padding: 5rem 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Animation classes */
.animated-heading {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animated-subheading {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary));
  z-index: -1;
  transition: all 0.4s ease;
}

.btn-primary {
  color: white;
}

.btn-primary::before {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(30, 136, 229, 0.4);
}

.btn-primary:hover::before {
  transform: scaleX(1.1) scaleY(1.2);
  opacity: 0.9;
}

.btn-secondary {
  color: white;
}

.btn-secondary::before {
  background: linear-gradient(45deg, var(--secondary), var(--secondary-light));
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 200, 83, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline::before {
  opacity: 0;
  transform: scale(0.5);
}

.btn-outline:hover {
  color: white;
}

.btn-outline:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Glow Effects */
.glow-effect {
  animation: glowPulse 2s infinite;
  opacity: 0;
  animation-delay: 0.6s;
  animation-fill-mode: forwards;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.4);
  }

  50% {
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.6);
  }

  100% {
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.4);
  }
}

/* Features/Apps Section */
.section {
  padding: 5rem 0;
}

.bg-white {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* App Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.app-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, transparent 50%, var(--primary) 50%, var(--secondary) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(30, 136, 229, 0.3);
}

.app-card:hover::before {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    background: linear-gradient(45deg, transparent 50%, var(--primary) 50%, var(--secondary) 100%);
  }

  50% {
    background: linear-gradient(225deg, transparent 50%, var(--primary) 50%, var(--secondary) 100%);
  }

  100% {
    background: linear-gradient(405deg, transparent 50%, var(--primary) 50%, var(--secondary) 100%);
  }
}

.app-card-image {
  height: 200px;
  background-color: rgba(240, 240, 240, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.app-card-image::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-card:hover .app-card-image::after {
  opacity: 1;
}

.app-card-image>div {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.app-card:hover .app-card-image>div {
  transform: scale(1.1) rotateZ(-5deg);
}

.app-card-content {
  padding: 1.5rem;
  transform: translateZ(0);
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-content {
  transform: translateZ(20px);
}

.app-card-content h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  transition: color 0.5s ease;
}

.app-card:hover .app-card-content h3 {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: scale(1.05);
}

.app-card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  opacity: 0.9;
  transform: translateY(5px);
  transition: all 0.5s ease;
}

.app-card:hover .app-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.icon-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  opacity: 0.7;
  z-index: 1;
  transition: all 0.5s ease;
}

.app-card:hover .icon-highlight {
  opacity: 1;
  animation: moveHighlight 3s infinite alternate ease-in-out;
}

@keyframes moveHighlight {
  0% {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  }

  50% {
    background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  }

  100% {
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  }
}

.app-tagline {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* About Section */
.vision-mission {
  background-color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vision-mission:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.team-member {
  background-color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(30, 136, 229, 0.2), rgba(0, 200, 83, 0.2));
  z-index: 1;
}

.team-photo img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

/* App Details */
.app-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.app-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.05);
}

.features-list {
  list-style: none;
}

.features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.features-list li:hover {
  transform: translateX(5px);
}

.features-list li:before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  margin-right: 10px;
}

.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.screenshot {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 400px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.screenshot img {
  max-width: 100%;
  height: auto;
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

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

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 4rem 0 0;
  /* Removed bottom padding completely */
  position: relative;
  margin-top: auto;
  /* Sticky footer */
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
}

.footer-logo h3 {
  color: var(--light-text);
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  bottom: -5px;
  left: 0;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--light-text);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--light-text);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
  padding-bottom: 0.5rem;
  /* Tightened further */
}

.footer-bottom p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .app-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 2rem;
  }

  nav ul li {
    margin: 0 0 1.5rem 0;
  }

  .hero {
    padding: 3rem 0;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }

  .vision-mission,
  .contact-form {
    padding: 1.5rem;
  }

  .screenshot {
    height: 350px;
  }
}

/* Animation classes for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer effect for buttons */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: shimmerEffect 1.5s ease-in-out;
}

@keyframes shimmerEffect {
  from {
    transform: rotate(30deg) translateX(-100%);
  }

  to {
    transform: rotate(30deg) translateX(100%);
  }
}

/* Form validation animations */
.shake {
  animation: shakeEffect 0.5s ease-in-out;
}

@keyframes shakeEffect {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.invalid {
  border-color: #ff3860 !important;
  box-shadow: 0 0 0 3px rgba(255, 56, 96, 0.1) !important;
}

/* Dark Mode Styles */
:root {
  /* Light mode colors */
  --primary: #1e88e5;
  --primary-light: #6ab7ff;
  --primary-dark: #005cb2;
  --secondary: #00c853;
  --secondary-light: #5efc82;
  --background: #f5f5f7;
  --dark-bg: #121212;
  --text: #333333;
  --light-text: #ffffff;
  --border: #e0e0e0;
  --text-light: #666666;
}

[data-theme="dark"] {
  /* Dark mode colors */
  --primary: #64b5f6;
  --primary-light: #9be7ff;
  --primary-dark: #2286c3;
  --secondary: #69f0ae;
  --secondary-light: #9fffe0;
  --secondary-dark: #2bbd7e;
  --background: #121212;
  --dark-bg: #0a0a0a;
  --text: #e0e0e0;
  --light-text: #f5f5f7;
  --light-text: #f5f5f7;
  --border: #383838;
  --text-light: #b0b0b0;

  /* Dark mode specific overrides */
  background-color: var(--background);
}

[data-theme="dark"] .app-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .vision-mission,
[data-theme="dark"] .team-member {
  background-color: #1e1e1e;
  background-color: #1e1e1e;
  border-color: #383838;
}

[data-theme="dark"] .bg-white {
  background-color: #121212;
  /* Matches dark background */
}

[data-theme="dark"] .showcase-app,
[data-theme="dark"] .cta-content {
  background-color: #1e1e1e;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .app-description {
  color: var(--text-light);
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(0, 200, 83, 0.2));
}

[data-theme="dark"] header {
  background-color: rgba(18, 18, 18, 0.95);
}

[data-theme="dark"] .form-control {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #383838;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(105, 240, 174, 0.1));
}

[data-theme="dark"] nav {
  background-color: var(--dark-bg);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-menu-btn {
  color: var(--light-text);
}

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-links h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul li a:hover {
    transform: translateX(0) scale(1.05);
    /* Better transform for center align */
  }

  /* Adjust badge for mobile */
  .privacy-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    width: auto;
    max-width: 90%;
    justify-content: center;
  }

  .privacy-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-hero {
    padding: 6rem 0 3rem;
    /* Better top padding for fixed header */
  }
}

@media (max-width: 480px) {
  .privacy-badge {
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 20px;
  }

  .privacy-separator {
    display: none;
  }

  .privacy-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
  }
}

/* =========================================
   Brand Enhancements: Privacy Badge & Sci-Fi Text
   ========================================= */

/* 1. Privacy Pulse Badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(0, 200, 83, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  margin-top: 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: default;
}

[data-theme="light"] .privacy-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-color: rgba(0, 200, 83, 0.4);
}

.privacy-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.2);
  border-color: var(--secondary);
}

.privacy-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--secondary);
  position: relative;
}

.privacy-shield::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.2;
  animation: pulse-green 2s infinite;
}

.privacy-shield::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.1;
  animation: pulse-green 2s infinite 0.5s;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.0;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.0;
  }
}

.privacy-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.privacy-separator {
  color: var(--secondary);
  opacity: 0.5;
}

/* 2. Sci-Fi Typography */
.scramble-text {
  font-family: 'Poppins', sans-serif;
  /* Or a monospace font for more effect */
}

.dud {
  color: var(--secondary);
  opacity: 0.7;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Add to footer for positioning */
.footer-badge-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
  /* Removed bottom margin */
}