/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #000;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* Matrix animation background styles */
.matrix-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#matrixCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  margin-bottom: 2rem;
  animation: logoAnimation 1s ease-out;
}

.logo-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.logo-text {
  font-size: 3rem;
  font-weight: bold;
  color: #1e3a8a;
}

.loading-title {
  font-family: "DotGothic16", sans-serif;
  font-size: 4rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.loading-subtitle {
  font-size: 1.5rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.loading-bar-container {
  width: 256px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.loading-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  border-radius: 9999px;
  animation: loadingProgress 2s ease-in-out 1s both;
  transform: translateX(-100%);
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease-out 1.5s both;
}

.dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-logo-image img {
  width: 100%;
  height: 100%;
}

.header-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.logo-text-section {
  display: flex;
  flex-direction: column;
}

.college-name {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

.event-name {
  color: #9ca3af;
  font-size: 0.8125rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: white;
}

.mobile-menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  background: #06b6d4;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #0891b2;
  transform: translateY(-2px);
}

.btn-primary.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary.extra-large {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.espaca_botao{
  padding-bottom: 10px;
  padding-top: 10px;
  height: 10px;
}

.btn-outline:hover {
  background: white;
  color: #000;
}

.btn-outline.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-form {
  background: white;
  color: #000;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-form:hover {
  background: #f3f4f6;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c3aed 0%, #374151 50%, #000 100%);
  z-index: 0;
}

/* Background effects for floating blur circles */
.background-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blur-1 {
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  animation: float 6s ease-in-out infinite;
}

.blur-2 {
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  animation: float 8s ease-in-out infinite reverse;
}

.blur-3 {
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #ec4899, #7c3aed);
  animation: float 7s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out 0.5s both;
  /* Adjusted padding to push text more to the left */
  padding-left: 0;
  padding-right: 2rem;
}

.hero-text {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 10;
  /* Reduced max-width and adjusted positioning for better left alignment */
  max-width: 550px;
  padding-right: 2rem;
  color: #ffffff;
}

.hero-title{
  padding-top: 5%;
  width: 110%;
}

.hero-subtitle h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-subtitle h3 {
  padding-top: 10%;
  font-family: "DotGothic16", sans-serif;
  text-align: center;
  color: #06b6d4;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  text-align: center;
  padding-top:5%;
  color: #ffffff;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-image {
  /* Increased robot size slightly from 650px to 720px */
  width: 720px;
  height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.3));
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: #000;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: bold;
  font-family: "DotGothic16", sans-serif;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 768px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1536px;
  margin: 0 auto;
}

.about-card {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-card:hover {
  border-color: rgba(75, 85, 99, 0.6);
  transform: translateY(-4px);
}

.about-card.mission:hover {
  border-color: rgba(147, 51, 234, 0.5);
}

.about-card.ai:hover {
  border-color: rgba(6, 182, 212, 0.5);
}

.about-card.development:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.about-card.innovation:hover {
  border-color: rgba(236, 72, 153, 0.5);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mission .card-icon {
  background: #7c3aed;
  color: white;
}

.ai .card-icon {
  background: #06b6d4;
  color: #000;
}

.development .card-icon {
  background: #3b82f6;
  color: white;
}

.innovation .card-icon {
  background: #ec4899;
  color: white;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  font-family: "DotGothic16", sans-serif;
  color: white;
  margin-bottom: 0.75rem;
}

.card-content p {
  color: #9ca3af;
  line-height: 1.6;
}

/* Past Events */
.past-events {
  padding: 5rem 0;
  background: #111827;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-card:hover {
  border-color: rgba(75, 85, 99, 0.6);
  transform: scale(1.05);
}

.event-header {
  height: 192px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.purple-gradient {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.cyan-gradient {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.pink-gradient {
  background: linear-gradient(135deg, #ec4899, #7c3aed);
}

.event-logo {
  font-size: 4rem;
  font-family: "DotGothic16", sans-serif;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.event-year {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.event-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #1f2937;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-content {
  padding: 2rem;
}

.event-content h3 {
  font-size: 1.25rem;
  font-family: "DotGothic16", sans-serif;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.event-content p {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.participants {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #06b6d4;
  font-weight: 600;
}

/* Invitation */
.invitation {
  padding: 5rem 0;
  background: linear-gradient(135deg, #7c3aed 0%, #1e40af 50%, #06b6d4 100%);
}

.invitation-content {
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
}

.invitation h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: "DotGothic16", sans-serif;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
}

.invitation p {
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 2rem;
  color: white;
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.feature p {
  color: #bfdbfe;
  font-size: 1rem;
  margin: 0;
}

/* Registration */
.registration {
  padding: 5rem 0;
  background: #000;
}

.registration-content {
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
}

.registration h2 {
  font-family: "DotGothic16", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
}

.registration p {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 3rem;
}

.registration-card {
  background: linear-gradient(90deg, #7c3aed, #3b82f6, #06b6d4);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.registration-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.card-text h3 {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.card-text p {
  color: #bfdbfe;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat:nth-child(1) .stat-number {
  color: #06b6d4;
}

.stat:nth-child(2) .stat-number {
  color: #7c3aed;
}

.stat:nth-child(3) .stat-number {
  color: #ec4899;
}

.stat-label {
  color: #9ca3af;
}

/* Footer */
.footer {
  background: #111827;
  padding: 2rem 0;
  border-top: 1px solid rgba(75, 85, 99, 0.3);
  text-align: center;
}

.footer p {
  color: #9ca3af;
}

/* Animations */
@keyframes logoAnimation {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingProgress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

.hero-title{
  padding-top: 10%;
  width: 70%;
}

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    /* Increased padding to prevent text from reaching screen edges */
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .hero-description {
    padding-left:5%;
    padding-right: 5%;
    /* Added padding to description to match hero-text and prevent edge cutoff */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-left: 5%;
    margin-right: 5%;
  }

  .hero-buttons {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 20px;
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .robot-image {
    /* Reduced robot size to 140px for mobile */
    width: 140px;
    height: 140px;
  }

  .hero-buttons {
    gap: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    width: 100%;
    justify-content: center;
  }

  .hero-buttons button,
  .hero-buttons a {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    max-width: 300px;
  }

  .espaca_botao{
    padding-bottom: 10px;
    padding-top: 10px;
    height: 10px;
  }

  .about-grid {

    grid-template-columns: 1fr;
  }

  .about-card {
    flex-direction: column;
    text-align: center;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .registration-card .card-content {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (min-width: 640px) and (max-width: 768px) {
  .hero-title{
  padding-top: 10%;
  width: 70%;
}
  .hero-buttons {
    gap: 10pxs;
    flex-direction: row;
    justify-content: center;
  }

  .registration-card .card-content {
    flex-direction: row;
  }
}

button{
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title{
  padding-top: 10%;
  width: 70%;
}


  .robot-image {
    /* Adjusted tablet size proportionally */
    width: 500px;
    height: 500px;
  }
  button{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero-content {
    gap: 2rem;
  }
}

@media (min-width: 1025px) {
  .hero-buttons {
    gap: 10px;
    flex-direction: row;
    justify-content: center;
  }
  button{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .registration-card .card-content {
    flex-direction: row;
  }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Added media query for very small screens to ensure text never gets cut off */
@media (max-width: 480px) {
  .hero-title{
  padding-top: 10%;
  width: 70%;
}

  button{
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .hero-text {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
    margin-right: 20px;
        margin-left: 20px;
      gap: 10px;
  }

  .hero-description {
    padding-left: 5%;
    padding-right: 5%;
    font-size: 1rem;
    margin-right: 5%;
        margin-left: 5%;
  }

  .hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .hero-subtitle h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  .hero-subtitle h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
}
