:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141f;
    --accent-primary: #ff006e;
    --accent-secondary: #8338ec;
    --accent-tertiary: #3a86ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.05;
    animation: pulse 8s ease-in-out infinite;
}

.pfp-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(204, 0, 255, 0.8);
    transition: box-shadow 0.3s ease;
}

.pfp-wrapper:hover {
    box-shadow: 0 0 30px rgb(200, 0, 255);
}

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


.logo:hover {
    box-shadow: 0 0 30px rgb(195, 0, 255);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.1); opacity: 0.08; }
}

.intro-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.name-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Animated Doll Scene */
.animated-scene {
    width: 100%;
    height: 500px;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, rgba(131, 56, 236, 0.1) 0%, transparent 70%);
}

.doll-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.doll-figure {
    position: absolute;
    bottom: 0;
    transition: all 0.3s ease;
}

.her-doll {
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: standAndTurn 8s ease-in-out infinite;
}

.dog-doll {
    left: 10%;
    z-index: 1;
    animation: dogComesToHer 8s ease-in-out infinite;
}

.doll-image {
    height: 400px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.3));
    image-rendering: crisp-edges;
}

.her-doll .doll-image {
    animation: floatingEffect 4s ease-in-out infinite;
}

.dog-doll .doll-image {
    height: 200px;
    animation: dogBounce 2s ease-in-out infinite;
}

/* Character Animations */
@keyframes standAndTurn {
    0%, 20% {
        transform: translateX(-50%) scaleX(1);
    }
    30%, 40% {
        transform: translateX(-50%) scaleX(-1);
    }
    50%, 70% {
        transform: translateX(-50%) scaleX(-1);
    }
    80%, 100% {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes dogComesToHer {
    0%, 10% {
        left: 10%;
        transform: scaleX(1);
    }
    40%, 60% {
        left: 35%;
        transform: scaleX(1);
    }
    70%, 100% {
        left: 10%;
        transform: scaleX(-1);
    }
}

@keyframes floatingEffect {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes dogBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    margin-top: 4rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    margin: 1rem auto;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Gallery Section with Navigation */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.music-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* Navigation Buttons */
.nav-btn {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 0, 110, 0.2);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Adjust grid layouts for centered 3-item display */
#gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 900px;
}

#music-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 750px;
}

/* Pagination Info */
.pagination-info {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.lightbox-prev,
.lightbox-next {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

/* Game Section */
.game-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.game-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-nav-arrow {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.game-nav-arrow:active {
    transform: scale(0.95);
}

.game-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 250px;
    text-align: center;
    background: var(--glass-bg);
    padding: 0.8rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.game-container {
    text-align: center;
    padding: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    min-height: 700px;
    height: 700px;
    overflow: hidden;
}

.game-content {
    display: none;
    width: 100%;
    height: 100%;
}

.game-content.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#snake-game.game-content.active,
#tictactoe-game.game-content.active {
    display: block;
}

#snake-game iframe,
#tictactoe-game iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 30px;
}

#rps-game {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

#rps-game.game-content.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-choices {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.game-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
}

.game-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.4);
}

.game-btn:active {
    transform: scale(0.95);
}

.game-icon {
    font-size: 3rem;
}

.game-btn span:last-child {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.game-result {
    margin-top: 2rem;
    font-size: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.game-result.win {
    color: #4ade80;
}

.game-result.lose {
    color: #f87171;
}

.game-result.tie {
    color: #fbbf24;
}

/* Message Section */
.message-section {
    background: var(--bg-secondary);
}

.message-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.message-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s;
}

.message-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.2);
}

.send-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.send-btn:active {
    transform: scale(0.98);
}

.message-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.message-status.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.message-status.error {
    display: block;
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animated-scene {
        height: 400px;
    }
    
    .doll-image {
        height: 300px;
    }
    
    .dog-doll .doll-image {
        height: 150px;
    }
    
    @keyframes dogComesToHer {
        0%, 10% {
            left: 5%;
            transform: scaleX(1);
        }
        40%, 60% {
            left: 30%;
            transform: scaleX(1);
        }
        70%, 100% {
            left: 5%;
            transform: scaleX(-1);
        }
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .game-choices {
        gap: 1rem;
    }
    
    .game-btn {
        padding: 1.5rem;
        min-width: 100px;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

/* Music Section */
.music-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}


.music-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.music-item:hover {
    transform: translateY(-5px);
}

.music-poster {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    aspect-ratio: 1;
}

.music-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.music-item:hover .music-poster img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-item:hover .play-overlay {
    opacity: 1;
}

.music-item.playing .play-overlay {
    opacity: 1;
    background: rgba(255, 0, 110, 0.3);
}

.play-icon {
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.music-item.playing .play-icon {
    animation: pulse 1s infinite;
}

.music-item.playing .play-icon::before {
    content: '⏸';
}

.song-title {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments for music section */
@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-wrapper,
    .music-wrapper {
        gap: 1rem;
    }
    
    .play-icon {
        font-size: 2rem;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #music-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}