/* Base styles and variables */
:root {
    --font-sans-jp: 'Noto Sans JP', sans-serif;
    --font-sans: 'Noto Sans', sans-serif;
    --spacing-unit: 2rem;
    --primary-color: #6366f1;
    --accent-color: #8b5cf6;
}

/* Navbar logo */
.navbar-logo {
    height: 30px;
    width: auto;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.8;
}

/* Typography */
body {
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

[lang="ja"] {
    font-family: var(--font-sans-jp);
}

/* Minimal navbar */
.navbar {
    background-color: transparent !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Language switcher */
.language-switcher {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.language-switcher .btn {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.language-switcher .btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.language-switcher .btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .language-switcher {
        margin: 1rem 0;
    }
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    padding: calc(var(--spacing-unit) * 4) 0;
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "AI スタートアップ\A コード\A プログラミング\A テクノロジー\A イノベーション\A 未来";
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: var(--font-sans-jp);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.8;
    background: linear-gradient(45deg,
        rgba(99, 102, 241, 0.1),  /* Primary indigo */
        rgba(139, 92, 246, 0.1),  /* Secondary purple */
        rgba(79, 70, 229, 0.1)    /* Deeper indigo */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 2rem;
    z-index: 0;
    pointer-events: none;
    animation: scrollText 30s linear infinite;
    opacity: 0.7;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.05) 0px,
        rgba(99, 102, 241, 0.05) 2px,
        transparent 2px,
        transparent 10px
    );
    z-index: 0;
    pointer-events: none;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%) translateY(0%);
    }
    50% {
        transform: translateX(-10%) translateY(-5%);
    }
    100% {
        transform: translateX(0%) translateY(0%);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Section styling */
.section-padding {
    padding: calc(var(--spacing-unit) * 2) 0;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* About section cards */
.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-card .card-body {
    padding: 2rem;
}

.about-card .lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

.key-details li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.key-details li:last-child {
    border-bottom: none;
}

.key-details i {
    width: 1.5rem;
    text-align: center;
}

/* Form styling */
.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 1.5);
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    font-size: 0.95rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        padding: calc(var(--spacing-unit) * 3) 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: fadeIn 0.3s ease-out;
}

/* Networking Section - Kept from original */
.networking-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

/* List styling - Kept from original */
.list-group-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Loading animation - Kept from original */
.loading {
    opacity: 0.7;
    pointer-events: none;
}