:root {
    /* Base Colors - Deep Tech Background */
    --bg-color: #050508;
    --bg-gradient: radial-gradient(circle at 50% -20%, #1a0b2e 0%, #050508 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Brand Colors - NEXA Purple */
    --accent-primary: #7c3aed;
    /* Vivid Violet */
    --accent-secondary: #4c1d95;
    /* Deep Purple */
    --accent-glow: #8b5cf6;
    --accent-cyan: #06b6d4;
    /* Tech Cyan for contrast accent */

    /* Glassmorphism - Cleaner & Sharper */
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --container-width: 1280px;
    --header-height: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans JP', sans-serif !important;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    /* Subtle Grid Pattern */
    background-size: 100% 100%;
}

/* Tech Background Pattern using CSS Gradients */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Hex grid or dots pattern for tech vibe */
    background-image:
        radial-gradient(var(--glass-border) 1px, transparent 1px),
        radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.gradient-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -3;
    opacity: 0.3;
    animation: drift 25s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-primary), transparent 60%);
    top: -200px;
    left: -200px;
}

.sphere-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 60%);
    bottom: -100px;
    right: -100px;
    opacity: 0.15;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

ul {
    list-style: none;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-glow) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Adding text shadow for "glow" effect */
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    padding: 14px 34px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(25, 25, 40, 0.5);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 8, 0.6);
    /* Darker backdrop */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 98%;
    width: 98%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    /* Extra Bold */
    letter-spacing: -0.5px;
    color: white;
}

.logo img {
    height: 120px;
    width: auto;
    margin-left: -20px;
    /* Offset for the logo's internal whitespace if any */
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

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

.desktop-nav a:hover,
.desktop-nav a.active {
    color: white;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 8, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-overlay a {
    font-size: 2rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Stack top to bottom */
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
    margin-top: -40px;
    padding-bottom: 40px;
    overflow: hidden;
    text-align: center;
}

/* Adding a futuristic grid glow to the hero background */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(124, 58, 237, 0.05), transparent);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: -100px auto 0;
    /* Negative margin to bring it closer to the tilted orbit */
}

.hero h1 {
    font-size: 3.5rem;
    /* Slightly smaller to help fit 1400px width */
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    white-space: nowrap;
    /* Force single line */
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 100%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Tech Visual Decoration for Hero (Right side) */
.hero-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100px;
    /* Minimal height to keep it tight */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-logo {
    max-width: 800px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.4));
    /* Animation removed as requested */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* Services */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-header.center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    color: var(--accent-cyan);
    /* Tech Cyan for contrast */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.section-header h2 {
    font-size: 3rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-grid,
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.feature-list {
    margin-top: auto;
    /* Push to bottom */
    padding-top: 20px;
    color: var(--text-secondary);
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(76, 29, 149, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-glow);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.card-footer {
    margin-top: 30px;
}

.text-link {
    color: var(--accent-glow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-card:hover .text-link {
    gap: 10px;
    color: white;
}

/* Company */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row dt {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-row dd {
    font-weight: 500;
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 40px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    /* slightly brighter */
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.news-item time {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.tag {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.read-more {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.news-item:hover .read-more {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-primary);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
    border-radius: 12px;
    /* Slightly less rounded for form buttons */
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0 20px;
    background: #020205;
    /* Darker footer */
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
}

.footer-links ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

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

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 24px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        text-align: center;
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 80px;
        display: block;
        /* Align content normally for mobile */
    }

    .hero-content {
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
        transform: none;
        margin-top: 40px;
        right: auto;
        top: auto;
    }

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

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        padding-bottom: 0;
    }

    .about-grid,
    .services-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 24px;
    }

    .news-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .info-row {
        grid-template-columns: 100px 1fr;
    }
}

/* MVV Section */
.mvv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mvv-card {
    border-left: 4px solid var(--accent-glow);
    padding: 30px !important;
}

.mvv-title {
    color: var(--accent-glow);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 8px;
    margin-bottom: 20px;
    display: inline-block;
}

.mvv-main-text {
    font-size: 1.4rem;
    color: white;
    margin: 15px 0;
    line-height: 1.3;
}

.mvv-sub-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Why NEXA Section */
.why-nexa-section {
    padding: 50px !important;
}

.why-nexa-header {
    text-align: center;
    margin-bottom: 40px;
}

.why-nexa-logo-row h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.why-nexa-main-title {
    font-size: 1.5rem;
    color: var(--accent-glow);
}

.why-nexa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.col-title.underlined {
    font-size: 1.2rem;
    color: var(--accent-glow);
    text-decoration: underline;
    text-underline-offset: 6px;
    margin-bottom: 20px;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.why-list.dot li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-glow);
    font-size: 1.5rem;
    line-height: 1;
}

.why-list.check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-glow);
    font-weight: bold;
}

.mission-banner-simple {
    padding: 30px 0 0;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    line-height: 1.8;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

@media (max-width: 900px) {

    .mvv-grid,
    .why-nexa-grid {
        grid-template-columns: 1fr;
    }

    .why-nexa-section {
        padding: 30px 20px !important;
    }
}

/* Members Section Styles */
.members-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.member-card {
    position: relative;
    overflow: hidden;
}

.member-role {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.member-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.member-name-en {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.highlight-text {
    color: var(--accent-glow);
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 100%);
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* Webinar Section */
.webinar-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-glow);
}

.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.webinar-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    /* Reset glass-card padding */
    overflow: hidden;
    height: 100%;
}

.webinar-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.webinar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.webinar-card:hover .webinar-image img {
    transform: scale(1.05);
}

.webinar-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

.webinar-status.upcoming {
    background: var(--accent-glow);
    color: white;
}

.webinar-status.archive {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.webinar-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.webinar-body time {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.webinar-body h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.webinar-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex: 1;
}

@media (max-width: 768px) {
    .webinar-grid {
        grid-template-columns: 1fr;
    }
}