@font-face {
    font-family: "JetBrainsMono";
    src: url("font/JetBrainsMonoNerdFontMono-Regular.ttf") format("truetype");
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "JetBrainsMono", monospace;
    background: linear-gradient(135deg, #2d1810 0%, #1a0f0a 50%, #2d1810 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Orientation Warning */
.orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d1810 0%, #1a0f0a 50%, #2d1810 100%);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.orientation-warning.show {
    display: flex;
}

.orientation-content {
    text-align: center;
    padding: 2rem;
    max-width: 90%;
}

.rotate-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: rotate-pulse 2s ease-in-out infinite;
}

@keyframes rotate-pulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-15deg) scale(1.1);
    }

    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

.orientation-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orientation-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.rotate-instruction {
    font-size: 1.4rem !important;
    color: #ff8a00 !important;
    margin-top: 1rem !important;
    font-weight: bold;
}

/* Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    position: relative;
}

/* Permission Section */
#permission-section {
    background: radial-gradient(circle at center, #1a0a0f, #121212);
}

.permission-container {
    text-align: center;
    max-width: 600px;
}

.mic-icon-large {
    font-size: 8rem;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 2rem;
}

.permission-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.permission-text {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.grant-permission-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "JetBrainsMono", monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(229, 46, 113, 0.4);
    margin: 2rem 0;
}

.grant-permission-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(229, 46, 113, 0.6);
}

.permission-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
}


/* Video Section */
#video-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

#main-video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

/* Section Titles */
.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.photo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(229, 46, 113, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.photo-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(229, 46, 113, 0.5);
}

.photo-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Question Section */
#question-section {
    background: radial-gradient(circle at center, #1a0a0f, #121212);
}

.question-container {
    text-align: center;
    max-width: 600px;
}

.question {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff8a00, #e52e71, #ff8a00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hearts-decoration {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.hearts-decoration .heart {
    display: inline-block;
    margin: 0 0.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.hearts-decoration .heart:nth-child(2) {
    animation-delay: 0.3s;
}

.hearts-decoration .heart:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.choice-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-family: "JetBrainsMono", monospace;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.yes-btn {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(229, 46, 113, 0.6);
}

.no-btn {
    background: #333;
    color: #999;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.no-btn:hover {
    background: #444;
}

.no-btn.disappear {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

/* Voice Section */
#voice-section {
    background: radial-gradient(circle at center, #0f0a1a, #121212);
}

.voice-container {
    text-align: center;
    max-width: 600px;
}

.instruction {
    font-size: 1.5rem;
    color: #e52e71;
    margin-bottom: 2rem;
}

.mic-status {
    margin: 2rem 0;
}

.mic-icon {
    font-size: 5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.enable-mic-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "JetBrainsMono", monospace;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(229, 46, 113, 0.4);
}

.enable-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(229, 46, 113, 0.6);
}

.listening-text {
    font-size: 1.3rem;
    color: #ff8a00;
    margin-top: 1rem;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.recognition-result {
    font-size: 1.5rem;
    margin-top: 1rem;
    min-height: 2rem;
}

/* Hidden Gallery */
#hidden-gallery {
    background: radial-gradient(circle at center, #1a0a0f, #121212);
}

.final-message {
    text-align: center;
    margin-top: 4rem;
}

.final-message h1 {
    font-size: 4rem;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.final-message p {
    font-size: 1.5rem;
    color: #e52e71;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .question {
        font-size: 2.5rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photo-card img {
        height: 300px;
    }

    .button-container {
        flex-direction: column;
        gap: 1rem;
    }

    .choice-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .final-message h1 {
        font-size: 2.5rem;
    }
}

/* Mobile Landscape Optimizations */
@media (max-width: 1024px) and (orientation: landscape) {

    /* Reduce section padding for better fit */
    .section {
        padding: 1rem;
        min-height: 100vh;
    }

    /* Permission Section */
    .permission-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .permission-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .mic-icon-large {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .grant-permission-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        margin: 1rem 0;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Photo Grid */
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }

    .photo-card img {
        height: 250px;
    }

    /* Question Section */
    .question {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hearts-decoration {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .button-container {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
    }

    .choice-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Voice Section */
    .instruction {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

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

    .enable-mic-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .listening-text {
        font-size: 1rem;
    }

    .recognition-result {
        font-size: 1.2rem;
    }

    /* Final Message */
    .final-message {
        margin-top: 2rem;
    }

    .final-message h1 {
        font-size: 2rem;
    }

    .final-message p {
        font-size: 1.2rem;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 1rem;
        font-size: 1rem;
    }
}

/* Extra small mobile devices in landscape */
@media (max-height: 450px) and (orientation: landscape) {
    .section {
        padding: 0.5rem;
    }

    .permission-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .permission-text {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .mic-icon-large {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .grant-permission-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .question {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hearts-decoration {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .photo-card img {
        height: 180px;
    }

    .choice-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .final-message h1 {
        font-size: 1.5rem;
    }

    .final-message p {
        font-size: 1rem;
    }

    .instruction {
        font-size: 1rem;
    }

    .mic-icon {
        font-size: 2.5rem;
    }
}