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

:root {
    --primary-blue: #00D4FF;
    --secondary-blue: #0099CC;
    --dark-blue: #001122;
    --darker-blue: #000A14;
    --accent-blue: #00FFFF;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --glow-blue: rgba(0, 212, 255, 0.5);
    --glow-accent: rgba(0, 255, 255, 0.3);
    --hacker-green: #00FF41;
}

body {
    font-family: 'Fira Code', monospace;
    background: var(--darker-blue);
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
    font-size: clamp(15px, 1vw + 12px, 16px);
    line-height: 1.6;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.3;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.6)
    );
    background-size: 100% 3px;
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes text-decryption {
    from {
        transform: translateY(20px);
        opacity: 0;
        filter: blur(5px);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 50%, var(--darker-blue) 100%);
    z-index: -2;
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Particles Animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--primary-blue), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--accent-blue), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--primary-blue), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--accent-blue), transparent),
        radial-gradient(2px 2px at 90% 40%, var(--primary-blue), transparent),
        radial-gradient(1px 1px at 33% 60%, var(--accent-blue), transparent),
        radial-gradient(2px 2px at 10% 80%, var(--primary-blue), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: particlesFloat 30s linear infinite;
    opacity: 0.4;
}

@keyframes particlesFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 17, 34, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-blue);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--primary-blue));
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-name {
    font-family: 'VT323', monospace;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--glow-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'VT323', monospace;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-blue);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.8) 0%, rgba(0, 17, 34, 0.7) 100%);
}

.hero-overlay {
    display: none; /* Not needed since we use ::before on section */
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

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

.hero-title {
    font-family: 'VT323', monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
}

.glitch {
    position: relative;
}

.glitch-text {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--primary-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, glitch 2s infinite;
    text-shadow: 0 0 30px var(--glow-blue);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 2px 0 var(--hacker-green); }
    40% { transform: translate(-2px, -2px); text-shadow: -2px -2px 0 var(--accent-blue); }
    60% { transform: translate(2px, 2px); text-shadow: 2px -2px 0 var(--primary-blue); }
    80% { transform: translate(2px, -2px); text-shadow: -2px 2px 0 var(--hacker-green); }
}

.hero-subtitle {
    font-family: 'VT323', monospace;
    font-size: clamp(1.1rem, 4vw, 2rem);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: clamp(3px, 1.2vw, 5px);
    text-shadow: 0 0 20px var(--primary-blue);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Terminal Window */
.terminal-window {
    background: rgba(0, 17, 34, 0.8);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--glow-blue);
    font-family: 'Fira Code', monospace;
}

.terminal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--primary-blue);
}

.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;
    color: var(--primary-blue);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 120px;
}

.terminal-line {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.prompt {
    color: var(--hacker-green);
    margin-right: 0.5rem;
}

.typing-text {
    color: var(--accent-blue);
}

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

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


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: clamp(100px, 12vh, 140px) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 4rem);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

@media (max-width: 1024px) {
    section {
        background-attachment: scroll;
    }
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.85) 0%, rgba(0, 17, 34, 0.75) 100%);
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: clamp(3px, 1vw, 5px);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px var(--glow-blue); }
    50% { text-shadow: 0 0 40px var(--glow-blue), 0 0 60px var(--glow-blue); }
}

@keyframes border-pulse {
    0% { border-color: var(--primary-blue); box-shadow: 0 0 20px var(--glow-blue); }
    50% { border-color: var(--accent-blue); box-shadow: 0 0 30px var(--glow-accent); }
    100% { border-color: var(--primary-blue); box-shadow: 0 0 20px var(--glow-blue); }
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 4rem;
}

/* About Section */
.about::before {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.9) 0%, rgba(0, 10, 20, 0.85) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--hacker-green);
    font-weight: 700;
    text-shadow: 0 0 10px var(--hacker-green);
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 30px var(--glow-blue);
    animation: float 6s ease-in-out infinite;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: border-pulse 4s ease-in-out infinite;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--glow-blue);
    background: rgba(0, 212, 255, 0.1);
}

.stat-number {
    font-family: 'VT323', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Specialties Section */
.specialties::before {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.88) 0%, rgba(0, 17, 34, 0.82) 100%);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.specialty-card {
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    animation: border-pulse 5s ease-in-out infinite;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.specialty-card:hover::before {
    opacity: 0.1;
}

.specialty-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px var(--glow-blue);
    border-color: var(--accent-blue);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.specialty-card:hover .card-shine {
    left: 100%;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.card-title {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.card-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Achievements Section */
.achievements::before {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.9) 0%, rgba(0, 10, 20, 0.85) 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.achievement-card {
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    animation: border-pulse 6s ease-in-out infinite;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.achievement-card:hover::before {
    opacity: 0.1;
}

.achievement-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px var(--glow-blue);
    border-color: var(--accent-blue);
}

.achievement-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

.achievement-title {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.achievement-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* Members Section */
.members::before {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.92) 0%, rgba(0, 17, 34, 0.88) 100%);
}

.members-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.football-ground-container {
    position: relative;
    width: min(100%, 1200px);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.35);
    border: 2px solid rgba(0, 212, 255, 0.6);
    padding: clamp(0.75rem, 3vw, 1.5rem);
    background: radial-gradient(circle at top, rgba(0, 212, 255, 0.25), rgba(0, 0, 0, 0.75));
    overflow: hidden;
    min-height: clamp(520px, 60vw, 650px);
}

.football-ground {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.45;
    border-radius: 16px;
}

.members-cards-field {
    position: absolute;
    inset: clamp(0.5rem, 3vw, 1.8rem);
    border-radius: 18px;
    border: 1px dashed rgba(0, 212, 255, 0.35);
    pointer-events: none;
    min-height: clamp(480px, 55vw, 600px);
}

.members-cards-panel {
    width: min(100%, 880px);
    background: rgba(0, 15, 30, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.panel-title {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 0.25rem;
}

.panel-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.reserve-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    pointer-events: auto;
}

.member-card-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    perspective: 1000px;
}

.members-cards-field .member-card-wrapper {
    position: absolute;
    left: var(--position-x, 50%);
    top: var(--position-y, 50%);
    transform: translate(-50%, -50%);
    width: 180px;
    height: 220px;
    pointer-events: all;
}

.members-cards-field .card-front,
.members-cards-field .card-back {
    padding: 0.6rem;
    justify-content: flex-start;
}

.members-cards-field .member-name {
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}

.members-cards-field .member-specialty {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.members-cards-field .member-stats {
    gap: 0.2rem;
    margin-top: 0.15rem;
}

/* Larger stats for member cards */
.member-card .stat-badge {
    font-size: 1rem; /* Increased from 0.85rem */
    padding: 0.75rem 0.5rem; /* Increased padding */
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* For field player cards (smaller versions) */
.members-cards-field .member-card .stat-badge {
    font-size: 0.7rem; /* Increased from 0.5rem */
    padding: 0.4rem 0.3rem; /* Increased padding */
    font-weight: 600;
}

/* For reserve panel cards */
.reserve-cards-container .member-card .stat-badge {
    font-size: 0.9rem; /* Slightly smaller than main cards but larger than before */
    padding: 0.6rem 0.4rem;
    font-weight: 600;
}

.members-cards-field .stat-badge {
    font-size: 0.5rem;
    padding: 0.16rem 0.26rem;
}

.reserve-cards-container .member-card-wrapper {
    width: 100%;
    min-height: 320px;
    height: auto;
    max-width: 340px;
}

.member-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.member-card-wrapper:hover .member-card {
    transform: rotateY(180deg);
}

.member-card-wrapper.clicked .member-card {
    transform: rotateY(180deg);
}

/* For touch devices, disable hover on first touch */
@media (hover: none) {
    .member-card-wrapper:hover .member-card {
        transform: rotateY(0deg);
    }
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 0 20px var(--glow-blue);
    transition: all 0.3s ease;
}

.card-front {
    background: rgba(0, 17, 34, 0.95);
    backdrop-filter: blur(10px);
}

.card-back {
    background: rgba(0, 10, 20, 0.98);
    backdrop-filter: blur(15px);
    transform: rotateY(180deg);
    padding: 1.5rem;
    text-align: center;
}

.member-number {
    font-family: 'VT323', monospace;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
    z-index: 2;
}

.member-avatar {
    width: 80%;
    height: 70%;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 2rem;
}

.member-name {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-blue);
    letter-spacing: 2px;
}

.member-specialty {
    font-size: 1rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-blue);
}

.member-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
}

.member-portfolio-link {
    margin-top: 0.5rem;
    align-self: stretch;
    text-align: center;
    text-decoration: none;
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(0, 17, 34, 0.8);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.55);
    transition: all 0.3s ease;
}

.member-portfolio-link:hover,
.member-portfolio-link:focus-visible {
    background: var(--primary-blue);
    color: var(--darker-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

.stat-badge {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--primary-blue);
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-white);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive adjustments for member cards */
@media (max-width: 968px) {
    .member-card-wrapper {
        width: 110px;
        height: 185px;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-specialty {
        font-size: 0.9rem;
    }

    .stat-badge {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}

@media (max-width: 576px) {
    .member-card-wrapper {
        width: 95px;
        height: 150px;
    }

    .member-number {
        font-size: 1.2rem;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-specialty {
        font-size: 0.8rem;
    }

    .stat-badge {
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .football-ground {
        min-height: 500px;
    }
}

/* Contact Section */
.contact::before {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.9) 0%, rgba(0, 10, 20, 0.85) 100%);
}

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

.contact-form-wrapper {
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 0 30px var(--glow-blue);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--glow-blue);
    background: rgba(0, 10, 20, 1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    color: var(--primary-blue);
    font-family: 'VT323', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    color: var(--darker-blue);
    background: var(--primary-blue);
    box-shadow: 0 0 30px var(--glow-blue);
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 0 30px var(--glow-blue);
}

.info-icon {
    font-size: 2.5rem;
}

.info-text h4 {
    font-family: 'VT323', monospace;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.info-text p {
    color: var(--text-gray);
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.discord-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discord-member {
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(0, 17, 34, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.08);
}

.discord-member h5 {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.username-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.username-row p {
    margin: 0;
    color: var(--text-white);
    letter-spacing: 1px;
}

.username-value {
    color: var(--accent-blue);
    font-weight: 700;
}

.copy-username-btn {
    border: 1px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.copy-username-btn:hover,
.copy-username-btn:focus-visible {
    background: var(--primary-blue);
    color: var(--darker-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

.copy-username-btn.copied {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--darker-blue);
}

/* Footer */
.footer {
    background: rgba(0, 10, 20, 0.95);
    border-top: 2px solid var(--primary-blue);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    min-height: auto;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 20, 0.95);
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.footer-text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'VT323', monospace;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.ctf-list-card {
    grid-column: span 2; /* Make it wider if needed */
}

.ctf-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.ctf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.ctf-item:last-child {
    border-bottom: none;
}

.ctf-name {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.ctf-rank {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--neon-green);
}

/* Responsive design for the CTF list */
@media (max-width: 768px) {
    .ctf-list-card {
        grid-column: span 1;
    }
    
    .ctf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .ctf-rank {
        align-self: flex-end;
    }
}