/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fafafa;
    --text-main: #2d3436;
    --text-sub: #636e72;
    --white: #ffffff;

    /* POP Colors */
    --pop-pink: #ff4757;
    --pop-cyan: #1dd1a1;
    --pop-yellow: #feca57;
    --pop-orange: #ff9f43;

    /* Neumorphism / 3D shadow bases */
    --shadow-light: #ffffff;
    --shadow-dark: #d1d8e0;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* Background 3D Floating Elements */
.cube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Base Glassmorphism */
.glass-panel,
.glass-card,
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* 3D Elements & Cards (Clean White POP style) */
.card-3d {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 20px 20px 40px var(--shadow-dark),
        -20px -20px 40px var(--shadow-light);
}

.btn-3d {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-3d:hover {
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transform: translateY(2px);
    color: var(--pop-pink);
}

.btn-3d:active {
    box-shadow: inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
}

.logo span {
    color: var(--pop-cyan);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--pop-orange);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    margin: 20px;
    border-radius: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.pop-text {
    position: relative;
    z-index: 1;
}

.hero-title .block {
    display: inline-block;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-visual {
    flex: 1;
    max-width: 500px;
}

.hero-3d-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

.floating-slow {
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.title-3d {
    font-size: 3rem;
    text-align: center;
    font-weight: 900;
    position: relative;
    color: var(--text-main);
    text-shadow: 2px 2px 0 var(--white),
        4px 4px 0 var(--shadow-dark);
}

.title-3d span {
    color: var(--pop-pink);
}

.section-desc {
    text-align: center;
    color: var(--text-sub);
    font-weight: 700;
    margin-top: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.profile-card {
    padding: 20px;
    text-align: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 8px solid var(--white);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    display: block;
}

.profile-name h3 {
    font-size: 1.8rem;
    color: var(--text-main);
}

.profile-name p {
    color: var(--pop-cyan);
    font-weight: 700;
}

.about-text {
    padding: 40px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--pop-orange);
}

/* Skills Section */
.bg-light-pop {
    background: linear-gradient(135deg, rgba(230, 240, 255, 0.5) 0%, rgba(255, 230, 240, 0.5) 100%);
    border-radius: 40px;
    margin: 0 20px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pop-accent-1 {
    color: var(--pop-pink);
}

.pop-accent-2 {
    color: var(--pop-cyan);
}

.category-sub {
    color: var(--text-sub);
    margin-bottom: 30px;
    font-weight: bold;
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 30px;
    text-align: left;
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
}

.icon-wrap.pop-pink {
    background: var(--pop-pink);
}

.icon-wrap.pop-cyan {
    background: var(--pop-cyan);
}

.icon-wrap.pop-yellow {
    background: var(--pop-yellow);
}

.icon-wrap.pop-orange {
    background: var(--pop-orange);
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* Tools Section */
.tools-container {
    padding: 50px;
    text-align: center;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tag-3d {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transition: transform 0.2s;
}

.tag-3d i {
    margin-right: 8px;
    color: var(--pop-yellow);
}

.tag-3d:hover {
    transform: translateY(-5px);
    color: var(--pop-orange);
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cursor-pointer {
    cursor: pointer;
}

/* .work-img-wrap removed */

.work-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-cat {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 5px;
    color: var(--white);
    margin-bottom: 10px;
}

.work-cat.pop-pink {
    background: var(--pop-pink);
}

.work-cat.pop-cyan {
    background: var(--pop-cyan);
}

.work-cat.pop-yellow {
    background: var(--pop-yellow);
    color: #333;
}

.work-cat.pop-orange {
    background: var(--pop-orange);
}

.work-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.work-info p {
    font-size: 0.95rem;
    color: var(--text-sub);
}

.work-action {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 700;
    color: var(--pop-pink);
    text-align: right;
    font-size: 0.95rem;
}

.work-action.pop-cyan-text {
    color: var(--pop-cyan);
}

.action-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.work-card:hover .action-text {
    transform: translateX(-5px);
}

/* Footer */
.footer {
    padding: 50px 20px;
    margin: 20px;
    border-radius: 40px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--pop-orange);
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

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

}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content-box {
    background: var(--bg-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-sub);
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--pop-pink);
}

.modal-body img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-body .work-cat {
    margin-bottom: 15px;
}