/* Modern Colorful Theme with Dark/Light Mode - Enhanced */
:root {
  /* Vibrant Light Theme */
  --bg-color: #f8f9ff;
  --text-color: #2d3436;
  --primary-color: #6c5ce7;
  --primary-light: #8579e9;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --accent-light: #ff8db3;
  --highlight-color: #ffeaa7;
  --card-bg: #ffffff;
  --shadow-color: rgba(108, 92, 231, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.98);
  --border-color: #dfe6e9;
  --footer-bg: #2d3436;
  --footer-text: #b2bec3;
  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #8579e9 100%);
  --gradient-accent: linear-gradient(135deg, #fd79a8 0%, #ff8db3 100%);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark-mode {
  /* Deep Dark Theme */
  --bg-color: #0f0e17;
  --text-color: #fffffe;
  --primary-color: #7f5af0;
  --primary-light: #8f6df3;
  --secondary-color: #9370db;
  --accent-color: #ff8906;
  --accent-light: #ff9740;
  --highlight-color: #f9bc60;
  --card-bg: #16161a;
  --shadow-color: rgba(31, 30, 46, 0.5);
  --nav-bg: rgba(22, 22, 26, 0.98);
  --border-color: #2e2e3a;
  --footer-bg: #0a0a0f;
  --gradient-primary: linear-gradient(135deg, #7f5af0 0%, #8f6df3 100%);
  --gradient-accent: linear-gradient(135deg, #ff8906 0%, #ff9740 100%);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Modern Typography - Enhanced */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 5px;
  background: var(--gradient-accent);
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Layout & Containers - Enhanced */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
}

/* Colorful Buttons - Enhanced */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1rem;
  box-shadow: var(--card-shadow);
}

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

.btn:hover::before {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

/* Glowing Cards - Enhanced */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--primary-light);
}

.card:hover::after {
  opacity: 0.05;
}

.card-content {
  padding: 2rem;
}

/* Modern Form Elements - Enhanced */
.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* Animations - Enhanced */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.gradient-flow {
  background-size: 200% 200%;
  animation: gradientFlow 8s ease infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .btn {
    padding: 0.9rem 1.75rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  h2::after {
    bottom: -8px;
    width: 50px;
    height: 4px;
  }
  
  input,
  textarea,
  select {
    padding: 0.9rem 1.25rem;
  }
}

/* Special Effects - Enhanced */
.highlight-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  padding: 0 0.2em;
}

.glow-effect {
  filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.4));
  transition: filter 0.3s ease;
}

.glow-effect:hover {
  filter: drop-shadow(0 0 16px rgba(108, 92, 231, 0.6));
}

/* Custom Scrollbar - Enhanced */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
}

/* Section Backgrounds */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
}

.section-bg svg {
  width: 100%;
  height: 100%;
  fill: var(--primary-color);
}