@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #0f0f23;
  --card-bg: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-accent: #667eea;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-primary: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

a {
  text-decoration: none;
  color: var(--text-accent);
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

ul {
  list-style: none;
}

/* Main Container */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header Navigation */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin: -2rem -2rem 2rem -2rem;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Page Title */
.page-title {
  text-align: center;
  margin: 2rem 0 3rem;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Cards */
.sub {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sub:hover::before {
  transform: scaleX(1);
}

.sub:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(102, 126, 234, 0.3);
}

.sub::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 0.1; }
}

.sub > * {
  position: relative;
  z-index: 2;
}

.sub h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub h2::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.sub p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sub p:last-child {
  margin-bottom: 0;
}

/* Enhanced Lists */
.sub ul {
  margin: 1.5rem 0;
  padding-left: 0;
}

.sub ul li {
  color: var(--text-secondary);
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  transition: var(--transition);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.sub ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-size: 0.8rem;
  transition: var(--transition);
}

.sub ul li:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2.5rem;
}

.sub ul li:hover::before {
  color: var(--text-primary);
  transform: scale(1.2);
}

/* Special styling for contact information */
.contact-info {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.contact-info a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a:hover {
  transform: scale(1.05);
}

/* Highlight important text */
.sub strong {
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Footer */
.footer {
  margin-top: auto;
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  border-radius: 20px 20px 0 0;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a {
  color: var(--text-accent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub {
  animation: fadeInUp 0.6s ease-out;
}

.sub:nth-child(1) { animation-delay: 0.1s; }
.sub:nth-child(2) { animation-delay: 0.2s; }
.sub:nth-child(3) { animation-delay: 0.3s; }
.sub:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
  .main {
    padding: 1rem;
    gap: 1.5rem;
  }

  .nav-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .page-title h1 {
    font-size: 2rem;
  }

  .page-title p {
    font-size: 1rem;
  }

  .sub {
    padding: 2rem 1.5rem;
  }

  .sub h2 {
    font-size: 1.5rem;
  }

  .header-nav {
    margin: -1rem -1rem 2rem -1rem;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 0.5rem;
  }

  .nav-content {
    padding: 0 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .back-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .page-title {
    margin: 1rem 0 2rem;
  }

  .page-title h1 {
    font-size: 1.75rem;
  }

  .sub {
    padding: 1.5rem 1rem;
  }

  .sub h2 {
    font-size: 1.3rem;
  }

  .sub p {
    font-size: 0.95rem;
  }

  .contact-info {
    padding: 1rem;
  }

  .contact-info a {
    font-size: 1rem;
  }
}
