/* Base Styles & Variables */
:root {
  /* Dark Theme Colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-primary: #55376f;
  --accent-secondary: #524b65;
  --danger: #ff6b6b;
  --success: #51cf66;
  --warning: #fcc419;
  --border-color: #3a3a3a;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-top: 0;
  color: var(--text-light);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-content {
  padding: 5rem 0;
  position: relative;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1e1e263d;
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(111, 102, 102, 0.2);
    z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo-container {
    display: flex;
    margin-bottom: -0.5rem;
    flex-direction: column;
}
.main-logo {
    display: flex;
    margin-bottom: -0.5rem;
    flex-direction: column;
}

.main-logo .sage {
 font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--primary);
    text-shadow: 
        0 2px 4px rgba(112, 84, 154, 0.4),
        0 4px 8px rgba(196, 97, 175, 0.3);
}

.main-logo .hackathon {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 6px;
    color: var(--text);
    margin-top: -4px;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent-primary);
     transform: translateY(-2px);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
  display: none;
}

.nav-cta {
  background-color: var(--accent-primary);
  color: white !important;
  padding: var(--space-xs) var(--space-md);
  border-radius: 4px;
}

.nav-cta:hover {
  background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(154, 107, 84, 0.3);
}

.nav-cta::after {
  display: none;
}

/* Hero Section */
.hero-section {
  color: white;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, 
        rgba(154, 107, 84, 0.1) 0%, 
        rgba(10, 10, 15, 0.9) 70%);
        z-index: 1;
        pointer-events: none;
}

.hero-section {
  color: white;
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
  height: calc(var(--vh, 1vh) * 100);
}


.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(55, 69, 81, 0.3);
}

.btn-primary:hover {
  background-color: #524765;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 92, 139, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background-color: rgba(77, 171, 247, 0.1);
  transform: translateY(-2px);
}

/* Cards */
.about-card, .feature-card, .criteria-card, .problem-card, .objective-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.about-card:hover, .feature-card:hover, .criteria-card:hover, .problem-card:hover, .objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.about-card i, .feature-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.criteria-card {
  position: relative;
  overflow: hidden;
}

.criteria-card::before {
  content: attr(style);
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-primary);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Grid Layouts */
.about-grid, .features-grid, .criteria-grid, .objectives-grid {
  display: grid;
  gap: 2rem;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.criteria-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.objectives-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Problem Section */
.problem-section {
  background-color: var(--bg-secondary);
}

.fraud-types {
  columns: 2;
  column-gap: 2rem;
  margin-top: 2rem;
  padding-left: 1rem;
}

.fraud-types li {
  margin-bottom: 0.8rem;
  position: relative;
  list-style-type: none;
  padding-left: 1.5rem;
}

.fraud-types li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
}

/* Solution Section */
.objective-card {
  text-align: center;
  position: relative;
}

.objective-number {
  width: 40px;
  height: 40px;
  background-color: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Timeline */
.timeline-section {
  background-color: var(--bg-secondary);
}

.phase-container {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.phase {
  flex: 1;
  background-color: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
}

.phase h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.phase-dates li {
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  position: relative;
}

.phase-dates li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.team-info {
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* Awards Section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.award-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.award-card:hover {
  transform: translateY(-5px);
}

.medal {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.award-card h3 {
  margin-bottom: 0.5rem;
}

.award-card p {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.gold {
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.silver {
  background-color: rgba(192, 192, 192, 0.1);
  border: 1px solid rgba(192, 192, 192, 0.3);
}

.bronze {
  background-color: rgba(205, 127, 50, 0.1);
  border: 1px solid rgba(205, 127, 50, 0.3);
}

/* Register Section */
.register-section {
  text-align: center;
  background-color: var(--bg-secondary);
}

.form-cta {
  margin-top: 2rem;
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

.team-note {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.main-footer {
  background-color: var(--bg-tertiary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.link-group {
  min-width: 150px;
}

.link-group h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.link-group a:hover {
  color: var(--accent-primary);
}

.link-group a i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  .main-nav {
    margin-top: 1rem;
  }
  
  .main-nav a {
    margin: 0 0.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .phase-container {
    flex-direction: column;
  }
  
  .fraud-types {
    columns: 1;
  }
}

@media (max-width: 576px) {
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}