/* Global Styles */
:root {
    --bg-color: #050a14;
    --bg-gradient: linear-gradient(135deg, #050a14 0%, #0a1525 100%);
    --text-color: #e0e0e0;
    --primary-color: #00f2ff;
    /* Cyan */
    --secondary-color: #ff00ff;
    /* Magenta */
    --accent-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --font-main: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
    --font-heading: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
}

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

body {
    background: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, #112240 0%, #050a14 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    filter: invert(0.9);
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav a:hover::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px;
    color: var(--primary-color) !important;
}

.btn-contact:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), #00aaff);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-down .arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    transform: rotate(45deg);
    margin: 10px auto 0;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections Global */
.section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    background: linear-gradient(to bottom, #fff, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

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

/* Vision */
.vision-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.vision-text {
    flex: 1;
}

.vision-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-text p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 2;
}

.vision-visual {
    flex: 1;
    height: 400px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-visual::before {
    content: 'Context Awareness';
    font-family: monospace;
    color: var(--primary-color);
    opacity: 0.5;
    letter-spacing: 0.2em;
}

/* Services */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-name {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 400;
}

.card p {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.card-link {
    color: var(--main-text);
    font-size: 0.9rem;
    font-weight: 700;
    position: absolute;
    bottom: 2.5rem;
    opacity: 0.7;
}

.card-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.card-link.coming-soon {
    cursor: help;
    position: relative;
}

/* Tooltip container */
.card-link.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    pointer-events: none;
    z-index: 10;
}

/* Tooltip arrow */
.card-link.coming-soon::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.card-link.coming-soon:hover::after,
.card-link.coming-soon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Company */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.company-logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo-wrapper img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.company-info dl {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.company-info dt {
    font-weight: 700;
    color: #fff;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.company-info dd {
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Contact */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

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

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 3rem 5%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

.copyright {
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in {
    opacity: 0;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav {
        display: none;
        /* simple hide for desktop nav */
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Menu Logic should be added in JS but for now static styles */
    .nav.active {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 10, 20, 0.95);
        padding: 2rem;
        text-align: center;
    }

    .nav.active ul {
        flex-direction: column;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .vision-content {
        flex-direction: column;
    }

    .company-info {
        flex-direction: column;
    }

    .company-info dl {
        grid-template-columns: 1fr;
    }

    .company-info dt {
        border-left: none;
        border-bottom: 2px solid var(--primary-color);
        padding-left: 0;
        margin-bottom: 0.2rem;
        display: inline-block;
    }

    .company-info dd {
        margin-bottom: 1.5rem;
    }
}