/* Main Styles for UPF Website */

:root {
  --primary-color: #7e57c2; /* Purple */
  --secondary-color: #00e5ff; /* Cyan */
  --accent-color: #76ff03; /* Green */
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: rgba(30, 30, 40, 0.8);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glow-primary: 0 0 15px rgba(126, 87, 194, 0.7);
  --glow-secondary: 0 0 15px rgba(0, 229, 255, 0.7);
  --glow-accent: 0 0 15px rgba(118, 255, 3, 0.7);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(126, 87, 194, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(118, 255, 3, 0.1) 0%, transparent 70%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

/* Navigation */
.main-nav {
  background: rgba(10, 10, 15, 0.95);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  box-shadow: var(--glow-primary);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-speed) ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-speed) ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* Account for fixed nav */
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.manifesto {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: gradientShift 8s ease infinite;
  background-size: 300% 300%;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.cta-button.primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.cta-button:hover {
  transform: translateY(-3px);
}

.cta-button.primary:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4), var(--glow-primary);
}

.cta-button.secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4), var(--glow-secondary);
}

/* Energy Wave Animation */
.energy-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  background: linear-gradient(to bottom, transparent, var(--dark-bg));
}

/* Section Styles */
section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(odd) {
  background: linear-gradient(to bottom, var(--dark-bg), rgba(18, 18, 18, 0.95));
}

section:nth-child(even) {
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.95), var(--dark-bg));
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 1rem auto 0;
  border-radius: 3px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Intro Cards */
.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.intro-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.intro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), var(--glow-primary);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(126, 87, 194, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
}

.intro-card:nth-child(2) .card-icon {
  background: rgba(0, 229, 255, 0.2);
  color: var(--secondary-color);
}

.intro-card:nth-child(3) .card-icon {
  background: rgba(118, 255, 3, 0.2);
  color: var(--accent-color);
}

.intro-card h3 {
  margin-bottom: 1rem;
}

/* Equations Cards */
.equations-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.equation-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.equation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), var(--glow-secondary);
}

.equation-display {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.equation {
  font-size: 1.8rem;
  font-family: 'Cambria Math', 'Times New Roman', serif;
  color: var(--text-primary);
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-top: 1rem;
}

.learn-more i {
  transition: transform var(--transition-speed) ease;
}

.learn-more:hover i {
  transform: translateX(5px);
}

/* Languages Grid */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.language-item {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.language-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), var(--glow-accent);
}

.language-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(126, 87, 194, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
}

.language-item:nth-child(2) .language-icon {
  background: rgba(0, 229, 255, 0.2);
  color: var(--secondary-color);
}

.language-item:nth-child(3) .language-icon {
  background: rgba(118, 255, 3, 0.2);
  color: var(--accent-color);
}

.language-item:nth-child(4) .language-icon {
  background: rgba(255, 64, 129, 0.2);
  color: #ff4081;
}

/* Theories Cards */
.theories-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.theory-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.theory-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), var(--glow-primary);
}

.theory-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(126, 87, 194, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
}

.theory-card:nth-child(2) .theory-icon {
  background: rgba(0, 229, 255, 0.2);
  color: var(--secondary-color);
}

.theory-card:nth-child(3) .theory-icon {
  background: rgba(118, 255, 3, 0.2);
  color: var(--accent-color);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(to right, rgba(126, 87, 194, 0.2), rgba(0, 229, 255, 0.2));
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

/* Footer */
.main-footer {
  background: var(--darker-bg);
  padding: 4rem 0 1rem;
  color: var(--text-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo .logo-icon {
  margin-bottom: 1rem;
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin-top: 0.8rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.acknowledgment {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .manifesto {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .equation {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-150%);
    transition: transform var(--transition-speed) ease;
    z-index: -1;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 0;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    text-align: center;
  }
  
  .manifesto {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button {
    width: 100%;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .manifesto {
    font-size: 1.7rem;
  }
  
  .equation {
    font-size: 1.2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
