@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #0d0d0d;
  --foreground: #fafafa;
  --card: #141414;
  --card-foreground: #fafafa;
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --secondary: #1f1f1f;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: #2e2e2e;
  --karate-darker: #080808;
  --karate-gray: #1f1f1f;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.3s;
}

.menu-btn:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.menu-icon {
  width: 24px;
  height: 24px;
}

.nav-mobile {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile .nav-link {
  display: block;
  padding: 0.75rem 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #080808 0%, #141414 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 384px;
  height: 384px;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-blob-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 320px;
  height: 320px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: 
    linear-gradient(rgba(250, 250, 250, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 5rem;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

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

.hero-label {
  color: var(--primary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
  .hero-description {
    margin: 0 0 2rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid rgba(250, 250, 250, 0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-logo {
  flex-shrink: 0;
  animation: float 6s ease-in-out infinite;
}

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

.hero-logo-wrapper {
  position: relative;
}

.hero-logo-glow {
  position: absolute;
  inset: 0;
  background: rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  filter: blur(60px);
  transform: scale(1.1);
}

.hero-logo-img {
  position: relative;
  width: 288px;
  height: 288px;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.5));
}

@media (min-width: 640px) {
  .hero-logo-img {
    width: 320px;
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .hero-logo-img {
    width: 384px;
    height: 384px;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

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

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(163, 163, 163, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 6px;
  height: 12px;
  background: var(--primary);
  border-radius: 3px;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.section-label {
  color: var(--primary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.about-text p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
}

@media (min-width: 640px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

.about-visual {
  position: relative;
}

.about-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(13,13,13,1) 100%);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-card-content {
  text-align: center;
  padding: 2rem;
}

.kanji-circle {
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kanji {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary);
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(220, 38, 38, 0.5);
}

.corner-tl {
  top: 1rem;
  left: 1rem;
  border-left: 2px solid;
  border-top: 2px solid;
}

.corner-tr {
  top: 1rem;
  right: 1rem;
  border-right: 2px solid;
  border-top: 2px solid;
}

.corner-bl {
  bottom: 1rem;
  left: 1rem;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.corner-br {
  bottom: 1rem;
  right: 1rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

/* Values Section */
.values {
  padding: 6rem 0;
  background: var(--karate-gray);
}

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

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(13,13,13,1) 100%);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  transition: all 0.5s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.value-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-8px);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}

.value-card:hover .value-icon {
  background: rgba(220, 38, 38, 0.2);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Gallery Section */
.gallery {
  padding: 6rem 0;
  background: var(--karate-gray);
}

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

.gallery-header p {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-large {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

@media (min-width: 768px) {
  .gallery-item-large {
    grid-column: span 1;
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.gallery-item-normal {
  aspect-ratio: 4/3;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Footer */
.footer {
  background: var(--karate-darker);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  height: 96px;
  width: 96px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.footer-location {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Edital Page */
.edital-hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, #080808 0%, #141414 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.edital-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .edital-hero h1 {
    font-size: 3.75rem;
  }
}

.edital-hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
}

.edital-content {
  padding: 5rem 0;
}

.edital-card {
  max-width: 56rem;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(13,13,13,1) 100%);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

@media (min-width: 640px) {
  .edital-card {
    padding: 3rem;
  }
}

.edital-card-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .edital-card-header {
    flex-direction: row;
    align-items: center;
  }
}

.edital-icon {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edital-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.edital-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.edital-card-header p {
  color: var(--muted-foreground);
}

.edital-info {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.edital-info h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.edital-list {
  list-style: none;
  margin-bottom: 2rem;
}

.edital-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.edital-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 8px;
}

.edital-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .edital-buttons {
    flex-direction: row;
  }
}

.edital-extra {
  max-width: 56rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: rgba(31, 31, 31, 0.5);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.edital-extra h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.edital-extra p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
