/* Custom Sci-Fi Theme Overrides */
/* Extracted from index.html */

/* ===== MANA FONT STYLES ===== */
@font-face {
    font-family: 'Mana';
    src: url('../fonts/mana.eot');
    src: url('../fonts/mana.eot?#iefix') format('embedded-opentype'),
         url('../fonts/mana.woff2') format('woff2'),
         url('../fonts/mana.woff') format('woff'),
         url('../fonts/mana.ttf') format('truetype'),
         url('../fonts/mana.svg#mana') format('svg');
    font-weight: normal;
    font-style: normal;
}

.ms {
    font-family: 'Mana' !important;
    display: inline-block;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GLOBAL OVERFLOW FIX ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    padding-top: 90px; /* Account for fixed navbar height */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Smaller navbar on mobile */
    }
}

/* ===== PHASE 1: VISUAL ENHANCEMENTS ===== */

/* Custom Sci-Fi Cursor */
*, *::before, *::after {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="%23ff3333" stroke-width="1"/><line x1="12" y1="2" x2="12" y2="8" stroke="%23ff3333" stroke-width="1"/><line x1="12" y1="16" x2="12" y2="22" stroke="%23ff3333" stroke-width="1"/><line x1="2" y1="12" x2="8" y2="12" stroke="%23ff3333" stroke-width="1"/><line x1="16" y1="12" x2="22" y2="12" stroke="%23ff3333" stroke-width="1"/><circle cx="12" cy="12" r="2" fill="%23ff3333"/></svg>') 12 12, crosshair;
}

a, button, .button, .mtg-card, .anime-card, .gallery-item, .partner-card, .service-card, .mission-item {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="%23ffcc00" stroke-width="2"/><line x1="12" y1="2" x2="12" y2="8" stroke="%23ffcc00" stroke-width="2"/><line x1="12" y1="16" x2="12" y2="22" stroke="%23ffcc00" stroke-width="2"/><line x1="2" y1="12" x2="8" y2="12" stroke="%23ffcc00" stroke-width="2"/><line x1="16" y1="12" x2="22" y2="12" stroke="%23ffcc00" stroke-width="2"/><circle cx="12" cy="12" r="3" fill="%23ffcc00"/></svg>') 12 12, pointer;
}

/* CRT Scanline Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

/* CRT Flicker (very subtle) */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: rgba(18, 16, 16, 0);
  animation: crt-flicker 0.15s infinite;
  opacity: 0.02;
}

@keyframes crt-flicker {
  0% { opacity: 0.02; }
  50% { opacity: 0.04; }
  100% { opacity: 0.02; }
}

/* ===== PHASE 2: ANIMATED ATMOSPHERE ===== */

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent-color);
  letter-spacing: 5px;
  margin-bottom: 30px;
  text-shadow: 0 0 20px var(--accent-color);
}

.loading-text {
  font-family: 'Share Tech Mono', monospace;
  color: var(--tech-blue);
  font-size: 1rem;
  margin-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(30) infinite;
}

@keyframes typing {
  0%, 100% { width: 0; }
  50%, 90% { width: 100%; }
}

.loading-bar-container {
  width: 300px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--tech-blue);
  position: relative;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tech-blue), var(--accent-color));
  width: 0%;
  animation: loading-progress 1.5s ease-out forwards;
  box-shadow: 0 0 10px var(--tech-blue);
}

@keyframes loading-progress {
  0% { width: 0%; }
  20% { width: 20%; }
  40% { width: 45%; }
  60% { width: 70%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

.loading-status {
  font-family: 'Share Tech Mono', monospace;
  color: var(--secondary-accent);
  font-size: 0.8rem;
  margin-top: 15px;
}

/* Floating Particles */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--tech-blue);
  border-radius: 50%;
  opacity: 0.6;
  animation: float-up linear infinite;
  box-shadow: 0 0 6px var(--tech-blue);
}

.particle:nth-child(odd) {
  background: var(--accent-color);
  box-shadow: 0 0 6px var(--accent-color);
}

.particle:nth-child(3n) {
  background: var(--secondary-accent);
  box-shadow: 0 0 6px var(--secondary-accent);
  width: 3px;
  height: 3px;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Skeleton Loader for Images */
.skeleton-loader {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Image loading state */
img {
  background: rgba(255,255,255,0.05);
}

img:not([src]), img[src=""] {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

/* ===== END PHASE 2 ===== */

/* ===== END PHASE 1 ===== */

/* latin */
/* 
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(studio/fonts/OpenSans/open-sans-latin-600-normal.woff2 ) format('woff2'), url(studio/fonts/OpenSans/open-sans-latin-600-normal.woff ) format('woff'); 
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*/

:root {
  /* Cowboy Bebop Palette */
  --bg-color: #0e0e12; 
  --text-color: #e0e0e0;
  --accent-color: #ff3333; 
  --secondary-accent: #ffcc00; 
  --tech-blue: #3366ff; 
  --glass-bg: rgba(14, 14, 18, 0.95);
}

body {
  background-color: var(--bg-color);
  /* ADD THIS: Subtle Grid Background */
  background-image: 
    linear-gradient(rgba(51, 102, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 102, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--text-color);
  font-family: 'Share Tech Mono', monospace; /* Tech font for body text */
}

/* Typography Upgrade */
h1, h2, .navbar a {
  font-family: 'Bebas Neue', sans-serif; /* Tall bold font */
  text-transform: uppercase;
  letter-spacing: 3px;
}

h1 {
  color: var(--text-color);
  text-shadow: 4px 4px 0px var(--accent-color); 
  font-size: 5rem; /* Make it HUGE */
  line-height: 0.9;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

/* Glitch Effect on H1 Hover */
/* Glitch Effect on H1 Hover - Subtle version */
h1:hover {
  animation: glitch 1s ease-in-out;
}

h1::before,
h1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

h1:hover::before {
  opacity: 0.4;
  color: var(--tech-blue);
  animation: glitch-shift-1 2s ease-in-out infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

h1:hover::after {
  opacity: 0.4;
  color: var(--accent-color);
  animation: glitch-shift-2 2s ease-in-out infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -1px); }
  98% { transform: translate(1px, 1px); }
}

@keyframes glitch-shift-1 {
  0%, 100% { transform: translate(0); opacity: 0; }
  48%, 52% { transform: translate(-2px, -1px); opacity: 0.4; }
}

@keyframes glitch-shift-2 {
  0%, 100% { transform: translate(0); opacity: 0; }
  48%, 52% { transform: translate(2px, 1px); opacity: 0.4; }
}

h2 {
  font-size: 2.5rem;
  color: var(--secondary-accent);
  border-bottom: none;
  position: relative;
  display: inline-block;
}

/* Add a "cut" line under H2s */
h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    margin-top: 5px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  border-bottom: 2px solid var(--accent-color);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0 20px;
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  /* Button Look */
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.navbar a:hover {
  color: var(--secondary-accent);
  text-shadow: 0 0 8px var(--secondary-accent);
  border-color: var(--secondary-accent);
  background: rgba(255, 204, 0, 0.1);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--accent-color);
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--accent-color);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s;
  z-index: 1001;
}

.menu-toggle:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 10px var(--accent-color);
}

@media (max-width: 768px) {
  .navbar {
    min-height: 60px;
    padding: 0.5rem 0;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: rgba(14, 14, 18, 0.98); /* Darker background */
    width: 100%;
    position: absolute;
    top: calc(100% + 2px); /* Push it down below the toggle */
    left: 0;
    border-bottom: 2px solid var(--accent-color);
    padding: 20px 0 60px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    max-height: 70vh;
    overflow-y: auto;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar li {
    margin: 10px 0;
    text-align: center;
  }
  
  .menu-toggle {
    display: block;
  }
}

/* NEW: Hero Card Styling */
.hero-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--tech-blue);
    padding: 40px;
    margin-top: 20px;
    position: relative;
    text-align: center;
    /* Cut corners effect */
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
}

/* Decorative "screws" or UI elements */
.hero-card::before {
    content: 'ID: NAMYDAD // SYS.ADMIN';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--tech-blue);
    opacity: 0.7;
}

/* Cosplay Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--tech-blue);
    border-radius: 8px;
    aspect-ratio: 2/3;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 0 20px var(--tech-blue);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

/* Partners Grid Styles */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--secondary-accent);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateY(-5px);
}

.partner-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-icon {
    font-size: 3rem;
    color: var(--secondary-accent);
    margin-bottom: 15px;
}

/* Section Styling */
section {
  padding: 100px 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* Grid Layout for Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; /* Increased gap to prevent overlap */
    margin-top: 30px;
}

.service-card {
  border: 1px solid #333;
  border-left: 5px solid var(--accent-color); 
  background: rgba(14, 14, 18, 0.95); /* Increased opacity */
  padding: 25px;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px) translateX(5px);
  box-shadow: -5px 5px 0px var(--tech-blue);
  border-left-color: var(--secondary-accent);
}

.service-card h3 {
  margin-top: 0;
}

/* Override existing container to account for fixed nav */
.container {
  padding-top: 100px; 
}

.rounded-avatar {
    border: 3px solid var(--secondary-accent);
    box-shadow: 5px 5px 0px var(--accent-color); /* Hard shadow for anime look */
    border-radius: 50%;
}

/* Button Overrides for Theme */
.button {
    border-radius: 0 !important; /* Sharp edges */
    border: 1px solid var(--text-color) !important;
    background: transparent !important;
    color: var(--text-color) !important;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #000 !important; /* Black text on red bg */
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--accent-color);
    color: black;
    cursor: pointer;
    
    /* Force small size to override global button styles */
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 50px; /* Center icon vertically */
    text-align: center;

    border-radius: 4px;
    transition: all 0.3s;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

#backToTop:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--secondary-accent);
}

/* MTG Card Styles */
.mtg-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.mtg-card {
    width: 220px;
    height: 310px;
    background-color: #1a1a1a;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
}

.mtg-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
    z-index: 10;
}

.mtg-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.mtg-card:hover::before { opacity: 1; }

.mtg-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mtg-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    padding: 10px;
    border-top: 2px solid var(--secondary-accent);
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 3;
    text-align: center;
    box-sizing: border-box;
}

.mtg-info h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-accent);
}

.mtg-card:hover .mtg-info { transform: translateY(0); }

/* Jukebox Styles */
.jukebox-container {
    background: #111;
    border: 2px solid var(--accent-color);
    padding: 20px;
    max-width: 400px;
    margin: 40px auto;
    position: relative;
    box-shadow: 5px 5px 0px var(--accent-color);
}

.jukebox-display {
    background: #000;
    color: var(--accent-color);
    font-family: 'Share Tech Mono', monospace;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.jukebox-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.jukebox-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.jukebox-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    transition-delay: 3s; /* Delay flip to allow reading text */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #1a1a1a;
}

.flip-card-back {
    background-color: #1a1a1a;
    transform: rotateY(180deg);
}

/* Tags */
.deck-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.bracket-tag {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    font-family: 'Share Tech Mono', monospace;
}

.bracket-2 { color: #0f0; }
.bracket-3 { color: #ffcc00; }
.bracket-4 { color: #ff3333; }

/* Under Construction */
.construction-zone {
    margin-top: 50px;
    border-top: 2px dashed var(--accent-color);
    padding-top: 20px;
    width: 100%;
    text-align: center;
}

.construction-title {
    color: #ffcc00; /* Warning color */
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 20px;
    display: inline-block;
    padding: 0 10px;
    transform: translateY(-35px); /* Move up to sit on the line */
}

/* Anime Grid Styles */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.anime-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.3s;
    cursor: pointer;
    aspect-ratio: 2/3; /* Force standard poster ratio */
}

.anime-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 10;
}

.anime-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.anime-card:hover .anime-poster {
    filter: brightness(1.1);
}

.anime-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.anime-card:hover .anime-title {
    transform: translateY(0);
}

/* ===== COSPLAY PAGE STYLES ===== */

/* WIP Banner */
.wip-banner {
    background: repeating-linear-gradient(
      45deg,
      #000,
      #000 10px,
      #ffcc00 10px,
      #ffcc00 20px
    );
    color: #000;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    border: 2px solid #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    box-shadow: 0 0 15px #ffcc00;
}

.wip-content {
    background: #000;
    color: #ffcc00;
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid #ffcc00;
}

/* Cosplan List */
.cosplan-list {
    list-style: none;
    padding: 0;
}

.cosplan-item {
    background: rgba(255,255,255,0.05);
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cosplan-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #333;
}

.status-planning { color: #ffcc00; border: 1px solid #ffcc00; }
.status-progress { color: var(--tech-blue); border: 1px solid var(--tech-blue); }
.status-completed { color: #0f0; border: 1px solid #0f0; }

/* Cosplan Preview Hover Effect */
.cosplan-item {
    position: relative;
    cursor: pointer;
}

.cosplan-preview {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%) translateX(-10px);
    width: 200px;
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid var(--tech-blue);
    border-radius: 8px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 0 20px rgba(51, 102, 255, 0.4), 
                inset 0 0 30px rgba(51, 102, 255, 0.1);
}

.cosplan-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: var(--tech-blue);
}

.cosplan-item:hover .cosplan-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.cosplan-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.cosplan-preview .preview-info {
    margin-top: 8px;
    text-align: center;
}

.cosplan-preview .preview-info h4 {
    margin: 0;
    color: var(--accent-color);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.cosplan-preview .preview-info p {
    margin: 2px 0 0;
    color: var(--secondary-accent);
    font-size: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
}

.cosplan-preview .preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--accent-color);
    text-align: center;
}

.cosplan-preview .preview-placeholder i {
    margin-bottom: 10px;
    opacity: 0.7;
}

.cosplan-preview .preview-placeholder p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Responsive: Move preview below on smaller screens */
@media (max-width: 768px) {
    .cosplan-preview {
        position: absolute;
        top: 100%;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 180px;
    }
    
    .cosplan-preview::after {
        top: auto;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid transparent;
        border-bottom-color: var(--tech-blue);
    }
    
    .cosplan-item:hover .cosplan-preview {
        transform: translateX(-50%) translateY(0);
    }
}

/* Mission Log / Timeline */
.mission-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.mission-item {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--tech-blue);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s;
}

.mission-item:hover {
    background: rgba(51, 102, 255, 0.1);
    transform: translateX(10px);
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.mission-date {
    font-family: 'Share Tech Mono', monospace;
    color: var(--secondary-accent);
    font-weight: bold;
    font-size: 1.1rem;
}

.mission-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-confirmed { color: #0f0; border-color: #0f0; }
.status-pending { color: #ffcc00; border-color: #ffcc00; }
.status-inactive { color: #888; border-color: #888; }
.status-risk { color: #ff3333; border-color: #ff3333; }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--tech-blue);
    border-radius: 8px;
    aspect-ratio: 2/3;
    cursor: pointer;
    transition: transform 0.3s;
    background: #000;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 0 20px var(--tech-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

/* ===== PARTNERS PAGE STYLES ===== */

/* Contact Highlight Box */
.contact-highlight {
    background: rgba(51, 102, 255, 0.1);
    border: 2px solid var(--tech-blue);
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-highlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--tech-blue);
    box-shadow: 0 0 10px var(--tech-blue);
    animation: scanline 3s infinite linear;
}

@keyframes scanline {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Unaffiliated Status */
.unaffiliated-status {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    border: 1px dashed #555;
    color: #888;
}

/* Mobile fix for contact highlight */
@media (max-width: 768px) {
    .contact-highlight {
        padding: 15px;
        margin: 20px 0;
    }
    .contact-highlight h2 {
        font-size: 1.8rem;
    }
}

.container{word-break: break-word;}

/* ===== PHASE 3: SELECTED MICRO-INTERACTIONS ===== */

/* Fix LittleLink hover icon dark background issue */
.hvr-icon,
.button .hvr-icon,
.icon-hover .hvr-icon,
.button img.icon {
    box-shadow: none !important;
    background: transparent !important;
}

/* Disable icon scaling/bounce effects that cause visual issues */
.button:hover .hvr-icon,
.button:active .hvr-icon,
.button:focus .hvr-icon {
    transform: none !important;
    animation: none !important;
}

/* Avatar Hover Effect */
.rounded-avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rounded-avatar:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 
        0 0 30px var(--accent-color),
        5px 5px 0px var(--secondary-accent);
    border-color: var(--accent-color);
}

/* Service Card Corner Accent */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--tech-blue);
    border-right: 2px solid var(--tech-blue);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.service-card:hover::before {
    width: 50px;
    height: 50px;
    opacity: 1;
    border-color: var(--secondary-accent);
}

/* ===== PHASE 5: PERFORMANCE & ACCESSIBILITY ===== */

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle {
        display: none !important;
    }
    
    body::before,
    body::after {
        display: none !important;
    }
}

/* GPU acceleration for animated elements */
.particle,
.fadein,
.button,
.service-card,
.partner-card,
.gallery-item,
.mtg-card,
.anime-card,
.rounded-avatar {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Remove will-change after animation completes (via JS class) */
.animation-complete {
    will-change: auto;
}

/* Optimize font rendering */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contain layout reflows */
.services-grid,
.partners-grid,
.gallery-grid,
.mtg-grid,
.anime-grid {
    contain: layout style;
}

/* Lazy load images that are off-screen */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--secondary-accent);
    outline-offset: 3px;
}

/* Skip to content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: #000;
    padding: 8px 16px;
    z-index: 100000;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-color: #000;
        --text-color: #fff;
        --accent-color: #ff0000;
        --secondary-accent: #ffff00;
        --tech-blue: #00ffff;
    }
    
    .button {
        border-width: 2px !important;
    }
    
    body::before,
    body::after {
        display: none !important;
    }
}

/* Print styles */
@media print {
    body::before,
    body::after,
    .particles-container,
    .navbar,
    #backToTop,
    .parallax-bg {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .button {
        border: 1px solid #000 !important;
        background: transparent !important;
    }
}

/* ===== FRIEND LINKS STYLES ===== */

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.friend-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--tech-blue);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.friend-card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 102, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 3;
}

.friend-card:hover::before {
    left: 100%;
}

.friend-card:hover {
    border-color: var(--secondary-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(51, 102, 255, 0.2);
}

.friend-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: all 0.3s ease;
}

.friend-avatar i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--tech-blue);
    opacity: 0.5;
}

.friend-card:hover .friend-avatar img {
    transform: scale(1.05);
}

.friend-card h3 {
    margin: 10px 0 5px;
    color: var(--text-color);
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.friend-role {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.friend-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Instagram Embeds Grid */
.instagram-embeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
    justify-items: center;
}

.instagram-embed-wrapper {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instagram-embed-wrapper iframe {
    border: 2px solid var(--tech-blue) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(51, 102, 255, 0.3);
    max-width: 100%;
    background: #fff;
}

.embed-credit {
    margin-top: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--secondary-accent);
    text-align: center;
}

.embed-credit i {
    margin-right: 5px;
    color: var(--tech-blue);
}

@media (max-width: 768px) {
    .instagram-embeds-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-embed-wrapper {
        max-width: 100%;
    }
    
    .instagram-embed-wrapper iframe {
        width: 100% !important;
        min-width: 280px;
    }
}

/* ===== STATS PAGE STYLES ===== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--accent-color);
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent), var(--tech-blue));
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--secondary-accent);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--tech-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-detail {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 10px;
}

.stat-card.highlight {
    border-color: var(--secondary-accent);
    border-left-color: var(--secondary-accent);
}

.stat-card.highlight .stat-number {
    color: var(--accent-color);
}

.stats-category {
    margin-top: 50px;
}

.stats-category h3 {
    color: var(--tech-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-category h3 i {
    color: var(--accent-color);
}

/* ===== RECOMMENDATIONS PAGE STYLES ===== */

.review-filters {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--tech-blue);
    color: var(--tech-blue);
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--tech-blue);
    color: #000;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.1);
}

.review-cover {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-color) 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--tech-blue);
    border-bottom: 3px solid var(--accent-color);
}

.review-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    padding: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.review-type {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--tech-blue);
    color: #000;
}

.review-rating {
    color: var(--secondary-accent);
    font-size: 1.2rem;
    margin: 10px 0;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.review-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.review-tag.must-watch {
    border-color: #00ff00;
    color: #00ff00;
}

.review-tag.hidden-gem {
    border-color: var(--secondary-accent);
    color: var(--secondary-accent);
}

.review-rec {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--tech-blue);
    padding-top: 15px;
    border-top: 1px dashed #333;
}

.review-rec::before {
    content: '→ ';
}

/* ===== MOBILE RESPONSIVE FIXES ===== */

@media (max-width: 768px) {
    /* Hero card mobile */
    .hero-card {
        padding: 20px 15px;
        clip-path: none;
        margin: 10px 0;
    }
    
    .hero-card h1 {
        font-size: 2rem !important;
    }
    
    .hero-card p {
        font-size: 0.9rem !important;
    }
    
    .hero-card::before {
        font-size: 0.6rem;
        top: 3px;
        right: 5px;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .stat-detail {
        font-size: 0.7rem;
    }
    
    .stats-category h3 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
    
    /* Reviews grid mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-filters {
        justify-content: center;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .review-cover {
        height: 150px;
    }
    
    .review-content {
        padding: 15px;
    }
    
    .review-title {
        font-size: 1.1rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    .review-tags {
        gap: 5px;
    }
    
    .review-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    /* Friends grid mobile */
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .friend-card-content {
        padding: 15px;
        min-height: 140px;
    }
    
    .friend-card h3 {
        font-size: 1rem;
    }
    
    .friend-role {
        font-size: 0.65rem;
    }
    
    .friend-card p {
        font-size: 0.8rem;
    }
    
    /* Partners grid mobile */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Gallery grid mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Service cards mobile */
    .service-card {
        padding: 20px 15px;
    }

    .service-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Hobbies sections mobile */
    .hobby-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* General text sizing */
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    /* Container padding */
    .container {
        padding: 0 10px;
    }
    
    /* Footer on mobile */
    .footer {
        margin: 20px 0 !important;
        padding: 15px;
    }
    
    /* Back to top button */
    #backToTop {
        right: 15px;
        bottom: 15px;
        padding: 10px 15px;
    }
    
    /* Unaffiliated status mobile */
    .unaffiliated-status {
        padding: 20px 15px;
        margin-top: 30px !important;
    }
    
    .unaffiliated-status h3 {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-card h1 {
        font-size: 1.6rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .navbar ul {
        padding: 15px 0 40px 0;
    }
    
    .navbar li a {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}

/* ===== CHARITY SPOTLIGHT BANNER ===== */

.charity-banner {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1) 0%, rgba(51, 102, 255, 0.1) 100%);
    border: 1px solid var(--accent-color);
    border-left: 4px solid var(--secondary-accent);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.charity-banner::before {
    content: '💝';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.charity-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.charity-icon {
    font-size: 2.5rem;
    color: var(--secondary-accent);
    min-width: 60px;
    text-align: center;
}

.charity-info {
    flex: 1;
    min-width: 200px;
}

.charity-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--tech-blue);
    letter-spacing: 2px;
}

.charity-info h4 {
    margin: 5px 0 10px;
    color: var(--secondary-accent);
    font-size: 1.3rem;
}

.charity-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.charity-link {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--secondary-accent);
    color: var(--secondary-accent);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.charity-link:hover {
    background: var(--secondary-accent);
    color: #000;
}

@media (max-width: 768px) {
    .charity-content {
        flex-direction: column;
        text-align: center;
    }
    
    .charity-icon {
        font-size: 2rem;
    }
    
    .charity-info {
        text-align: center;
    }

    .charity-info p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .charity-link {
        width: 100%;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
    }
}

/* ===== FOSS TOOL OF THE MONTH ===== */

.foss-banner {
    margin-top: 25px;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    border: 1px solid var(--tech-blue);
    border-left: 4px solid var(--tech-blue);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.foss-banner::before {
    content: '🛠️';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.foss-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.foss-icon {
    font-size: 2.5rem;
    color: var(--tech-blue);
    min-width: 60px;
    text-align: center;
}

.foss-info {
    flex: 1;
    min-width: 200px;
}

.foss-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #00ff00;
    letter-spacing: 2px;
}

.foss-info h4 {
    margin: 5px 0 10px;
    color: var(--tech-blue);
    font-size: 1.3rem;
}

.foss-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.foss-link {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--tech-blue);
    color: var(--tech-blue);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.foss-link:hover {
    background: var(--tech-blue);
    color: #000;
}

@media (max-width: 768px) {
    .foss-content {
        flex-direction: column;
        text-align: center;
    }
    
    .foss-icon {
        font-size: 2rem;
    }
    
    .foss-info {
        text-align: center;
    }

    .foss-info p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .foss-link {
        width: 100%;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
    }
}

/* ===== LOOKING FOR ALLIES BANNER ===== */

.recruit-banner {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.05) 0%, rgba(255, 204, 0, 0.1) 50%, rgba(51, 102, 255, 0.05) 100%);
    border: 2px dashed var(--secondary-accent);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.recruit-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 204, 0, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(51, 102, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.recruit-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.recruit-signal {
    position: relative;
    font-size: 3rem;
    color: var(--secondary-accent);
    min-width: 80px;
    text-align: center;
}

.signal-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--secondary-accent);
    border-radius: 50%;
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.recruit-info {
    flex: 1;
    min-width: 250px;
}

.recruit-info h3 {
    color: var(--secondary-accent);
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.recruit-info p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.recruit-btn {
    padding: 15px 30px;
    background: var(--secondary-accent);
    border: none;
    color: #000;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.recruit-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.3);
}

@media (max-width: 768px) {
    .recruit-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .recruit-signal {
        font-size: 2.5rem;
    }
    
    .recruit-info {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .recruit-info p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .recruit-info h3 {
        font-size: 1.2rem;
    }
    
    .recruit-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        padding: 15px 20px;
        box-sizing: border-box;
    }
    
    .recruit-banner {
        padding: 20px;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    
    .recruit-banner + .recruit-banner {
        z-index: 0;
    }
}

/* Formal variant for main page */
.recruit-formal {
    border: 2px solid var(--tech-blue);
    border-style: solid;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(51, 102, 255, 0.08) 100%);
}

.recruit-formal .recruit-signal {
    color: var(--tech-blue);
}

.recruit-formal .signal-ping {
    border-color: var(--tech-blue);
}

.recruit-formal .recruit-info h3 {
    color: var(--tech-blue);
}

.recruit-formal .recruit-btn {
    background: var(--tech-blue);
}

.recruit-formal .recruit-btn:hover {
    background: var(--secondary-accent);
    color: #000;
    box-shadow: 0 5px 20px rgba(51, 102, 255, 0.3);
}

/* Sponsor variant for main page */
.recruit-sponsor {
    margin-top: 25px;
    border: 2px solid var(--accent-color);
    border-style: solid;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.08) 0%, rgba(255, 204, 0, 0.05) 50%, rgba(255, 51, 51, 0.08) 100%);
}

.recruit-sponsor .recruit-signal {
    color: var(--accent-color);
}

.recruit-sponsor .signal-ping {
    border-color: var(--accent-color);
}

.recruit-sponsor .recruit-info h3 {
    color: var(--accent-color);
}

.recruit-sponsor .recruit-btn {
    background: var(--accent-color);
    color: #fff;
}

.recruit-sponsor .recruit-btn:hover {
    background: var(--secondary-accent);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3);
}

/* ===== 2025 AWARDS PAGE ===== */

.awards-hero {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 51, 51, 0.05) 50%, rgba(51, 102, 255, 0.1) 100%);
    border-color: var(--secondary-accent);
}

.awards-trophy {
    font-size: 5rem;
    margin-bottom: 10px;
    animation: trophy-bounce 2s ease-in-out infinite;
}

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

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Flip Card Container */
.award-card {
    position: relative;
    height: 320px;
    cursor: pointer;
    perspective: 1000px;
}

.award-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.award-card.flipped .award-card-inner {
    transform: rotateY(180deg);
}

.award-card-front,
.award-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.award-card-front {
    transform: rotateY(0deg);
}

.award-card-back {
    transform: rotateY(180deg);
}

/* FRONT OF CARD - Category only */
.award-card-front {
    background: rgba(0, 0, 0, 0.95);
    background-image: url('https://static.vecteezy.com/system/resources/thumbnails/011/351/201/small_2x/elegant-golden-scene-diagonal-glowing-with-lighting-effect-sparkle-on-black-background-template-premium-award-design-vector.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.award-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent), var(--tech-blue));
    z-index: 2;
}

.award-front-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.award-front-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    text-align: center;
}

.award-category {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--tech-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.award-tap-hint {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 10px;
    font-family: 'Share Tech Mono', monospace;
}

.award-tap-hint i {
    margin-right: 5px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* BACK OF CARD - Winner reveal with image */
.award-card-back {
    background-color: #111;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.award-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.award-card-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent), var(--tech-blue));
    z-index: 2;
}

.award-back-content {
    position: relative;
    z-index: 2;
    padding: 25px;
}

.award-ribbon {
    background: var(--secondary-accent);
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    padding: 8px 25px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: inline-block;
}

.award-ribbon.special {
    background: linear-gradient(90deg, #ff3333, #ff9900, #ffcc00);
    background-size: 200% 100%;
    animation: shimmer-gradient 2s linear infinite;
}

.award-ribbon.pending {
    background: var(--tech-blue);
    color: #fff;
}

@keyframes shimmer-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.award-winner {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--secondary-accent);
    margin: 15px 0;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.award-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
    font-style: italic;
}

.award-note i {
    margin-left: 5px;
}

/* Card Variants */
.award-card.highlight .award-card-front {
    border-color: var(--accent-color);
}

.award-card.highlight .award-card-back {
    border-color: var(--accent-color);
}

.award-card.highlight .award-winner {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
}

.award-card.coming-soon .award-card-front,
.award-card.coming-soon .award-card-back {
    border-style: dashed;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.award-card.coming-soon .award-card-front::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(51, 102, 255, 0.2) 100%);
}

.award-card.coming-soon .award-winner {
    color: var(--tech-blue);
}

/* Hover effect for non-flipped cards */
.award-card:not(.flipped):hover {
    transform: translateY(-5px) rotateY(5deg);
}

.award-card:not(.flipped):hover .award-card-front {
    border-color: var(--secondary-accent);
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.2);
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, var(--secondary-accent), #ff9900, var(--secondary-accent));
    background-size: 200% 100%;
    animation: gradient-scroll 3s linear infinite;
    padding: 12px 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

@keyframes gradient-scroll {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.announcement-banner a {
    color: #000;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.announcement-banner a:hover {
    text-decoration: underline;
}

.announcement-banner .announcement-icon {
    animation: pulse 1s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-trophy {
        font-size: 3.5rem;
    }
    
    .award-card {
        height: 280px;
    }
    
    .award-winner {
        font-size: 1.6rem;
    }
    
    .award-category {
        font-size: 0.75rem;
    }
    
    .award-ribbon {
        font-size: 0.8rem;
        padding: 6px 20px;
    }
}

/* ===== THANK YOU POPUP ===== */
.thankyou-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.thankyou-popup.active {
    opacity: 1;
    visibility: visible;
}

.thankyou-popup-content {
    background: linear-gradient(135deg, rgba(14, 14, 18, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    border: 2px solid var(--secondary-accent);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 0 50px rgba(255, 204, 0, 0.2);
}

.thankyou-popup.active .thankyou-popup-content {
    transform: scale(1) translateY(0);
}

.thankyou-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.thankyou-popup-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.thankyou-popup-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.thankyou-popup-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--secondary-accent);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.thankyou-popup-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

.thankyou-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--secondary-accent);
    border: none;
    color: #000;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.thankyou-popup-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.3);
}

@media (max-width: 768px) {
    .thankyou-popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .thankyou-popup-icon {
        font-size: 2.5rem;
    }
    
    .thankyou-popup-content h3 {
        font-size: 1.6rem;
    }
    
    .thankyou-popup-btn {
        width: 100%;
        justify-content: center;
    }
}
