/* Shared Styles for All Pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --light-bg: #f8fafc;
  --darker-bg: #1e293b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --space-blue: #0f172a;
  --cosmic-purple: #7c3aed;
  --nebula-pink: #f472b6;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  background-attachment: fixed;
  color: #cbd5e1;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Header Styles */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  padding: 1.2rem 0;
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.3);
  position: sticky;
  top: 0;
  z-index: 999;
  animation: slideDown 0.5s ease-out;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  max-width: 1400px;
  margin: auto;
  justify-content: space-between;
}

.navbar-logo-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 2rem;
}

.iit-logo {
  height: 45px;
  transition: transform 0.3s ease;
}

.iit-logo:hover {
  transform: scale(1.05);
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
}


.logo:hover {
  transform: scale(1.05);
}

.navlinks {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex: 1;
}

.navlinks a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.navlinks a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.navlinks a:hover::after {
  width: 100%;
}

.navlinks a:hover {
  color: #a5b4fc;
  transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: var(--nebula-pink);
  font-weight: 600;
  padding-left: 1.25rem;
  transform: translateX(5px);
}

/* Registration Button */
.registration-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--cosmic-purple) 100%);
  color: white !important;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.5);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}

.registration-btn::before {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.registration-btn:hover::before {
  left: 100%;
}

.registration-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--cosmic-purple) 50%, var(--primary-color) 100%);
}

.registration-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.registration-btn::after {
  display: none !important;
}

/* Main Container */
main {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: calc(100vh - 200px);
}

/* Particles Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--opacity); }
}

/* Hero Sections */
.hero,
.membership-hero,
.events-hero,
.constitution-hero,
.council-hero,
.contact-hero,
.accommodation-hero,
.travel-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: transparent;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.hero h1,
.membership-hero h1,
.events-hero h1,
.constitution-hero h1,
.council-hero h1,
.contact-hero h1,
.accommodation-hero h1,
.travel-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  text-shadow: 0 0 80px rgba(165, 180, 252, 0.3);
}

.hero h2,
.constitution-hero h2,
.accommodation-hero h2,
.travel-hero h2 {
  font-size: 1.5rem;
  color: #cbd5e1;
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Sections */
.content,
.events-content,
.constitution-content,
.contact-main,
.accommodation-content,
.travel-content {
  padding: 3rem 2rem;
  background: transparent;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn,
.submit-btn,
button[type="submit"] {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.btn::before,
.submit-btn::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before,
.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn:hover,
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.btn:active,
.submit-btn:active {
  transform: translateY(-1px);
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
  margin-top: 0;
  border-top: 1px solid rgba(99, 102, 241, 0.3);
  animation: slideUp 0.5s ease-out 0.3s both;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.9;
  color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .navlinks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero h1,
  .membership-hero h1,
  .events-hero h1,
  .constitution-hero h1,
  .council-hero h1 {
    font-size: 2.5rem;
  }
}
