/*
  style.css for Hacker's Unity
  - Dark theme, gradients, glitch/cyber effects
  - Responsive, modern, animated
  - Tech fonts: Orbitron, Rajdhani
*/
:root {
  --primary: #00ffe7;
  --secondary: #0f0c29;
  --accent: #ff00cc;
  --bg-dark: #181a20;
  --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --card-bg: #23263a;
  --text: #f5f6fa;
  --muted: #b2becd;
  --shadow: 0 4px 32px 0 rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rajdhani', 'Orbitron', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24,26,32,0.98);
  box-shadow: var(--shadow);
  transition: background 0.3s;
  border-bottom: 2.5px solid #000;
  min-height: 54px;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0 0.3rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  justify-content: flex-start;
  margin-left: 0.5rem;
}
.logo img {
  height: 40px;
  width: 40px;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s;
}
nav a.active, nav a:hover {
  color: var(--primary);
}
nav a.active::after, nav a:hover::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 2px;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}
.hero-bg-glitch {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(120deg, #00ffe7 0 2px, transparent 2px 40px), repeating-linear-gradient(60deg, #ff00cc 0 2px, transparent 2px 40px);
  opacity: 0.07;
  z-index: 1;
  animation: glitch-move 6s linear infinite;
}
@keyframes glitch-move {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200px 400px, 400px 200px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
}
.hero-logo {
  width: 110px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 16px var(--primary));
  animation: logo-glitch 2.5s infinite alternate;
}
@keyframes logo-glitch {
  0% { filter: drop-shadow(0 0 16px var(--primary)); }
  50% { filter: drop-shadow(0 0 32px var(--accent)); }
  100% { filter: drop-shadow(0 0 16px var(--primary)); }
}
.hero-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.7rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 16px #00ffe7a0;
}
.hero-content p {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #181a20;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  font-size: 1.1rem;
  box-shadow: 0 2px 16px #00ffe7a0;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.cta-btn:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 4px 32px #ff00cc80;
}

.section-dark {
  background: #181a20;
  color: var(--text);
  padding: 4rem 0 3rem 0;
}
.section-gradient {
  background: var(--bg-gradient);
  color: var(--text);
  padding: 4rem 0 3rem 0;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 1px;
}

/* Hackathons */
.hackathon-banner {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #181a20;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  box-shadow: 0 2px 16px #ff00cc40;
  animation: banner-pulse 2s infinite alternate;
}
@keyframes banner-pulse {
  0% { box-shadow: 0 2px 16px #ff00cc40; }
  100% { box-shadow: 0 4px 32px #00ffe7a0; }
}
.hackathon-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.hackathon-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 320px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.hackathon-card:hover {
  transform: translateY(-10px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px #00ffe7a0;
  border: 1.5px solid var(--primary);
}
.hackathon-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.hackathon-card .date-mode {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.hackathon-card .desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.card-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #181a20;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.card-btn:hover {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  transform: scale(1.08);
}

/* Events Timeline */
.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}
.event-card {
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  width: 100%;
  max-width: 500px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.event-card:hover {
  transform: scale(1.03) translateX(8px);
  box-shadow: 0 4px 32px #00ffe7a0;
}
.event-date {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: block;
}

/* Team */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.team-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  width: 240px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.team-card:hover {
  transform: scale(1.06) rotate(1deg);
  box-shadow: 0 8px 32px #ff00cc80;
}
.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2.5px solid var(--primary);
  object-fit: cover;
}
.team-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.team-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.team-links a {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 0 0.4rem;
  transition: color 0.2s, text-shadow 0.2s;
}
.team-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

/* Social */
.social-icons {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.social-icon {
  font-size: 2.5rem;
  color: var(--primary);
  background: #23263a;
  border-radius: 50%;
  padding: 0.7rem;
  box-shadow: 0 2px 16px #00ffe7a0;
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon:hover {
  color: var(--accent);
  box-shadow: 0 4px 32px #ff00cc80;
  transform: scale(1.15) rotate(-3deg);
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 420px;
  margin: 2rem auto 0 auto;
  background: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.contact-form input, .contact-form textarea {
  background: #191b22;
  border: 1.5px solid var(--primary);
  color: var(--text);
  font-size: 1rem;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid var(--accent);
}
.send-btn {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #181a20;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 16px #00ffe7a0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.send-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 32px #ff00cc80;
}

/* Footer */
.footer {
  background: #15161c;
  color: #f5f6fa;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 1rem;
  margin-top: 2rem;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links a {
  color: var(--primary);
  margin: 0 0.7rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

/* Sponsors */
.sponsors-section {
  background: #181a20;
  color: var(--text);
  padding: 4rem 0 3rem 0;
  text-align: center;
}
.sponsors-desc {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}
.sponsors-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}
.sponsor-logo {
  display: inline-block;
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.4s, transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  background: #23263a;
  box-shadow: 0 2px 16px #00ffe7a0;
}
.sponsor-logo img {
  height: 80px;
  width: auto;
  max-width: 220px;
  display: block;
}
.sponsor-logo:hover {
  filter: grayscale(0) brightness(1.1) drop-shadow(0 0 12px var(--primary));
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 4px 32px #ff00cc80;
}
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,255,231,0.18), transparent);
  z-index: 2;
  transform: skewX(-20deg);
  animation: shimmer-move 2.2s infinite;
}
@keyframes shimmer-move {
  0% { left: -75%; }
  100% { left: 120%; }
}
@media (max-width: 700px) {
  .sponsors-logos-grid { gap: 1.2rem; }
  .sponsor-logo img { height: 54px; max-width: 140px; }
}

/* Responsive */
@media (max-width: 900px) {
  .hackathon-cards, .team-grid {
    flex-direction: column;
    align-items: center;
  }
  .footer-flex {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  .nav-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    flex: 1;
    justify-content: flex-start;
    font-size: 1.1rem;
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 18px;
    top: 18px;
    margin-left: 0;
  }
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #181a20;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 0 1.5rem 0;
    box-shadow: 0 8px 32px #00ffe740;
    z-index: 110;
    display: none;
    transition: all 0.3s;
  }
  nav ul.open {
    display: flex;
  }
  .hero-content {
    padding-top: 2.5rem;
  }
}
@media (max-width: 600px) {
  .container { width: 98%; }
  .nav-flex { flex-direction: column; gap: 1rem; }
  nav ul { flex-direction: column; gap: 0.7rem; }
  .hero-content h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .hackathon-card, .team-card, .event-card { width: 98%; min-width: unset; }
  .contact-form { padding: 1.2rem 0.5rem; }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3.5px;
  margin: 4px 0;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 700px) {
  .hamburger { display: flex; }
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #181a20;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 0 1.5rem 0;
    box-shadow: 0 8px 32px #00ffe740;
    z-index: 110;
    display: none;
    transition: all 0.3s;
  }
  nav ul.open {
    display: flex;
  }
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
