:root {
  --primary: #4FC3F7;
  --primary-dark: #0288D1;
  --secondary: #FFB74D;
  --accent: #FF7043;
  --success: #81C784;
  --bg-color: #FAFAFA;
  --text-main: #424242;
  --text-light: #757575;
  --white: #FFFFFF;
  --font-main: "Zen Maru Gothic", sans-serif;
  --font-sub: "Outfit", "Zen Maru Gothic", sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(0, 0, 0, 0.05);
}

/* Background Animated Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  overflow: hidden;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  filter: opacity(0.6);
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
  background: var(--primary);
  animation-duration: 25s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -5%;
  background: var(--secondary);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: var(--accent);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  background-image: url('assets/img/paper_texture.png');
  background-attachment: fixed;
  background-repeat: repeat;
  background-size: 300px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

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

.nav-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-item a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 2rem;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.05) 0%, rgba(255, 183, 77, 0.05) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
}

.hero-content {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 20;
}

.hero-catch {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: clamp(1.4rem, 4.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 0.5em 0;
  position: relative;
  z-index: 21;
}

.hero-main-text {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.hero-sub-text {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 1.5rem;
  color: var(--text-light);
  -webkit-text-fill-color: var(--text-light);
}

.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-main-text {
    white-space: normal;
    line-height: 1.4;
  }
  .tilde {
    display: none;
  }
  .mobile-br {
    display: block;
  }
  .hero-sub-text {
    font-size: 1.1rem;
    margin-top: 1rem;
  }
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 3rem auto 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slider-img.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-slider {
    height: 300px;
  }
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(79, 195, 247, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(79, 195, 247, 0.4);
}

.btn-primary:active {
  transform: translateY(-2px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(30deg);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover::after {
  left: 120%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

main {
  position: relative;
}

/* Section Common */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-title { font-size: 2rem; }
  section { padding: 4rem 1.5rem; }
}

/* Cards */
.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  transform: scale(1);
}

.card > * {
  position: relative;
  z-index: 1;
}

/* Event Specific Styles */
.event-card {
  padding: 2rem;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.event-date {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(0,0,0,0.03);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.tag-report { background: var(--primary); color: white; }
.tag-workshop { background: var(--secondary); color: white; }
.tag-special { background: var(--accent); color: white; }

.event-category {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.6rem;
  margin: 0.5rem 0;
  color: var(--text-main);
}

.event-presenter {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #ddd;
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

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

@media (max-width: 768px) {
  .event-header { flex-direction: column-reverse; }
  .event-date { width: 100%; text-align: left; }
  .event-footer { flex-direction: column; align-items: stretch; }
  .btn-primary { width: 100%; text-align: center; }
}

/* Activity Items (Gallery) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: transform 0.4s ease;
}

.gallery-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.gallery-content {
  padding: 1.5rem;
}

.gallery-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-dark);
  color: white;
  font-size: 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

/* Random Gallery Layout (Scattered Photos) */
.random-gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.random-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 350px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 12px solid white;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), z-index 0.4s;
  object-fit: contain;
  background: white;
  position: relative;
  z-index: 1;
}

/* Randomize angles and margins */
.random-img:nth-child(even) { transform: rotate(3deg); margin-top: 2rem; }
.random-img:nth-child(odd) { transform: rotate(-3deg); margin-bottom: 2rem; }
.random-img:nth-child(3n) { transform: rotate(5deg); }
.random-img:nth-child(4n) { transform: rotate(-4deg); margin-top: -1rem; }
.random-img:nth-child(5n) { transform: rotate(2deg); margin-bottom: -2rem; }

.random-img:hover {
  transform: scale(1.1) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .random-gallery-container {
    gap: 1.5rem;
    padding: 1rem;
  }
  .random-img { max-height: 250px; border-width: 8px; margin: 0 !important; }
}

/* Footer */
footer {
  background: var(--white);
  padding: 6rem 2rem 4rem;
  margin-top: 4rem;
  border-top: 1px solid #eee;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-info-text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}

.footer-links h4 {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.support-orgs {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

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

.fade-in {
  animation: fadeIn 1s forwards;
}

/* Banner Link (PDF Link) */
.banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  background: linear-gradient(135deg, #0277BD 0%, #01579B 100%);
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 3rem 0;
  box-shadow: 0 12px 30px rgba(1, 87, 155, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.banner-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(1, 87, 155, 0.3);
  background: linear-gradient(135deg, #0288D1 0%, #0277BD 100%);
}

.banner-link .icon {
  font-size: 2.2rem;
}

@media (max-width: 768px) {
  .banner-link {
    font-size: 1.1rem;
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
  }
}
