/* Color Palette Variables */
:root {
  --blue-100: #e6f0ff;
  --blue-200: #b3d1ff;
  --blue-300: #80b3ff;
  --blue-400: #4d94ff;
  --blue-500: #1a75ff;
  --blue-600: #005ce6;
  --blue-700: #0047b3;
  --blue-800: #003380;
  --blue-900: #001f4d;
  --purple-500: #8a2be2;
  --teal-500: #00b3b3;
  --pink-500: #ff66b2;
  --orange-500: #ff9900;
  --text-dark: #0a0a0a;
  --text-light: #f5f5f5;
  --accent-gradient: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  --hero-gradient: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                    var(--accent-gradient);
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
  :root {
    --blue-100: #001f4d;
    --blue-200: #003380;
    --blue-300: #0047b3;
    --blue-400: #005ce6;
    --blue-500: #1a75ff;
    --blue-600: #4d94ff;
    --blue-700: #80b3ff;
    --blue-800: #b3d1ff;
    --blue-900: #e6f0ff;
    --text-dark: #f5f5f5;
    --text-light: #0a0a0a;
  }
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--blue-100);
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* Critical Layout Components */
.hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-light);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
  text-shadow: 0 0 10px rgba(26, 117, 255, 0.7);
}

.hero p {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.interactive-button {
  background: var(--pink-500);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.interactive-button:hover {
  background: var(--teal-500);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 179, 179, 0.6);
}

.interactive-button:active {
  transform: translateY(1px);
}

.interactive-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.interactive-button:hover::after {
  opacity: 1;
}

.content-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section:nth-child(even) {
  background-color: var(--blue-200);
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--blue-800);
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--pink-500);
  border-radius: 2px;
}

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

.content-card {
  background: var(--accent-gradient);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.content-card:hover::before {
  left: 100%;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.content-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--teal-500);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: var(--pink-500);
  opacity: 0.7;
  animation: float 15s infinite ease-in-out;
  z-index: 0;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 70%;
  left: 80%;
  background: var(--teal-500);
  animation-delay: -2s;
}

.floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  left: 70%;
  background: var(--orange-500);
  animation-delay: -4s;
}

/* Animations */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 102, 178, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 102, 178, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 102, 178, 0); }
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, 20px) rotate(90deg); }
  50% { transform: translate(0, 40px) rotate(180deg); }
  75% { transform: translate(-20px, 20px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-section {
    padding: 2rem 1rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .floating-element {
    display: none;
  }
}

/* Focus Styles for Accessibility */
a:focus, button:focus {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

/* Structured Data */
.schema-markup {
  display: none;
}