/* --- Variables & Reset --- */
:root {
    --bg-black: #050507;
    --surface: #0f0f12;
    --accent-blue: #4db8ff;
    --text-main: #f0f0f5;
    --text-dim: #94a3b8;
    --nav-height: 80px;
    --card-width: 300px;
    --card-height: 420px;
    --grid-gap: 40px;
    --row-gap: 100px;
    --energy-color: rgba(0, 212, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 1px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* --- Mobile Nav --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        background: rgba(5, 5, 7, 0.95);
        padding: 20px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 0; padding: 15px 0; font-size: 1rem; }
}

/* --- Hero & Sections --- */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #1a1a2e 0%, #050507 70%);
}

.hero-logo-container {
    max-width: 800px;
    width: 90%;
    filter: drop-shadow(0 0 20px rgba(36, 134, 214, 0.3));
}

section { padding: 120px 10%; position: relative; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
}

/* --- Grid & Cards --- */
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-width), 1fr));
    column-gap: var(--grid-gap);
    row-gap: var(--row-gap);
    max-width: 1320px;
    justify-items: center;
    margin-top: 40px;
}

.card {
    width: var(--card-width);
    height: var(--card-height);
    cursor: pointer;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--energy-color);
    filter: blur(20px);
    border-radius: 18px;
    opacity: 0;
    transition: 0.4s ease;
    z-index: 0;
}

.card:hover::before { opacity: 0.6; transform: scale(1.02); }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    border-radius: 12px;
}

.is-active { transform: rotate(180deg); }

.card-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.back { transform: rotate(180deg); opacity: 0; transition: opacity 0.4s; }
.front { z-index: 2; opacity: 1; transition: opacity 0.4s; }
.is-active .front { opacity: 0; }
.is-active .back { opacity: 1; }

.label {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    color: #666;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-radius: 2px;
    margin-top: 20px;
}

.btn:hover {
    background: var(--accent-blue);
    color: black;
    box-shadow: 0 0 30px rgba(77, 184, 255, 0.4);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

footer {
    padding: 60px 5%;
    background: #000;
    text-align: center;
    border-top: 1px solid #111;
}

.socials-section {
    text-align: center;
    background-color: var(--surface); /* Darker surface color */
    padding: 80px 10%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.social-btn {
    text-decoration: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
}

/* Icon styling (assuming Font Awesome) */
.social-btn i {
    font-size: 2.5rem;
}

.social-btn span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hover effect: Glow match the accent blue */
.social-btn:hover {
    color: var(--accent-blue);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px var(--accent-blue));
}