/* global.css - Shared styles across all pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  zoom: 105%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
  transition: all 0.3s ease;
  text-align: center;
}

/* Navigation Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(40, 6, 85, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
  text-wrap: wrap;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: typing 3s steps(40) 1s forwards;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: block;
  justify-items: center;
}

.nav-links {
  display: flex;
  justify-content: space-between; /* This pushes nav links left and language switcher right */
  align-items: center; 
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 ;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: whitesmoke;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  display: block; 
}

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

.nav-links a.active {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .language-switcher {
    order: -1; /* Move language switcher to top on mobile */
  }
}

/* Page transition animations */
main {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  min-height: calc(100vh - 120px);
  padding-top: 80px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #240b60, #1f52a6);
  background-size: cover;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Reveal on scroll animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .nav-links a {
    padding: 0.8rem;
  }
  
  main {
    padding-top: 120px;
  }
}