:root {
    --primary-cyan: #00ffff;
    --primary-blue: #0080ff;
    --primary-purple: #8000ff;
    --primary-pink: #ff00ff;
    --dark-bg: #0a0a0f;
    --dark-surface: #141420;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --gradient-cyber: linear-gradient(135deg, #00ffff, #0080ff, #8000ff, #ff00ff);
    --gradient-text: linear-gradient(90deg, #00ffff, #ff00ff);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 2;
    pointer-events: none;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii45IiBudW1PY3RhdmVzPSI0IiBzZWVkPSI1Ii8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIxIi8+PC9zdmc+');
}

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    animation: logo-pulse 2s ease-in-out infinite;
}

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

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    transition: width 0.3s;
}

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-link {
    padding: 0.25rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

.lang-link:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.lang-link.active {
    color: var(--dark-bg);
    background: var(--gradient-cyber);
    border-color: transparent;
}

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

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

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5rem 2rem;
    margin-top: 60px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

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

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-cyan);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--primary-pink);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 1px); }
    80% { clip-path: inset(90% 0 5% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
    20% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(30% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(1px, -1px); }
    80% { clip-path: inset(80% 0 10% 0); transform: translate(-1px, 1px); }
}

.hero-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.typing-effect span {
    border-right: 3px solid var(--primary-cyan);
    animation: typing 3s steps(30, end), blink 0.5s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cyber-button {
    padding: 1rem 2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.cyber-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.7);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cyber-button:hover .btn-glitch {
    transform: translateX(100%);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards {
    display: grid;
    gap: 2rem;
    position: relative;
}

.card-3d {
    width: 200px;
    height: 100px;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}

.card-3d:nth-child(2) { animation-delay: 0.5s; }
.card-3d:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    border: 2px solid var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(255, 0, 255, 0.1);
    border-color: var(--primary-pink);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

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

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

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-cyan);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: wheel-scroll 1.5s infinite;
}

@keyframes wheel-scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

.services-section,
.about-section,
.contact-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

.service-card {
    background: rgba(20, 20, 32, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-cyan);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: var(--primary-cyan);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-cyan);
}

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

.about-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-cyan);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hologram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hologram {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-radius: 50%;
    animation: rotate-ring 10s linear infinite;
}

.hologram-ring:nth-child(1) {
    border-color: var(--primary-cyan);
    animation-duration: 8s;
}

.hologram-ring:nth-child(2) {
    border-color: var(--primary-purple);
    width: 80%;
    height: 80%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.hologram-ring:nth-child(3) {
    border-color: var(--primary-pink);
    width: 60%;
    height: 60%;
    animation-duration: 6s;
}

@keyframes rotate-ring {
    from { transform: rotateX(60deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

.hologram-core {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 32, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-primary);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    transition: width 0.3s;
}

.form-input:focus ~ .input-border {
    width: 100%;
}

.main-footer {
    background: rgba(10, 10, 15, 0.9);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.footer-logo-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.footer-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-cyan);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links,
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
}