@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #059669;
  --primary-light: #10B981;
  --primary-dark: #047857;
  --secondary: #7C3AED;
  --accent: #F59E0B;
  --danger: #EF4444;
  --dark: #0F172A;
  --light: #F8FAFC;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html.dark {
  --primary: #10B981;
  --primary-light: #34D399;
  --primary-dark: #059669;
  --secondary: #A78BFA;
  --accent: #FBBF24;
  --danger: #EF4444;
  --dark: #0F172A;
  --light: #1E293B;
  --text-dark: #F1F5F9;
  --text-light: #CBD5E1;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--light);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

html.dark body {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  background-attachment: fixed;
}

/* ============ ANIMATIONS ============ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(5, 150, 105, 0.3); }
  50% { box-shadow: 0 0 40px rgba(5, 150, 105, 0.6); }
}

/* ============ NAVIGATION ============ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

html.dark nav {
  background: rgba(15, 23, 42, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

nav:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

html.dark nav:hover {
  background: rgba(15, 23, 42, 0.95);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

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

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #059669 0%, #7C3AED 50%, #F59E0B 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
  transition: all 0.3s ease;
}

.logo-icon:hover {
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
  transform: rotate(5deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #7C3AED);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  color: #059669;
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: #059669;
  color: white;
  border-color: #059669;
  transform: rotate(20deg);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
}

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

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--light);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideInDown 0.3s ease-out;
}

html.dark .mobile-menu {
  background: #1E293B;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: #059669;
  color: white;
  transform: translateX(5px);
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  overflow: hidden;
}

html.dark .hero {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #059669 0%, #7C3AED 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 0.8s ease-out;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

/* ============ SECTIONS ============ */
section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #059669 0%, #7C3AED 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 0.6s ease-out;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-light);
  animation: slideInUp 0.6s ease-out 0.1s both;
}

/* ============ GRID ============ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============ CARDS ============ */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.5s ease-out;
}

html.dark .card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.05);
}

.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 ease;
}

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

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  pointer-events: none;
}

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

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.2);
  border-color: #059669;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.card-header {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #059669, #7C3AED, #F59E0B);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.6s ease-out;
  position: relative;
  z-index: 1;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #7C3AED 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #F59E0B 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  position: relative;
  z-index: 1;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-outline {
  background: transparent;
  color: #059669;
  border: 2px solid #059669;
  position: relative;
  z-index: 1;
}

.btn-outline:hover {
  background: #059669;
  color: white;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

html.dark .form-group input,
html.dark .form-group select,
html.dark .form-group textarea {
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  transform: scale(1.01);
}

/* ============ LIST ITEMS ============ */
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  animation: slideInLeft 0.5s ease-out;
}

.list-item-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #059669 0%, #7C3AED 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.list-item span {
  color: var(--text-light);
  line-height: 1.5;
}

/* ============ BACKGROUND COLORS ============ */
.bg-primary {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #7C3AED 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.bg-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.bg-primary::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.bg-primary .container {
  position: relative;
  z-index: 1;
}

.card-border {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

html.dark .card-border {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

/* ============ TEXT UTILITIES ============ */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mt-8 {
  margin-top: 2rem;
}

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  color: #E2E8F0;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #059669, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

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

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

.footer-section ul li a {
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #059669, #7C3AED);
  transition: width 0.3s ease;
}

.footer-section ul li a:hover {
  color: #059669;
  transform: translateX(5px);
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-divider a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-divider a:hover {
  color: #059669;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu.active {
    display: flex;
  }

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

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

  .section-title h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  section {
    padding: 3rem 0;
  }

  .footer-divider {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ CUSTOM SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

html.dark ::-webkit-scrollbar-track {
  background: #0F172A;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #059669 0%, #7C3AED 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #047857 0%, #6D28D9 100%);
}
