/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
    background-color: #080808;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-inner {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00FFFF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF;
    transition: all 0.1s ease;
}

.cursor-outer {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #00FFFF;
    text-shadow: 0 0 20px #00FFFF, 0 0 40px #00FFFF;
    margin-bottom: 2rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00FFFF, #FF00AA);
    width: 0%;
    animation: loadingProgress 3s ease-in-out;
    box-shadow: 0 0 10px #00FFFF;
}

.loading-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #CCCCCC;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 20px #00FFFF, 0 0 40px #00FFFF; }
    100% { text-shadow: 0 0 30px #00FFFF, 0 0 60px #00FFFF, 0 0 80px #00FFFF; }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    position: relative;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
    position: relative;
    z-index: 2;
}

.logo-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF00AA, #00FF7F);
    opacity: 0;
    animation: logoGlitch 4s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #CCCCCC;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #00FFFF;
    opacity: 0;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #00FFFF;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #00FFFF;
}

@keyframes logoGlitch {
    0%, 90%, 100% { opacity: 0; }
    91%, 99% { opacity: 0.3; }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

.neon-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
    animation: lineMove 8s linear infinite;
}

.line-1 {
    top: 20%;
    left: -100%;
    width: 200%;
    height: 2px;
    animation-delay: 0s;
}

.line-2 {
    top: 60%;
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF00AA, transparent);
    animation-delay: 2s;
}

.line-3 {
    top: 0;
    left: 30%;
    width: 1px;
    height: 200%;
    background: linear-gradient(0deg, transparent, #00FF7F, transparent);
    animation: lineMove 6s linear infinite;
    animation-delay: 4s;
}

.line-4 {
    top: 0;
    left: 70%;
    width: 2px;
    height: 200%;
    background: linear-gradient(0deg, transparent, #00FFFF, transparent);
    animation: lineMove 10s linear infinite;
    animation-delay: 1s;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}

.title-line {
    display: block;
    color: #ffffff;
    text-shadow: 0 0 20px #00FFFF, 0 0 40px #00FFFF;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-line:nth-child(2) {
    color: #00FFFF;
    animation-delay: 0.5s;
}

.title-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF00AA, #00FF7F);
    opacity: 0;
    animation: titleGlitch 6s infinite;
    mix-blend-mode: multiply;
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #CCCCCC;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    animation: subtitleFade 2s ease-in-out;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #00FFFF, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

.scroll-arrow {
    color: #00FFFF;
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes lineMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px #00FFFF, 0 0 40px #00FFFF; }
    100% { text-shadow: 0 0 30px #00FFFF, 0 0 60px #00FFFF, 0 0 80px #00FFFF; }
}

@keyframes titleGlitch {
    0%, 95%, 100% { opacity: 0; }
    96%, 99% { opacity: 0.1; }
}

@keyframes subtitleFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

@keyframes scrollArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTION STYLES ===== */
.section-number {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #00FFFF;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.title-line-accent {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #00FFFF, #FF00AA);
    margin-bottom: 2rem;
    box-shadow: 0 0 10px #00FFFF;
}

/* ===== CONCEPT SECTION ===== */
.concept {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, #080808 0%, #0A0F1E 100%);
}

.concept-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.concept-left {
    position: relative;
}

.concept-right {
    position: relative;
}

.concept-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: #CCCCCC;
    margin-bottom: 3rem;
}

.concept-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00FFFF;
    text-shadow: 0 0 20px #00FFFF;
}

.stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #CCCCCC;
    letter-spacing: 2px;
}

.concept-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    border-color: rgba(255, 0, 170, 0.2);
    animation-delay: 2s;
}

.element-3 {
    top: 50%;
    right: 30%;
    width: 80px;
    height: 80px;
    border-color: rgba(0, 255, 127, 0.2);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== SHOWCASE SECTION ===== */
.showcase {
    padding: 8rem 0;
    background: #080808;
}

.showcase-header {
    margin-bottom: 4rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item {
    position: relative;
    aspect-ratio: 4/3;
    background: #121212;
    border: 1px solid rgba(0, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    border-color: #00FFFF;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.placeholder-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #121212, #0A0F1E);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wireframe-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: wireframeMove 4s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 0, 170, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0, 255, 127, 0.2) 0%, transparent 50%);
    animation: circuitPulse 3s ease-in-out infinite;
}

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 60%);
    animation: dataFlow 2s linear infinite;
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: hologramScan 3s ease-in-out infinite;
}

.glitch-overlay,
.pulse-effect,
.matrix-effect,
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .glitch-overlay,
.showcase-item:hover .pulse-effect,
.showcase-item:hover .matrix-effect,
.showcase-item:hover .scan-lines {
    opacity: 1;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.showcase-item:hover .item-overlay {
    transform: translateY(0);
}

.item-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00FFFF;
    margin-bottom: 0.5rem;
}

.item-description {
    font-size: 0.9rem;
    color: #CCCCCC;
    margin-bottom: 1rem;
}

.item-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-tech span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00FFFF;
    border-radius: 2px;
}

@keyframes wireframeMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes dataFlow {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes hologramScan {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0A0F1E 0%, #080808 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #CCCCCC;
    margin-bottom: 3rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #00FFFF;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    text-shadow: 0 0 10px #00FFFF;
}

.email-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #00FFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCCCCC;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #00FFFF;
    color: #00FFFF;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #CCCCCC;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-bottom-color: #00FFFF;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #00FFFF;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00FFFF, #FF00AA);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.submit-btn {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    color: #080808;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00FFFF;
    transition: left 0.3s ease;
    z-index: -1;
}

.submit-btn:hover .btn-bg {
    left: 0;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover .btn-glow {
    transform: translateX(100%);
}

/* ===== FOOTER ===== */
.footer {
    padding: 2rem 0;
    background: #080808;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.copyright {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #CCCCCC;
    letter-spacing: 1px;
}

.footer-line {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .concept-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .concept-stats {
        justify-content: center;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    .concept-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .concept-text {
        font-size: 1rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00FFFF, #FF00AA);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00FFFF, #00FF7F);
}