* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --primary-color: #ff1493;
    --secondary-color: #4b0082;
    --accent-color: #61dafb;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --dark-bg: #ffffff;
    --darker-bg: #f5f5f5;
    --text-light: #1a1a1a;
    --text-gray: #555555;
    --border-color: #dddddd;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: #dddddd;
}

body.light-mode section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: scale(1.1) rotateZ(20deg);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    z-index: 1001;
    transition: width 0.2s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 20, 147, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    cursor: pointer;
}

.search-box:hover,
.search-box:focus {
    border-color: var(--primary-color);
    background: rgba(255, 20, 147, 0.1);
    outline: none;
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-subtitle:hover .icon {
    transform: translateX(5px);
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
    display: flex;
    justify-content: center;
}

.character-card {
    position: relative;
    width: 280px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: floatUp 3s ease-in-out infinite;
}

.character-card.pink {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2) 0%, rgba(255, 20, 147, 0.05) 100%);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.2);
}

.character-card.purple {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.2) 0%, rgba(75, 0, 130, 0.05) 100%);
    border-color: rgba(75, 0, 130, 0.3);
    box-shadow: 0 0 30px rgba(75, 0, 130, 0.2);
}

.character-card.purple-alt {
    background: linear-gradient(135deg, rgba(93, 58, 106, 0.2) 0%, rgba(93, 58, 106, 0.05) 100%);
    border-color: rgba(93, 58, 106, 0.3);
    box-shadow: 0 0 30px rgba(93, 58, 106, 0.2);
}

.character-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 20, 147, 0.5);
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out;
}

.who-section {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(75, 0, 130, 0.1) 100%);
    border-radius: 20px;
    margin: 2rem;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-text {
    animation: fadeInLeft 0.6s ease-out;
}

.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-top: 1.5rem;
}

.section-image {
    animation: fadeInRight 0.6s ease-out;
    display: flex;
    justify-content: center;
}

.background-section {
    position: relative;
}

.background-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.background-item {
    padding: 2rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 20, 147, 0.05);
    border-radius: 10px;
    animation: slideInUp 0.6s ease-out;
    transition: var(--transition);
}

.background-item:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: translateX(10px);
}

.background-item.experience {
    border-left-color: var(--accent-color);
    background: rgba(97, 218, 251, 0.05);
}

.background-item.experience:hover {
    background: rgba(97, 218, 251, 0.1);
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-list {
    list-style: none;
}

.item-list li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.item-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.languages-section {
    position: relative;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
    animation: zoomIn 0.6s ease-out;
}

.language-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.2);
}

.card-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.language-card:hover .card-icon {
    transform: scale(1.1) rotateZ(5deg);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.3));
}

.language-card:hover .card-icon svg {
    filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.6));
}

.card-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.test-section {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(93, 58, 106, 0.1) 100%);
    border-radius: 20px;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.emoji {
    display: inline-block;
    animation: wiggle 0.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.test-content {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.test-image {
    animation: fadeInUp 0.6s ease-out;
}

.waifu-section {
    position: relative;
}

.waifu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.waifu-card {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.waifu-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
    cursor: pointer;
    height: 200px;
}

.waifu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.waifu-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.waifu-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.waifu-placeholder.white {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #333;
}

.waifu-placeholder.yellow {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.waifu-placeholder.red {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: #fff;
}

.waifu-placeholder.brown {
    background: linear-gradient(135deg, #8b6f47, #a0826d);
    color: #fff;
}

.placeholder-text {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.waifu-image:hover .waifu-placeholder {
    transform: scale(1.05) rotateZ(2deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.waifu-image:hover img {
    transform: scale(1.05) rotateZ(2deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.waifu-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.waifu-card:hover .waifu-name {
    color: var(--primary-color);
}

.contact-section {
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(97, 218, 251, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: slideInUp 0.6s ease-out;
}

.contact-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.2);
}

.contact-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.contact-footer {
    text-align: center;
    color: var(--text-gray);
    margin-top: 2rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.contact-footer .icon {
    animation: slideInRight 0.6s ease-out infinite alternate;
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.scroll-icon {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-10px);
    }
    to {
        transform: translateX(10px);
    }
}

@media (max-width: 1024px) {
    .hero-content,
    .section-content,
    .background-content {
        grid-template-columns: 1fr;
    }

    .hero-image,
    .section-image,
    .test-image {
        order: -1;
    }

    .nav-menu {
        gap: 1rem;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-menu {
        display: none;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .waifu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .character-card {
        width: 200px;
        height: 250px;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .waifu-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(75, 0, 130, 0.2) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.3);
    position: relative;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.modal-close:hover {
    transform: scale(1.2) rotateZ(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.modal-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confetti-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.confetti-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: fixed;
    pointer-events: none;
    background: var(--primary-color);
    border-radius: 50%;
}

.confetti {
    position: fixed;
    pointer-events: none;
    font-size: 2rem;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotateZ(360deg);
        opacity: 0;
    }
}