:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-primary: #00f3ff; /* Neon Cyan */
    --accent-secondary: #bc13fe; /* Neon Purple */
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: 0.05em;
}

.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.highlight-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-button-small {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-small:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3), var(--bg-color));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color); /* Or transparent if needed */
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(60px, 9999px, 80px, 0); }
    80% { clip: rect(120px, 9999px, 140px, 0); }
    100% { clip: rect(10px, 9999px, 40px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(120px, 9999px, 140px, 0); }
    20% { clip: rect(10px, 9999px, 40px, 0); }
    40% { clip: rect(80px, 9999px, 100px, 0); }
    60% { clip: rect(10px, 9999px, 50px, 0); }
    80% { clip: rect(60px, 9999px, 80px, 0); }
    100% { clip: rect(10px, 9999px, 30px, 0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.cta-button-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Mission */
/* .mission {
    text-align: center;
} */
.mission p {
    text-align: center;
}

.section-text {
    font-size: 1.5rem;
    line-height: 2;
    font-weight: 300;
}

/* Fields Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

/* Roadmap */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-secondary);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

/* CTA Footer */
.cta-footer {
    text-align: center;
    background: linear-gradient(to top, rgba(0, 243, 255, 0.1), transparent);
}

.cta-footer h2 {
    margin-bottom: 1rem;
}

.cta-footer p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111;
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.entry-form .form-group {
    margin-bottom: 1.5rem;
}

.entry-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.entry-form input, .entry-form select, .entry-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    font-family: var(--font-main);
}

.entry-form input:focus, .entry-form select:focus, .entry-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-primary);
    color: black;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2rem; /* Slightly smaller to prevent overflow */
        word-wrap: break-word;
    }
    
    .section-title {
        font-size: 2rem;
        left: auto;
        transform: none;
        display: block;
        width: 100%;
    }

    .section-text {
        font-size: 1rem;
        text-align: left; /* Easier to read on mobile */
    }

    .section-text br {
        display: none; /* Hide manual line breaks on mobile */
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 3rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}
