/* CSS Variables for theme colors */
:root {
  /* Light theme (default) */
  --bg-gradient-start: #f5f7fa;
  --bg-gradient-end: #e4e8f0;
  --text-color: #333;
  --text-secondary: #555;
  --text-muted: #666;
  --text-footer: #777;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.05);
  --card-shadow-hover: rgba(0, 0, 0, 0.1);
  --button-shadow: rgba(0, 0, 0, 0.1);
  --button-shadow-hover: rgba(0, 0, 0, 0.15);
  --primary-gradient-start: #3a7bd5;
  --primary-gradient-end: #00d2ff;
  --primary-shadow: rgba(58, 123, 213, 0.4);
  --primary-shadow-hover: rgba(58, 123, 213, 0.5);
  --logo-shadow: rgba(0, 0, 0, 0.1);
  --logo-shadow-hover: rgba(0, 0, 0, 0.15);
  --toggle-bg: #f0f0f0;
  --toggle-circle: #ffffff;
  --toggle-shadow: rgba(0, 0, 0, 0.2);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-gradient-start: #1a1a2e;
  --bg-gradient-end: #16213e;
  --text-color: #e6e6e6;
  --text-secondary: #cccccc;
  --text-muted: #aaaaaa;
  --text-footer: #888888;
  --card-bg: #242747;
  --card-shadow: rgba(0, 0, 0, 0.2);
  --card-shadow-hover: rgba(0, 0, 0, 0.3);
  --button-shadow: rgba(0, 0, 0, 0.3);
  --button-shadow-hover: rgba(0, 0, 0, 0.4);
  --primary-gradient-start: #3a7bd5;
  --primary-gradient-end: #00d2ff;
  --primary-shadow: rgba(58, 123, 213, 0.3);
  --primary-shadow-hover: rgba(58, 123, 213, 0.4);
  --logo-shadow: rgba(0, 0, 0, 0.3);
  --logo-shadow-hover: rgba(0, 0, 0, 0.4);
  --toggle-bg: #444;
  --toggle-circle: #3a7bd5;
  --toggle-shadow: rgba(0, 0, 0, 0.4);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Theme toggle switch */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 100;
}

.theme-switch {
  display: inline-block;
  height: 26px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--toggle-bg);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: var(--toggle-circle);
  bottom: 3px;
  content: "";
  height: 20px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 20px;
  border-radius: 50%;
  box-shadow: 0 0 2px var(--toggle-shadow);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.theme-icon {
  margin-left: 10px;
  font-size: 20px;
}

/* Header styles */
header {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-gradient-start);
}

/* Hero section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 15px var(--logo-shadow));
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-logo:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 15px 20px var(--logo-shadow-hover));
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
}

/* Button styles */
.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.primary-button {
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  box-shadow: 0 4px 15px var(--primary-shadow);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-shadow-hover);
}

.secondary-button {
  background: var(--card-bg);
  color: var(--primary-gradient-start);
  box-shadow: 0 4px 15px var(--button-shadow);
}

.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--button-shadow-hover);
}

/* Features section */
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--card-shadow);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--card-shadow-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-gradient-start);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 30px 0;
  text-align: center;
  color: var(--text-footer);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  nav a {
    margin: 0 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-logo {
    width: 140px;
  }
  
  .theme-switch-wrapper {
    top: 10px;
    right: 10px;
  }
}
