:root {
    --val-red: #ff4655;
    --val-dark: #0f1923;
    --val-white: #ece8e1;
    --val-gray: #768079;
    --val-bg-alt: #1a2733;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--val-dark);
    color: var(--val-white);
    overflow-x: hidden;
    min-height: 100vh;
}

body.preload * {
    transition: none !important;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    gap: 0.4rem;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    background: rgba(15, 25, 35, 0.9);
    padding: 0.4rem 0.8rem;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid rgba(236, 232, 225, 0.1);
}
.lang-btn {
    background: none;
    border: none;
    color: var(--val-gray);
    cursor: pointer;
    transition: color 0.3s;
}
.lang-btn:hover { color: var(--val-white); }
.lang-btn.active { color: var(--val-red); }
.lang-separator { color: var(--val-gray); }

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: float 10s infinite alternate;
}

.glow.red {
    background: var(--val-red);
    width: 40vw;
    height: 40vw;
    top: -10vw;
    right: -10vw;
}

.glow.white {
    background: var(--val-white);
    width: 30vw;
    height: 30vw;
    bottom: -10vw;
    left: -10vw;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

#app {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Views */
.view {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.view.hidden {
    display: none;
    opacity: 0;
}

.view.active {
    display: flex;
    opacity: 1;
}

/* Home Section */
#home-view {
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.role {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--val-gray);
    margin-bottom: 0.5rem;
}

.name {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: var(--val-white);
}

.name:hover { 
    color: var(--val-red);
    text-shadow: 0 0 20px rgba(255, 70, 85, 0.4);
}

.subtitle {
    font-size: 1rem;
    color: var(--val-gray);
    margin-bottom: 2.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.primary-btn {
    background: var(--val-red);
    border: none;
    color: var(--val-white);
}

.primary-btn:hover {
    background: #e03e4d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.3);
}

/* Philosophy Button */
.philosophy-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.15), rgba(255, 70, 85, 0.05));
    border: 1px solid var(--val-red);
    color: var(--val-white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
}

.philosophy-btn:hover {
    background: rgba(255, 70, 85, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 70, 85, 0.25);
}

.philosophy-btn-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--val-white);
}

.philosophy-btn-sub {
    font-size: 0.75rem;
    color: var(--val-red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--val-white);
    color: var(--val-white);
}

.secondary-btn:hover {
    border-color: var(--val-red);
    color: var(--val-red);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #1a2733; /* Solid dark background */
    border: 1px solid rgba(255, 70, 85, 0.3);
    color: var(--val-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--val-red);
    color: var(--val-white);
    background: rgba(255, 70, 85, 0.1);
}

.featured-players {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.featured-players:hover {
    opacity: 1;
}

.featured-label {
    font-family: 'Teko', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--val-gray);
}

.player-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mini-player-logo {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: help;
}

.mini-player-logo:hover {
    transform: scale(1.2);
    border-color: var(--val-red);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.3);
}

/* About Section */
.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    color: var(--val-gray);
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.back-btn:hover { color: var(--val-white); }

.about-container {
    display: flex;
    max-width: 1250px;
    width: 95%;
    gap: 3rem;
    align-items: flex-start;
}

.about-image-wrapper {
    flex: 1;
    position: sticky;
    top: 6rem;
    max-width: 400px;
}

.profile-img {
    width: 100%;
    max-width: 360px;
    border-radius: 4px;
    box-shadow: 12px 12px 0 rgba(255, 70, 85, 0.15);
    display: block;
}

.image-frame {
    position: relative;
    display: block;
    margin-bottom: 1.5rem;
}

.image-accent {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 45px;
    height: 45px;
    border-top: 3px solid var(--val-red);
    border-left: 3px solid var(--val-red);
    pointer-events: none;
}

.nth-img {
    width: 75%;
    max-width: 280px;
    border-radius: 4px;
    border: 1px solid rgba(255, 70, 85, 0.3);
    opacity: 0.75;
    transition: opacity 0.3s;
    display: block;
}

.nth-img:hover { opacity: 1; }

.about-text, .about-content {
    flex: 1.5;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.about-grid .text-block {
    margin-bottom: 0;
}

.text-block {
    margin-bottom: 3rem;
}

.text-block h3 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--val-red);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.text-block p {
    line-height: 1.7;
    color: #ccc;
    font-size: 1rem;
}

/* Career Timeline */
.timeline {
    margin-top: 1.5rem;
    border-left: 2px solid rgba(255, 70, 85, 0.3);
    padding-left: 2rem;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--val-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--val-red);
}

.timeline-date {
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    color: var(--val-red);
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--val-white);
}

.timeline-content p {
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-container {
    max-width: 1100px;
    width: 100%;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
}

.portfolio-subtitle {
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    color: var(--val-gray);
    letter-spacing: 0.15em;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--val-bg-alt);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--val-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 2rem;
    color: var(--val-red);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* IGL Concept */
.igl-concept {
    background: var(--val-bg-alt);
    padding: 3rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--val-red);
}

.igl-concept h3 {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--val-red);
}

.igl-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Chessboard Concept Visual */
.chessboard-concept {
    background: linear-gradient(rgba(15, 25, 35, 0.9), rgba(15, 25, 35, 0.9)), url('chessboard_bg.png');
    background-size: cover;
    background-position: center;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 70, 85, 0.2);
}

.chessboard-concept h3 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.board-visual {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.board-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.col-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    color: var(--val-gray);
}

.board-cells {
    display: grid;
    grid-template-rows: repeat(4, 50px);
    gap: 0.4rem;
}

.cell {
    width: 50px;
    height: 50px;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.player-card {
    position: relative;
    background: rgba(15, 25, 35, 0.6);
    border: 1px solid rgba(236, 232, 225, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.player-card:hover {
    border-color: var(--val-red);
    background: rgba(255, 70, 85, 0.05);
    transform: translateX(10px);
}

.player-img-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(236, 232, 225, 0.1);
    transition: border-color 0.3s ease;
}

.player-card:hover .player-img-container {
    border-color: var(--val-red);
}

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-content {
    flex-grow: 1;
}

.player-quote {
    font-style: italic;
    color: var(--val-white);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    opacity: 0.9;
}

.player-info {
    border-left: 2px solid var(--val-red);
    padding-left: 0.8rem;
}

.player-name {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: var(--val-red);
    text-transform: uppercase;
    line-height: 1;
}

.player-team {
    font-size: 0.75rem;
    color: var(--val-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.cell.player { color: var(--val-white); }
.cell.enemy { color: var(--val-red); }

.highlight-text { color: var(--val-red); }

/* Tools & Logos */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tool-tag {
    background: rgba(255, 70, 85, 0.05);
    border: 1px solid rgba(255, 70, 85, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-logos {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tech-logo {
    height: 35px;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 70, 85, 0.4));
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .view { padding: 5rem 1.5rem 3rem; }
    .lang-toggle { top: 0.8rem; right: 0.8rem; font-size: 1rem; }
    .back-btn { top: 1rem; left: 1rem; }

    .about-container { flex-direction: column; gap: 2rem; }
    .about-image-wrapper { 
        position: relative;
        top: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nth-img { max-width: 220px; }
    .profile-img { max-width: 280px; }

    .grid-layout { grid-template-columns: 1fr; }
    
    .board-visual { flex-wrap: wrap; gap: 1.5rem; }
    .board-cells {
        grid-template-rows: none;
        grid-template-columns: repeat(4, 46px);
    }
    .cell { width: 46px; height: 46px; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
    .view { padding: 4.5rem 1rem 3rem; }
    .name { font-size: clamp(1.8rem, 10vw, 3rem); }
    .role { font-size: 1.1rem; letter-spacing: 0.1em; }
    .subtitle { font-size: 0.9rem; }

    .action-buttons { flex-direction: column; align-items: center; width: 100%; }
    .primary-btn { width: 100%; justify-content: center; }

    .social-links { gap: 0.6rem; }
    .social-btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

    .about-container { gap: 1.5rem; }
    .text-block h3 { font-size: 1.5rem; }
    .text-block p { font-size: 0.9rem; }

    .igl-concept { padding: 1.5rem 1rem; }
    .igl-concept h3 { font-size: 1.8rem; }
    .igl-content p { font-size: 0.9rem; }

    .chessboard-concept { padding: 1.5rem 0.8rem; }
    .info-card { padding: 1.5rem; }
    .card-icon { font-size: 1.6rem; }
    .info-card h3 { font-size: 1.5rem; }
    .info-card p { font-size: 0.85rem; }

    .portfolio-header { margin-bottom: 2rem; }
    .grid-layout { gap: 1rem; margin-bottom: 2rem; }

    .tech-logos { justify-content: center; gap: 1.5rem; }
    .tech-logo { height: 28px; }
}

/* Scrim CTA Button */
.scrim-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ff4655; /* Solid VALORANT Red */
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 1px solid #ff4655;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.scrim-cta:hover {
    background: white;
    color: var(--val-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 70, 85, 0.4);
    border-color: white;
}

.scrim-cta i {
    transition: transform 0.3s ease;
}

.scrim-cta:hover i {
    transform: scale(1.2) rotate(5deg);
}

.scrim-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.scrim-cta:hover::after {
    left: 100%;
}

@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}
