/*
Theme Name: Cyberpunk LP
Description: A cyberpunk styled landing page theme.
Author: Antigravity
Version: 1.0
*/

:root {
    --bg-color: #050505;
    --bg-darker: #000;
    --text-color: #e0e0e0;
    --neon-cyan: #0ff;
    --neon-magenta: #f0f;
    --neon-yellow: #ff0;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
}

.flicker {
    animation: flicker 2s infinite alternate;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-color) 0%, rgba(5, 5, 5, 0.7) 50%, rgba(8, 8, 8, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-glitch {
    font-size: 4rem;
    color: #fff;
    position: relative;
    margin-bottom: 20px;
    text-shadow: 2px 2px var(--neon-magenta), -2px -2px var(--neon-cyan);
}

.cyber-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    /* Ensure it's on top of everything */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 10;
    width: 60%;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
}

@keyframes cyber-scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 0 15px;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--neon-magenta);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    /* Reset button styles */
    border: none;
    line-height: 1;
    transition: all 0.2s;
    z-index: 1002;
    /* Above modal content */
}

.hero-glitch::before,
.hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Matches bg to hide main text */
    background: transparent;
    opacity: 0.8;
}

.hero-glitch::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.hero-glitch::after {
    color: var(--neon-magenta);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--neon-cyan);
    letter-spacing: 5px;
}

/* Buttons */
.cyber-btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.cyber-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: block;
    /* Removed transform hack for better stability */
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--neon-magenta);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--neon-magenta);
}

/* About / Cards */
.about-section {
    background: #0a0a0a;
}

.cyber-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s;
    border-left: 5px solid var(--neon-magenta);
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.cyber-card h3 {
    color: var(--neon-yellow);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 2px solid #333;
    transition: all 0.3s;
    filter: grayscale(80%);
}

.gallery-grid img:hover {
    filter: grayscale(0%);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Footer */
.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* Utilities */
.neon-text-cyan {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-cyan),
        0 0 30px var(--neon-cyan);
}

.neon-text-magenta {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-magenta),
        0 0 30px var(--neon-magenta);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--neon-cyan);
    }

    20%,
    24%,
    55% {
        opacity: 0.4;
        text-shadow: none;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(60px, 9999px, 10px, 0);
        transform: skew(4.5deg);
    }

    10% {
        clip: rect(10px, 9999px, 90px, 0);
        transform: skew(-3.5deg);
    }

    15% {
        clip: rect(90px, 9999px, 20px, 0);
        transform: skew(2.5deg);
    }

    20% {
        clip: rect(10px, 9999px, 85px, 0);
        transform: skew(-1.5deg);
    }

    100% {
        clip: rect(70px, 9999px, 60px, 0);
        transform: skew(0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 60px, 0);
        transform: skew(1.5deg);
    }

    5% {
        clip: rect(90px, 9999px, 30px, 0);
        transform: skew(-3.5deg);
    }

    10% {
        clip: rect(30px, 9999px, 70px, 0);
        transform: skew(2.5deg);
    }

    15% {
        clip: rect(60px, 9999px, 10px, 0);
        transform: skew(-2.5deg);
    }

    20% {
        clip: rect(20px, 9999px, 90px, 0);
        transform: skew(4.5deg);
    }

    100% {
        clip: rect(50px, 9999px, 20px, 0);
        transform: skew(0);
    }
}

/* 10JQKA Custom Styles */
.member-card {
    display: flex;
    align-items: center;
    gap: 40px;
}

.member-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.member-info h3 {
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.member-badge {
    font-family: var(--font-display);
    color: var(--neon-yellow);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.mission-text {
    margin-top: 20px;
    font-style: italic;
    color: #fff;
    border-left: 3px solid var(--neon-magenta);
    padding-left: 15px;
}

/* Link Grid */
.link-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cyber-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    transition: all 0.3s;
    text-decoration: none;
}

.cyber-link-card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px var(--neon-magenta));
}

.cyber-link-card .label {
    font-family: var(--font-display);
    color: #e0e0e0;
}

.cyber-link-card:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    transform: translateY(-5px);
}

.cyber-link-card:hover .label {
    color: var(--neon-magenta);
}

@media (max-width: 768px) {

    /* Layout Adjustments */
    .hero-glitch {
        font-size: 2.5rem;
        /* Smaller title on mobile */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .member-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .member-img img {
        width: 150px;
        height: 150px;
    }

    .member-info h3 {
        width: 100%;
        /* Full width border */
    }

    .link-grid {
        flex-direction: column;
        /* Stack links vertically */
        align-items: center;
    }

    .cyber-link-card {
        width: 100%;
        max-width: 300px;
        /* Full width but contained */
    }

    /* Padding adjustments */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* Dynamic Character Colors */
.colored-char {
    display: inline-block;
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: bold;
}

/* Header Navigation */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-link-neon {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-magenta);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--neon-magenta);
    border-radius: 5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.nav-link-neon:hover {
    background-color: var(--neon-magenta);
    color: var(--bg-color);
    text-shadow: none;
    box-shadow: 0 0 20px var(--neon-magenta), 0 0 40px var(--neon-magenta);
}

/* Contact Form Section */
.contact-section {
    padding: 100px 0;
    min-height: 80vh;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 40px auto 0;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.contact-form .form-hint {
    display: block;
    font-size: 0.8rem;
    color: #ff4444;
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    min-width: 200px;
    font-size: 1.1rem;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff4444;
    color: #ff4444;
}

/* Responsive Header */
@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-link-neon {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}