/* ===================================
   Security Lab - Modern Style Sheet
   Cyber Security Theme with Glassmorphism
   =================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --secondary: #00d4ff;
  --accent: #ff00ff;
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: rgba(20, 20, 30, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
  
  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Effects */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   Loader
   =================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.cyber-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
}

.bracket {
  color: var(--primary);
  animation: blink 1s infinite;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--bg-glass);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.loading-progress {
  height: 100%;
  background: var(--gradient-primary);
  animation: loading 2s ease-in-out infinite;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: pulse 1.5s infinite;
}

@keyframes loading {
  0% { width: 0; transform: translateX(0); }
  50% { width: 100%; transform: translateX(0); }
  100% { width: 100%; transform: translateX(100%); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

/* ===================================
   Particles Background
   =================================== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg-dark);
}

/* ===================================
   Navigation
   =================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.nav-logo img {
  width: 40px;
  height: 40px;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 0;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ===================================
   Hero Section
   =================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 24px;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.glitch-wrapper {
  margin-bottom: 20px;
}

.glitch {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  position: relative;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--secondary);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  color: var(--accent);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 2px); }
  20% { clip-path: inset(30% 0 60% 0); transform: translate(2px, -2px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 2px); }
  60% { clip-path: inset(70% 0 20% 0); transform: translate(2px, -2px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, -2px); }
  20% { clip-path: inset(60% 0 30% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(20% 0 70% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(80% 0 10% 0); transform: translate(2px, -2px); }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  min-height: 30px;
}

.cursor {
  animation: cursor-blink 1s infinite;
  color: var(--primary);
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  border: none;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
  color: var(--bg-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  margin: 0 auto 10px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

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

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.scroll-indicator p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ===================================
   Sections
   =================================== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: rgba(0, 0, 0, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--primary);
  display: block;
  margin-bottom: 15px;
}

.section-tag-end {
  margin-top: 60px;
  margin-bottom: 0;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.about-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--bg-dark);
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Terminal Window */
.terminal-window {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  background: #16162a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-body .prompt {
  color: var(--primary);
}

.terminal-body .output {
  color: var(--text-secondary);
  margin: 15px 0;
}

.cursor-blink {
  animation: cursor-blink 1s infinite;
}

/* ===================================
   Activities Section
   =================================== */
.activities-showcase {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.activity-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.activity-item.reverse {
  direction: rtl;
}

.activity-item.reverse > * {
  direction: ltr;
}

.activity-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.activity-image:hover img {
  transform: scale(1.05);
}

.activity-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
}

.activity-tag {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.activity-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.activity-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.activity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
}

.activity-link:hover {
  gap: 12px;
}

.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .activity-item,
  .activity-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ===================================
   Timeline Section
   =================================== */
.timeline-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--primary);
}

.timeline-item.highlight .timeline-dot {
  width: 20px;
  height: 20px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 20px var(--primary); }
  50% { box-shadow: 0 0 40px var(--primary), 0 0 60px var(--primary); }
}

.timeline-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.timeline-item.highlight .timeline-card {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.timeline-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.timeline-card img {
  border-radius: 8px;
  margin-top: 15px;
  max-height: 200px;
  object-fit: cover;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.timeline-loading {
  text-align: center;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px auto 0;
  padding: 14px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-dot {
    left: 20px;
  }
}

/* ===================================
   Members Section
   =================================== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.member-category {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
}

.member-category.faculty {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .member-category.faculty {
    grid-column: span 1;
  }
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.category-icon {
  font-size: 2rem;
}

.category-header h3 {
  font-size: 1.3rem;
}

.member-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.member-stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.member-stat .year {
  width: 30px;
  font-weight: 600;
  color: var(--primary);
}

.stat-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: var(--width);
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: fillBar 1s ease-out forwards;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--width); }
}

.member-stat .count {
  width: 40px;
  text-align: right;
  color: var(--text-secondary);
}

.member-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.ob-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 20px 0;
}

.big-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ob-count .label {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-left: 10px;
}

.faculty-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.faculty-member {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
}

.faculty-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.faculty-dept {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.faculty-link {
  font-size: 0.9rem;
  color: var(--primary);
}

/* Join Banner */
.join-banner {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.banner-content {
  z-index: 1;
}

.banner-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.banner-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.banner-decoration {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  opacity: 0.1;
  overflow: hidden;
}

@media (max-width: 768px) {
  .join-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-info h3,
.contact-links h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-methods {
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: var(--transition);
  color: var(--text-primary);
}

.contact-method:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--bg-dark);
}

.method-title {
  display: block;
  font-weight: 500;
}

.method-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qr-code {
  text-align: center;
  padding: 30px;
  background: var(--bg-glass);
  border-radius: 16px;
}

.qr-code img {
  max-width: 150px;
  margin-bottom: 15px;
}

.qr-code p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.link-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  transition: var(--transition);
  color: var(--text-primary);
}

.link-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.link-icon {
  font-size: 2rem;
}

.link-title {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.link-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================
   Footer
   =================================== */
#footer {
  background: var(--bg-darker);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand img {
  width: 60px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--primary);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-social p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.footer-credit {
  color: var(--primary);
}

/* ===================================
   Back to Top Button
   =================================== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

#back-to-top svg {
  stroke: var(--bg-dark);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===================================
   News Grid (Top Page)
   =================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.news-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.news-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.news-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--text-primary);
}

.news-card-title a:hover {
  color: var(--primary);
}

.news-card-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.news-card-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}

.news-cta {
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Page Header (Subpages)
   =================================== */
.page-timeline {
  padding-top: 0;
}

.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 50px;
}

.page-header-content {
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.title-icon {
  font-size: 0.8em;
}

.page-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.page-content {
  padding: 0 0 100px;
}

/* Timeline Controls */
.timeline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.timeline-stats {
  font-family: var(--font-display);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-stats span {
  color: var(--primary);
  font-weight: 700;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .timeline-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .timeline-filter {
    justify-content: center;
  }
  
  .timeline-stats {
    text-align: center;
  }
}
