/* ===== Techno Club - Styles ===== */
:root {
  --tc-primary: #4f46e5;
  --tc-secondary: #06b6d4;
  --tc-accent: #f59e0b;
  --tc-grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --tc-bg: #f6f8ff;
  --tc-card: #ffffff;
  --tc-text: #1e2340;
  --tc-muted: #5b6285;
  --tc-border: rgba(79, 70, 229, .15);
  --tc-shadow: 0 10px 30px rgba(79, 70, 229, .12);
}
[data-bs-theme="dark"] {
  --tc-bg: #0b1020;
  --tc-card: #141a33;
  --tc-text: #e8ebff;
  --tc-muted: #9aa3cc;
  --tc-border: rgba(129, 140, 248, .22);
  --tc-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --tc-primary: #818cf8;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--tc-bg);
  color: var(--tc-text);
  transition: background .4s, color .4s;
  overflow-x: hidden;
}
.text-muted-tc { color: var(--tc-muted) !important; }
.gradient-text {
  background: var(--tc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Navbar ===== */
.navbar {
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--tc-bg) 80%, transparent);
  border-bottom: 1px solid var(--tc-border);
  transition: box-shadow .3s, background .4s;
}
.navbar.scrolled { box-shadow: var(--tc-shadow); }
.navbar-brand { font-weight: 800; font-size: 1.4rem; color: var(--tc-text) !important; }
.navbar-brand i { color: var(--tc-primary); }
.nav-link { color: var(--tc-text) !important; font-weight: 500; position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--tc-grad); transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.theme-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--tc-border);
  background: var(--tc-card); color: var(--tc-text); transition: transform .4s, background .3s;
}
.theme-btn:hover { transform: rotate(25deg) scale(1.1); }

/* ===== Buttons ===== */
.btn-tc {
  background: var(--tc-grad); color: #fff; border: 0; border-radius: 50px;
  padding: .75rem 1.8rem; font-weight: 600; box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
  transition: transform .25s, box-shadow .25s;
}
.btn-tc:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 28px rgba(79, 70, 229, .45); }
.btn-outline-tc {
  border: 2px solid var(--tc-primary); color: var(--tc-primary); border-radius: 50px;
  padding: .7rem 1.7rem; font-weight: 600; background: transparent; transition: all .25s;
}
.btn-outline-tc:hover { background: var(--tc-primary); color: #fff; transform: translateY(-3px); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(79,70,229,.22), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(6,182,212,.22), transparent 45%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.badge-tc {
  display: inline-block; padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  background: var(--tc-card); border: 1px solid var(--tc-border); color: var(--tc-primary);
}
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; }
.hero-visual { position: relative; height: 380px; }
.hero-core {
  position: absolute; inset: 0; margin: auto; width: 190px; height: 190px; border-radius: 50%;
  background: var(--tc-grad); display: grid; place-items: center; color: #fff; font-size: 5rem;
  box-shadow: 0 0 60px rgba(79,70,229,.5); animation: pulse 3s ease-in-out infinite;
}
.orbit-icon {
  position: absolute; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--tc-card); color: var(--tc-primary);
  border: 1px solid var(--tc-border); box-shadow: var(--tc-shadow); animation: float 5s ease-in-out infinite;
}
.orbit-icon:nth-child(2) { top: 5%; left: 15%; animation-delay: 0s; }
.orbit-icon:nth-child(3) { top: 10%; right: 12%; animation-delay: .8s; color: var(--tc-secondary); }
.orbit-icon:nth-child(4) { bottom: 8%; left: 10%; animation-delay: 1.6s; color: var(--tc-accent); }
.orbit-icon:nth-child(5) { bottom: 12%; right: 15%; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* Floating blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0; animation: float 9s ease-in-out infinite; }
.blob.b1 { width: 260px; height: 260px; background: var(--tc-primary); top: 10%; left: -80px; }
.blob.b2 { width: 220px; height: 220px; background: var(--tc-secondary); bottom: 5%; right: -60px; animation-delay: 2s; }

/* ===== Sections ===== */
section { padding: 90px 0; position: relative; }
.section-title { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-title + .bar { width: 70px; height: 5px; border-radius: 5px; background: var(--tc-grad); margin: 14px auto 0; }
.info-card, .activity-card, .contact-card {
  background: var(--tc-card); border: 1px solid var(--tc-border); border-radius: 22px;
  box-shadow: var(--tc-shadow); transition: transform .35s, box-shadow .35s, border-color .35s;
}
.info-card { padding: 1.6rem; height: 100%; }
.info-card:hover, .activity-card:hover, .contact-card:hover { transform: translateY(-8px); border-color: var(--tc-primary); }
.icon-box {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  font-size: 1.7rem; background: var(--tc-grad); margin-bottom: 1rem; transition: transform .4s;
}
.info-card:hover .icon-box, .activity-card:hover .icon-box { transform: rotate(-8deg) scale(1.12); }
.stat { text-align: center; padding: 1.2rem; }
.stat .num { font-size: 2.4rem; font-weight: 800; }

/* Activity cards */
.activity-card { padding: 2rem 1.6rem; height: 100%; position: relative; overflow: hidden; }
.activity-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--tc-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.activity-card:hover::before { transform: scaleX(1); }
.tag { display: inline-block; font-size: .75rem; padding: .25rem .7rem; border-radius: 50px; background: rgba(79,70,229,.12); color: var(--tc-primary); margin: .2rem .15rem 0 0; font-weight: 600; }

/* CTA */
.cta-box {
  background: var(--tc-grad); color: #fff; border-radius: 30px; padding: 3.5rem 2rem; text-align: center;
  position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(79,70,229,.35);
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-box::before { width: 220px; height: 220px; top: -80px; right: -60px; animation: float 7s infinite; }
.cta-box::after { width: 160px; height: 160px; bottom: -60px; left: -40px; animation: float 6s infinite reverse; }
.cta-box > * { position: relative; z-index: 2; }
.btn-light-tc { background: #fff; color: var(--tc-primary); border-radius: 50px; padding: .8rem 2rem; font-weight: 700; border: 0; transition: transform .25s; }
.btn-light-tc:hover { transform: scale(1.07) translateY(-3px); color: var(--tc-primary); }

/* Contact */
.contact-card { padding: 1.4rem; display: flex; gap: 1rem; align-items: center; }
.contact-card .icon-box { margin: 0; flex-shrink: 0; width: 54px; height: 54px; font-size: 1.4rem; }
.contact-card a { color: var(--tc-text); text-decoration: none; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: 22px; box-shadow: var(--tc-shadow); }
[data-bs-theme="dark"] .map-frame { filter: invert(.9) hue-rotate(180deg); }

/* Footer */
footer { background: var(--tc-card); border-top: 1px solid var(--tc-border); padding: 2rem 0; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--tc-bg); color: var(--tc-primary); border: 1px solid var(--tc-border); margin: 0 .25rem;
  text-decoration: none; transition: all .3s;
}
.social a:hover { background: var(--tc-grad); color: #fff; transform: translateY(-4px) rotate(8deg); }

/* ===== Students page ===== */
.page-hero { padding: 140px 0 50px; text-align: center; position: relative; overflow: hidden; }
.search-box { max-width: 460px; margin: 1.5rem auto 0; position: relative; }
.search-box input {
  border-radius: 50px; padding: .85rem 1.2rem .85rem 3rem; border: 1px solid var(--tc-border);
  background: var(--tc-card); color: var(--tc-text); box-shadow: var(--tc-shadow);
}
.search-box input:focus { background: var(--tc-card); color: var(--tc-text); border-color: var(--tc-primary); box-shadow: 0 0 0 .25rem rgba(79,70,229,.2); }
.search-box i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--tc-primary); }
.level-block { margin-bottom: 3rem; }
.level-title {
  display: flex; align-items: center; gap: .9rem; font-weight: 800; font-size: 1.8rem; margin-bottom: 1.5rem;
}
.level-title .icon-box { margin: 0; width: 54px; height: 54px; font-size: 1.5rem; }
.group-card {
  background: var(--tc-card); border: 1px solid var(--tc-border); border-radius: 22px;
  padding: 1.5rem; box-shadow: var(--tc-shadow); height: 100%;
}
.group-card h4 { font-weight: 700; font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.group-card h4 .count { margin-left: auto; font-size: .8rem; background: rgba(79,70,229,.12); color: var(--tc-primary); padding: .15rem .65rem; border-radius: 50px; }
.student-btn {
  display: inline-flex; align-items: center; gap: .5rem; margin: .3rem .25rem; padding: .55rem 1.1rem;
  border-radius: 50px; text-decoration: none; font-weight: 500; font-size: .95rem;
  background: var(--tc-bg); color: var(--tc-text); border: 1px solid var(--tc-border);
  transition: all .25s; opacity: 0; animation: popIn .5s forwards;
}
.student-btn i { color: var(--tc-primary); transition: color .25s; }
.student-btn:hover { background: var(--tc-grad); color: #fff; transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 20px rgba(79,70,229,.35); border-color: transparent; }
.student-btn:hover i { color: #fff; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.empty-msg { display: none; text-align: center; padding: 2rem; color: var(--tc-muted); }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.9); }
.reveal.show { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; } .delay-3 { transition-delay: .3s; } .delay-4 { transition-delay: .4s; }

@media (max-width: 991px) {
  .hero-visual { height: 300px; margin-top: 2rem; }
  .hero { text-align: center; }
  .hero .d-flex { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
