:root {
  --mouse-x: 50%;
  --mouse-y: 50%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  color: #f1f5f9;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15), transparent 50%),
    linear-gradient(135deg, #0a0e1a 0%, #0f172a 50%, #0a0e1a 100%);
  background-attachment: fixed;
  transition: background 0.3s ease, color 0.3s ease;
}
/* Light mode styles */
body.light-mode {
  color: #1e293b;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
}
body.light-mode .backdrop {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.03), transparent),
    repeating-linear-gradient(45deg, transparent 0px, transparent 20px, rgba(0, 0, 0, 0.015) 20px, rgba(0, 0, 0, 0.015) 40px);
}
body.light-mode .glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
body.light-mode .glass::before {
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(59, 130, 246, 0.06), transparent 60%);
}
body.light-mode .hero-text {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #c026d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-mode input,
body.light-mode textarea {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}
body.light-mode .text-slate-300 {
  color: #475569 !important;
}
body.light-mode .text-slate-400 {
  color: #64748b !important;
}
body.light-mode .text-slate-500 {
  color: #64748b !important;
}
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent),
    repeating-linear-gradient(45deg, transparent 0px, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 40px);
  mix-blend-mode: overlay;
  z-index: 0;
}
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: inherit;
}
.glass:hover::before {
  opacity: 1;
}
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, 
    rgba(255, 255, 255, 0.6), 
    rgba(59, 130, 246, 0.4) 30%, 
    transparent 50%, 
    rgba(139, 92, 246, 0.4) 70%, 
    rgba(255, 255, 255, 0.6));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: borderRotate 6s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
nav.glass {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: visible;
}
/* Navigation variant with no border */
nav.nav-no-border {
  border: none;
}
/* Navigation variant with light border */
nav.nav-light-border {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-text {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #c026d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.7);
}
.btn-purple {
  background: linear-gradient(135deg, #c026d3, #a855f7);
  box-shadow: 0 10px 30px -10px rgba(192, 38, 211, 0.6);
}
.btn-purple:hover {
  box-shadow: 0 15px 40px -10px rgba(192, 38, 211, 0.8);
}
section {
  padding: 5rem 0;
  scroll-margin-top: 100px;
}
/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  transform: scale(1.05);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.theme-toggle:hover svg {
  transform: rotate(20deg);
}
/* Light mode theme toggle */
body.light-mode .theme-toggle {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05));
  border: 1px solid rgba(0, 0, 0, 0.15);
}
body.light-mode .theme-toggle:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08));
}
body.light-mode .theme-toggle svg {
  color: #1e293b;
}
/* Language selector styles */
.language-selector {
  position: relative;
}
.language-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f1f5f9;
}
.language-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  transform: scale(1.05);
}
.language-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.language-selector.active .language-btn svg {
  transform: rotate(180deg);
}
/* Light mode language selector */
body.light-mode .language-btn {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05));
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1e293b;
}
body.light-mode .language-btn:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08));
}
body.light-mode .language-dropdown {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}
body.light-mode .language-option {
  color: #1e293b;
}
body.light-mode .language-option:hover {
  background: rgba(0, 0, 0, 0.05);
}
body.light-mode .language-option.active {
  background: rgba(59, 130, 246, 0.15);
}
.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 14, 26, 0.9));
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #f1f5f9;
  white-space: nowrap;
}
.language-option:first-child {
  border-radius: 12px 12px 0 0;
}
.language-option:last-child {
  border-radius: 0 0 12px 12px;
}
.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
}
.language-option.active {
  background: rgba(59, 130, 246, 0.2);
}
/* Ensure emoji flags render properly on all platforms */
.flag-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  font-size: 1.1em;
  line-height: 1;
}

/* Social media icons */
.social-icon {
  opacity: 0.6;
  filter: grayscale(30%);
}
.social-icon:hover {
  opacity: 1;
  filter: grayscale(0%);
}
/* Grayscale to color effect for about image */
.grayscale-container {
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.grayscale-image {
  filter: grayscale(100%);
  transform: scale(1.02);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.grayscale-container.active .grayscale-image {
  filter: grayscale(0%);
  transform: scale(1);
}
/* Notification styles */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  max-width: 400px;
  padding: 20px 24px;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: start;
  gap: 12px;
}

.notification.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.notification.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.notification-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.notification.success .notification-title {
  color: rgb(16, 185, 129);
}

.notification.error .notification-title {
  color: rgb(239, 68, 68);
}

.notification-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notification.hiding {
  animation: slideOut 0.3s ease-in forwards;
}

@media (max-width: 640px) {
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
