/* Main Homepage Styles */

body {
    font-family: "Nunito", sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
}

.hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    padding: 80px 0 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.hero-card {
    max-width: 800px;
    width: 100%;
    perspective: 1000px;
    position: relative;
    opacity: 0;
}

.hero-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.hero-card.flipped .hero-card-inner {
    transform: rotateY(180deg);
}

.hero-card-front,
.hero-card-back {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease, color 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-card-front {
    position: relative;
}

.hero-card-front .flip-button {
    opacity: 1;
    pointer-events: auto;
}

.hero-card.flipped .hero-card-front .flip-button {
    opacity: 0;
    pointer-events: none;
}

.hero-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

.hero-card-back .flip-button {
    opacity: 0;
    pointer-events: none;
}

.hero-card.flipped .hero-card-back .flip-button {
    opacity: 1;
    pointer-events: auto;
}

.hero-card-back .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-button {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.flip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-link-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.social-link-item i {
    font-size: 2rem;
}

.social-link-item .small {
    font-weight: 500;
}

body.dark-mode .social-link-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #e0e0e0;
}

body.dark-mode .social-link-item:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

/* Mobile adjustments for social links */
@media (max-width: 768px) {
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .social-link-item {
        padding: 1rem 0.5rem;
    }

    .social-link-item i {
        font-size: 1.5rem;
    }

    .social-link-item .small {
        font-size: 0.75rem;
    }
}

/* Dock Style */
.dock-container {
    margin-top: 2rem;
    padding-bottom: 2rem;
    transform: scale(0.8);
    opacity: 0;
}

.dock {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    display: inline-flex;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
}

.dock-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: #8b5cf6;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(60px);
}

.dock-item i {
    font-size: 1.25rem;
    color: white;
}

.dock-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.dock-item:hover {
    background-color: #6366f1;
    color: white;
}

body.dark-mode .dock {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .dock {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .dock-item {
        font-size: 1.5rem;
        padding: 0.5rem;
        width: 2.75rem;
        height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dock-item span {
        display: none;
    }

    .dock-item i {
        font-size: 1.5rem;
    }

    .dock-icon-img {
        width: 28px;
        height: 28px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* Alert Overlay */
#alertRow {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: auto;
    margin: 0;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Game Info & Thoughts Cards */
.game-info-card,
.thoughts-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.game-info-card .card-body,
.thoughts-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-cover-container {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 270px;
    margin: 0 auto;
}

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

.game-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #6366f1;
}

.info-value {
    color: #64748b;
    text-align: right;
}

.thoughts-content {
    line-height: 1.8;
    color: #64748b;
}

.thoughts-content p {
    margin-bottom: 1rem;
}

.thoughts-content p:last-child {
    margin-bottom: 0;
}

body.dark-mode .game-info-card,
body.dark-mode .thoughts-card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .info-label {
    color: #a78bfa;
}

body.dark-mode .info-value,
body.dark-mode .thoughts-content {
    color: #94a3b8;
}

body.dark-mode .info-row {
    border-bottom-color: #334155;
}

.feature-card.hover-effect {
    transition: all 0.3s ease;
}

.feature-card.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.card-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.btn-main {
    background-color: #8b5cf6;
    color: white;
}

.btn-cv {
    background-color: #020203;
    color: white;
}

.btn-cv:hover {
    background-color: #6366f1;
    color: white;
}

.btn-main:hover {
    background-color: #6366f1;
    color: white;
}

.btn-miiverse {
    background-color: #85C72F;
    color: white;
}

.btn-miiverse:hover {
    background-color: #619022;
    color: white;
}

.bot-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s;
}

.bot-logo:hover {
    transform: scale(1.05);
}

.description-box,
.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

img.screenshot {
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.screenshots-section,
.faq-section {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

footer {
    background-color: #1e1e2f;
    color: white;
    padding: 30px 0;
}

.custom-popover {
    --bs-popover-max-width: 300px;
    --bs-popover-border-color: #8b5cf6;
    --bs-popover-header-bg: #8b5cf6;
    --bs-popover-header-color: var(--bs-white);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
    --bs-popover-bg: #1e1e1e;
    --bs-popover-body-color: white;
}

body #darkModeToggle {
    background-color: white;
    border: none;
}

body #dividerBar {
    color: #f8f9fa;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .hero-card-front,
body.dark-mode .hero-card-back,
body.dark-mode .accordion-button,
body.dark-mode .description-box,
body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode footer {
    background-color: #0d0d0d;
}

body.dark-mode .bot-logo {
    filter: brightness(0.9);
}

body.dark-mode .screenshots-section,
body.dark-mode .faq-section {
    background-color: #1a1a1a;
}

body.dark-mode .accordion-button:not(.collapsed) {
    background-color: #2a2a2a;
}

body.dark-mode .accordion-body {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .modal-header {
    border-bottom: 1px solid #333 !important;
}

body.dark-mode #darkModeToggle {
    background-color: #1e1e1e;
    border: none;
}

body.dark-mode #dividerBar {
    color: #020203;
}

/* Screenshot Modal Styling */
.blur-heavy {
    filter: blur(10px);
    -webkit-filter: blur(10px);
}

.modal-backdrop.show {
    background-color: transparent;
}

#screenshotModal .modal-dialog {
    max-width: none;
    margin: 0;
    height: 100vh;
    width: 100vw;
}

#screenshotModal .modal-content {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    height: 100%;
    width: 100%;
}

#screenshotModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    padding: 0;
    position: relative;
}

#screenshotModal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#screenshotModal .modal-close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 1060;
}

#screenshotModal .modal-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

@media (max-width: 768px) {
    #screenshotModal .modal-close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Navigation Menu Styles */
.nav-menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-menu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-menu-button span {
    width: 24px;
    height: 3px;
    background-color: #1e1e1e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark-mode .nav-menu-button {
    background-color: #1e1e1e;
    border: 1px solid #334155;
}

body.dark-mode .nav-menu-button span {
    background-color: #f1f5f9;
}

.nav-menu-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 1040;
    visibility: hidden;
    pointer-events: none;
}

.nav-menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
}

.nav-menu-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    background-color: white;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 300px;
}

.nav-menu-overlay.active .nav-menu-panel {
    transform: translateY(0);
    opacity: 1;
}

body.dark-mode .nav-menu-panel {
    background-color: #1e1e1e;
    border: 1px solid #334155;
}

.nav-menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-menu-panel li {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu-panel a {
    text-decoration: none;
    color: #1e1e1e;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-menu-panel a:hover {
    color: #6366f1;
    transform: translateX(10px);
}

body.dark-mode .nav-menu-panel a {
    color: #f1f5f9;
}

body.dark-mode .nav-menu-panel a:hover {
    color: #a78bfa;
}

.nav-menu-panel a::before {
    content: '#';
    font-size: 1.25rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .nav-menu-panel {
        left: 10px;
        right: 10px;
        min-width: auto;
        padding: 1.5rem 2rem;
    }

    .nav-menu-panel li {
        font-size: 1.25rem;
    }
}

/* Year Recap Carousel Styles */
.year-recap-carousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.year-recap-carousel .carousel-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.year-recap-carousel .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background-color: #f8f9fa;
}

body.dark-mode .year-recap-carousel .carousel-item img {
    background-color: #1e1e1e;
}

/* Custom Logo Indicators */
.year-recap-carousel .carousel-indicators {
    position: relative;
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.year-recap-carousel .carousel-indicators [data-bs-target] {
    width: 120px;
    height: 70px;
    border-radius: 12px;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    margin: 0;
    text-indent: 0;
    background-size: cover;
    background-position: center;
    background-clip: padding-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.year-recap-carousel .carousel-indicators [data-bs-target].active {
    opacity: 1;
    border-color: #6366f1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.year-recap-carousel .carousel-indicators [data-bs-target]:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Logo images */
.year-recap-carousel .carousel-indicators .indicator-apple-music {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/AppleMusic_2019.svg/2560px-AppleMusic_2019.svg.png');
    background-size: 80%;
    background-repeat: no-repeat;
    background-color: white;
}

.year-recap-carousel .carousel-indicators .indicator-nintendo-music {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/0/06/Nintendo_Music_with_text_logo.png');
    background-size: 90%;
    background-repeat: no-repeat;
    background-color: white;
}

.year-recap-carousel .carousel-indicators .indicator-twitch {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Twitch_logo_2019.svg/2560px-Twitch_logo_2019.svg.png');
    background-size: 75%;
    background-repeat: no-repeat;
    background-color: white;
}

body.dark-mode .year-recap-carousel .carousel-indicators .indicator-apple-music,
body.dark-mode .year-recap-carousel .carousel-indicators .indicator-nintendo-music,
body.dark-mode .year-recap-carousel .carousel-indicators .indicator-twitch {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .year-recap-carousel .carousel-indicators [data-bs-target] {
        width: 90px;
        height: 55px;
    }

    .year-recap-carousel .carousel-indicators [data-bs-target]::before {
        font-size: 0.7rem;
    }

    .year-recap-carousel .carousel-indicators {
        gap: 0.75rem;
    }
}
