/* =========================================
   Variables & Basic Setup
========================================= */
:root {
    /* Colors - Dark Theme with Cyan Accent */
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 28, 0.6);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent-cyan: #00BFFF;
    --accent-glow: rgba(0, 191, 255, 0.4);

    /* Gradients */
    --cyan-gradient: linear-gradient(135deg, #00BFFF, #005fcc);

    /* UI Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans JP', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   Typography & Utilities
========================================= */
.accent-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-glow);
}

.gradient-text {
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    border-bottom: var(--glass-border);
}

.blur-effect {
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.glowing:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent-cyan);
}

/* =========================================
   Features Section
========================================= */
.features {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Gallery Section
========================================= */
.gallery {
    padding: 60px 0 100px;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 191, 255, 0.05), transparent);
}

.gallery-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-dark);
    -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.gallery-grid::-webkit-scrollbar-thumb {
    background-color: var(--accent-cyan);
    border-radius: 4px;
}

.gallery-img {
    height: 500px;
    width: auto;
    border-radius: 20px;
    scroll-snap-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    border: var(--glass-border);
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

/* =========================================
   Footer
========================================= */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--text-main);
}