* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: black;
    color: white;
    overflow: hidden;
    height: 100dvh;
}

.toru-container {
    position: relative;
    width: 100vw;
    height: 100dvh;
    background: 
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    background-color: black;
}

.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 80px 80px;
    background-position: 0 0, 0 40px, 40px -40px, -40px 0px;
    animation: checkerSlide 10s linear infinite;
    will-change: transform;
}

.toru-interface {
    position: relative;
    z-index: 10;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
    overflow: auto;
}

.interface-header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    animation: bounce 1.5s ease-out;
}

.title-accent {
    color: #666;
    animation: pulse 2s infinite;
}

.subtitle-text {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.header-divider {
    width: 100px;
    margin: 1rem auto;
    animation: expandWidth 1s ease-out 0.5s both;
}

.menu-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease-out;
    will-change: transform;
}

.menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

.menu-item:nth-child(4) {
    animation-delay: 0.4s;
}

.menu-item:nth-child(5) {
    animation-delay: 0.5s;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover {
    border-color: white;
    transform: translate3d(10px, 0, 0);
}

.menu-item:hover::before {
    left: 100%;
}

.menu-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    width: 60px;
    text-align: center;
}

.menu-content {
    flex: 1;
}

.menu-content h3 {
    margin-bottom: 0.25rem;
}

.menu-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.menu-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    will-change: transform;
}

.menu-item:hover .menu-arrow {
    transform: translate3d(10px, 0, 0);
}

.home-link {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.interface-footer {
    text-align: center;
    margin-top: 2rem;
}

.footer-divider {
    width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1rem auto;
}

.interface-footer p {
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.section-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
    overflow-y: auto;
    transform: scale3d(0.8, 0.8, 1);
    transform-origin: center;
    will-change: transform, opacity;
    pointer-events: none;
}

.section-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale3d(1, 1, 1);
    pointer-events: auto;
}

.section-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section-overlay .section-content {
    transform: translate3d(0, 30px, 0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    will-change: transform, opacity;
}

.section-overlay.active .section-content {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.section-overlay .section-header {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
    will-change: transform, opacity;
}

.section-overlay.active .section-header {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-family: 'Momo Trust Display';
}

.back-btn {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    margin-right: 2rem;
}

.back-btn:hover, .project-btn:hover, .contact-link:hover {
    background: white;
    color: black;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    padding: 2rem;
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h3 {
    margin-bottom: 0.5rem;
}

.header-line {
    width: 100%;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.stat-value {
    font-weight: 400;
    text-align: right;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.skill-card i, .contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card i {
    display: block;
}

.skill-card h4, .contact-info h4, .project-info h4 {
    font-weight: 700;
    letter-spacing: 0.1em;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skill-meter {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, white 0%, #ccc 100%);
    width: 0;
    transition: width 2s ease-out;
    border-radius: 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translate3d(10px, 0, 0);
}

.project-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-info p, .contact-info p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.project-info p {
    padding-right: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: white;
    color: black;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.project-btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCategory 0.8s ease forwards;
}

.skill-category:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-category:nth-child(2) {
    animation-delay: 0.3s;
}

.skill-category:nth-child(3) {
    animation-delay: 0.5s;
}

.skill-category:nth-child(4) {
    animation-delay: 0.7s;
}

.category-header {
    margin-bottom: 2rem;
    text-align: center;
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
}

.category-line {
    width: 80px;
    margin: 0 auto;
    animation: expandWidth 1s ease-out;
}

.skill-category .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category .skill-card, .skill-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.skill-category .skill-card {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.skill-category .skill-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: left 0.5s ease;
}

.skill-category .skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translate3d(0, -5px, 0);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-category .skill-card:hover::before {
    left: 100%;
}

.skill-category .skill-card img {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
    filter: saturate(0);
    object-fit: scale-down;
    will-change: transform;
}

.skill-category .skill-card:hover img {
    transform: scale3d(1.1, 1.1, 1);
    filter: none;
}

@keyframes fadeInCategory {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-note {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-radius: 0;
}

.skill-note p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.skill-note i {
    margin-right: 0.5rem;
    font-size: 1rem;
    vertical-align: middle;
}

.about-card, .skill-card, .project-item, .contact-card, .menu-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.menu-item:hover, .project-item:hover, .skill-card:hover, .contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.skill-card:hover, .contact-card:hover {
    transform: translateY(-5px);
}

.back-btn, .project-btn, .contact-link {
    background: none;
    border: 2px solid white;
    color: white;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.card-header h3, .menu-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.header-divider, .header-line, .category-line {
    height: 2px;
    background: white;
}

@media (max-width: 768px) {
    .skill-category .skill-card img {
        width: 2rem;
        height: 2rem;
    }
    
    .skill-category .skill-card i {
        font-size: 2rem;
    }

    .toru-interface {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .menu-item {
        padding: 1rem;
    }
    
    .menu-icon {
        font-size: 1.5rem;
        margin-right: 1rem;
        width: 40px;
    }
    
    .menu-content h3 {
        font-size: 1.2rem;
    }
    
    .section-overlay {
        padding: 1rem;
    }
    
    .section-header {
        gap: 1rem;
    }
    
    .back-btn {
        margin-right: 0;
    }
    
    .project-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-tags {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .project-info p {
        padding-right: 0;
    }
    
    .stat-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }
    
    .contact-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        gap: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .skill-category .skill-card {
        padding: 1rem;
    }
    
    .skill-category .skill-card i {
        font-size: 2rem;
    }
    
    .skill-category .skill-card h4 {
        font-size: 0.9rem;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes checkerSlide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(120px, 120px, 0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%) rotate(-15deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(-15deg);
        opacity: 0.1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0% {
        opacity: 0;
        transform: scale(1.1) skewX(5deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.05) skewX(-2deg);
    }
    40% {
        transform: scale(0.98) skewX(1deg);
    }
    60% {
        transform: scale(1.02) skewX(-1deg);
    }
    80% {
        transform: scale(0.99) skewX(0.5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) skewX(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes fillMeter {
    from {
        width: 0;
    }
    to {
        width: var(--width, 100%);
    }
}
