@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FFA500;
  --primary-dark: #FF8C00;
  --primary-gradient: linear-gradient(135deg, #FFA500, #FF6347);
  --text-light: #FFFFFF;
  --text-dark: #1E1E1E;
  --bg-dark: #1E1E1E;
  --bg-light: #F8F8F8;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff5f2, #fff);
  color: var(--text-dark);
  line-height: 1.6;
}

/* HEADER STYLES */
header {
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  height: 40px;
  width: auto;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  font-weight: bold;
  font-size: 24px;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.main-links {
  margin-right: auto;
}

.nav-links li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links li a {
  color: #D3D3D3;
  text-decoration: none;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.text-link {
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 16px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.text-link:hover {
  color: var(--primary);
}

.text-link:hover::after {
  width: calc(100% - 32px);
}

.icon-link a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: var(--transition);
}

.icon-link a i {
  font-size: 16px;
}

.icon-link a:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #D3D3D3;
  border-radius: 3px;
  transition: var(--transition);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 500px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/mecagnite_cover.jpg');
    background-size: contain; /* Changed from cover to contain */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: #000; /* Fallback color */
}

.hero-content {
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-highlight {
  color: var(--primary);
  font-weight: 500;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 0 auto 24px;
  border-radius: 2px;
  animation: expandWidth 1.2s ease 0.6s;
  animation-fill-mode: both;
}

/* EVENTS SECTION */
.events-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  position: relative;
}

.events-header {
  text-align: center;
  margin-bottom: 48px;
}

.events-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.events-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.event-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.event-card {
  flex: 1 1 400px;
  max-width: 500px;
  background: var(--primary-gradient);
  color: white;
  padding: 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.8s ease;
}

.event-card:hover::before {
  top: 100%;
  left: 100%;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-card.selected {
  border-color: white;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary);
  transform: scale(1.02);
}

.event-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}

.event-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: white;
  margin: 16px auto 0;
  border-radius: 1.5px;
  transition: width 0.3s ease;
}

.event-card:hover .event-title::after {
  width: 60px;
}

.target-audience {
  font-size: 16px;
  margin-bottom: 24px;
  text-align: center;
  opacity: 0.9;
  font-weight: 300;
}

.session-list {
  list-style: none;
  padding-left: 0;
}

.session-list li {
  background: rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.session-list li:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(8px);
}

.session-list li strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Apply section */
.apply-section {
  text-align: center;
  margin-top: 48px;
  width: 100%;
}

.apply-button {
  background-color: var(--primary);
  color: var(--text-dark);
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.apply-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.apply-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.apply-button:hover::before {
  left: 100%;
}

.apply-button:active {
  transform: translateY(-1px);
}

/* FOOTER STYLES */
.footer {
  background-color: var(--bg-dark);
  padding: 64px 0 24px;
  position: relative;
  overflow: hidden;
  color: #D3D3D3;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #FF6347, var(--primary));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(150px, 1fr) minmax(200px, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-column {
  padding: 0 16px;
}

.meca-column {
  display: flex;
  flex-direction: column;
}

.meca-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.logo-img {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.asu-img {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-dark);
}

.meca-column p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 450px;
}

.column-title {
  font-size: 18px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.column-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.links-column ul {
  list-style: none;
}

.links-column ul li {
  margin-bottom: 12px;
}

.links-column ul li a {
  color: #D3D3D3;
  text-decoration: none;
  transition: var(--transition);
}

.links-column ul li a:hover {
  color: var(--primary);
}

.contact-column .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.contact-column .contact-item i {
  margin-right: 10px;
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-links a {
  color: #D3D3D3;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.copyright {
  color: #888;
  font-size: 14px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .events-title {
    font-size: 32px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .meca-column {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .events-title {
    font-size: 28px;
  }
  
  .events-description {
    font-size: 16px;
  }
  
  .event-card {
    padding: 24px;
  }
  
  .event-title {
    font-size: 24px;
  }
  
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }

  .main-links, .auth-social {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    order: 4;
  }

  .menu-active .main-links,
  .menu-active .auth-social {
    max-height: 300px;
  }

  .main-links {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
    padding: 10px 0;
  }

  .auth-social {
    justify-content: flex-start;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li {
    width: 100%;
    height: auto;
  }

  .nav-links li a {
    padding: 12px 16px;
    height: auto;
  }

  .text-link::after {
    bottom: 8px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    padding: 0;
    margin-bottom: 32px;
  }

  .links-column ul li {
    justify-content: center;
  }

  .links-column ul li a:before {
    display: none;
  }

  .contact-column .contact-item {
    justify-content: center;
  }

  .contact-column .social-links {
    justify-content: center;
  }

  .meca-logos {
    justify-content: center;
  }

  .column-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 350px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .events-title {
    font-size: 24px;
  }
  
  .event-card {
    padding: 20px;
  }
  
  .apply-button {
    padding: 14px 32px;
    font-size: 16px;
  }
}

.application-status {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 20px 0;
}