:root {
  --hack-red: #ec3750;
  --hack-white: #ffffff;
  --hack-black: #17171d;
  --hack-grey: #8492a6;
  --max-width: 1200px;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--hack-black);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  background: var(--hack-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--hack-black);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--hack-red);
}

.cta-button {
  background: var(--hack-red);
  color: var(--hack-white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--hack-red) 0%, #ff8c37 100%);
  color: var(--hack-white);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.primary-button, .secondary-button {
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s;
}

.primary-button {
  background: var(--hack-white);
  color: var(--hack-red);
}

.secondary-button {
  border: 2px solid var(--hack-white);
  color: var(--hack-white);
}

.primary-button:hover, .secondary-button:hover {
  transform: scale(1.05);
}

/* Features Section */
.section {
  padding: 100px 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--hack-white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Community Section */
.red-bg {
  background: var(--hack-red);
  color: var(--hack-white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--hack-black);
  color: var(--hack-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: var(--hack-grey);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--hack-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* Hack Club Animation */
#hackclub-box {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7); z-index: 10000;
  transition: opacity 1s;
}

#hackclub-type {
  color: #00ff00;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 2.5rem;
  background: #080808;
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin: 0;
  opacity: 1;
  transition: opacity 1s;
}

header {
  opacity: 0;
  transition: opacity 1s;
}

header.hc-reveal {
  opacity: 1 !important;
}

.full-image-section {
  position: relative;
  width: 100%;
  height: 350px; /* Adjust as needed */
  background-image: url('https://hc-cdn.hel1.your-objectstorage.com/s/v3/cb6ce44f16685dfe3f7dbe98505d0268a30dcf79_scryrd1-27.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-image-section .overlay-text {
  color: white;
  text-align: center;
  background: rgba(0,0,0,0.4); /* Optional: for better readability */
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}
