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

/* Premium Dark Mode Design System */
:root {
  /* Colors */
  --bg-color: #030712; /* Deep space dark */
  --surface-color: rgba(17, 24, 39, 0.7); /* Slate 900 with opacity */
  --surface-hover: rgba(31, 41, 55, 0.8);
  --primary-color: #f9fafb; /* Gray 50 */
  --secondary-color: #9ca3af; /* Gray 400 */
  --accent-color: #10B981; /* Emerald 500 */
  --highlight-color: #34d399; /* Emerald 400 */
  --gradient-accent: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.4s;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent 50%),
                    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 50%);
}

main {
  flex-grow: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
  color: var(--bg-color);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--highlight-color);
  color: var(--highlight-color);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  border: none;
}

.btn-accent:hover {
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transform: translateY(-3px) scale(1.02);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

input, select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--highlight-color);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Typography */
h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 16px;
}

p {
  color: var(--secondary-color);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Flex utils */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Grid Utils */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
  .grid-cols-3, .grid-cols-4, .grid-cols-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Cards Hover Effects */
.hover-card {
  transition: all var(--transition-speed) ease;
}
.hover-card:hover {
  transform: translateY(-8px);
  border-color: var(--highlight-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}
.lang-btn {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s;
}
.lang-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
}
.lang-btn:hover:not(.active) {
    color: var(--primary-color);
}
