:root {
    --bg-color: #0a0a0a;
    /* Matte Black */
    --text-primary: #f0fdf4;
    /* Slightly green-tinted white for harmony */
    --text-secondary: #9ca3af;
    --accent-primary: #00C9A7;
    /* Emerald Green */
    --accent-secondary: #059669;
    /* Darker Emerald */
    --glass-bg: rgba(20, 20, 20, 0.6);
    /* Darker glass for matte feel */
    --glass-border: rgba(0, 201, 167, 0.15);
    /* Greenish border */
    --glass-highlight: rgba(0, 201, 167, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 201, 167, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
    gap: 0.5rem;
}

.btn-primary {
    background: white;
    color: black;
}

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

.btn-secondary {
    background: rgba(0, 201, 167, 0.1);
    color: var(--accent-primary);
    backdrop-filter: blur(5px);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: rgba(0, 201, 167, 0.2);
    border-color: var(--accent-primary);
    color: white;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.6rem 1.4rem;
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5rem;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, rgba(0, 201, 167, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

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

.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Profile Card & Image */
.profile-card {
    width: 320px;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transform: rotate(-3deg);
    transition: all 0.5s ease;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-primary);
}

.profile-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--glass-border);
    position: relative;
}

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

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

.profile-info {
    text-align: center;
    width: 100%;
}

.profile-info strong {
    display: block;
    font-size: 1.5rem;
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}

.profile-info span {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Glass Card Style */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

/* Concept / Expertise Section */
.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    text-align: center;
}

.section-title .subtitle {
    display: block;
    font-size: 1rem;
    color: var(--accent-primary);
    font-family: var(--font-body);
    margin-top: 0.5rem;
    font-weight: normal;
}

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

.card-grid .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.card-grid p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Selection Section */
.selection {
    padding: 5rem 0;
}

.selection-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.selection-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.selection-content p:last-child {
    margin-bottom: 0;
}

.selection-highlight {
    color: var(--text-primary) !important;
    font-size: 1.3rem !important;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-primary);
    background: var(--glass-highlight);
    border-radius: 0 12px 12px 0;
}

/* Activities / Strengths Section */
.activities {
    padding: 5rem 0;
}

.activities-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.activities-text {
    flex: 1;
}

.activities-text .section-title {
    text-align: left;
}

.activity-list {
    list-style: none;
}

.strength-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    transition: background 0.3s;
}

.strength-item:hover {
    background: var(--glass-bg);
}

.strength-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.strength-content strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.strength-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.activities-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.strength-image-container {
    width: 320px;
    height: 400px;
    padding: 0;
    /* Remove padding from glass-card for full image */
    display: flex;
    /* Centering if needed */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 201, 167, 0.2);
    z-index: 2;
    overflow: hidden;
    /* rounded corners from glass-card */
}

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

.strength-image-container:hover .strength-img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.strength-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.strength-link:hover {
    color: white;
    text-decoration: underline;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Join / Contact */
.join {
    padding: 5rem 0;
    text-align: center;
}

.join-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.join-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group .reveal {
    transition-delay: 0.1s;
}

.reveal-group .reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-group .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-group .reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-group .reveal:nth-child(5) {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        /* Increased top padding to account for taller header */
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        margin-top: 2rem;
    }

    .profile-card,
    .strength-image-container {
        width: 100%;
        max-width: 320px;
    }

    .activities-wrapper {
        flex-direction: column-reverse;
        /* Visual on top or bottom? Default logic usually image first or text first. Let's keep column to match flow */
        flex-direction: column;
    }

    .activities-visual {
        margin-top: 2rem;
        height: auto;
    }

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