/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Patrick+Hand&display=swap'); */

:root {
    --pink: #FF9BB3;
    --purple: #C77DFF;
    --coral: #FF6B6B;
    --dark: #3A0CA3;
    --bg: #FFF5F5;
    --white: #FFFFFF;
    --text: #3A0CA3;
    --card-bg: #FFFFFF;
    --input-bg: rgba(255, 255, 255, 0.8);
    --chip-bg: rgba(255, 155, 179, 0.1);
    --chip-border: rgba(255, 155, 179, 0.3);
    --shadow-color: rgba(58, 12, 163, 0.15);
    --divider-opacity: 1;

    --nav-background: rgba(255, 255, 255, 0.1);
    --dark-nav-background: rgba(0, 0, 0, 0.3);
    --dark-text: #E0E0E0;

    --dark-input-border: rgb(127 127 127 / 24%)

    --text-article: #171717;
    --text-article-title: #3A0CA3;
    --text-footer: #171717;


    /* Dark mode variables (initially empty) */
    --dark-mode-bg: ;
    --dark-mode-card: ;
    --dark-mode-text: ;
    --dark-mode-shadow: ;
    --dark-mode-input: ;
    --dark-mode-chip-bg: ;
    --dark-mode-chip-border: ;
}


.body.dark-mode {
    --bg: #121212 !important;
    --card-bg: #1E1E1E !important;
    --text: #E0E0E0 !important;
    --input-bg: rgba(30, 30, 30, 0.8) !important;
    --chip-bg: rgba(255, 155, 179, 0.15) !important;
    --chip-border: rgba(255, 155, 179, 0.4) !important;
    --shadow-color: rgba(0, 0, 0, 0.3) !important;
    --divider-opacity: 0.8 !important;
}

.article-container.dark-mode {
    --bg: #121212 !important;
    --card-bg: #1E1E1E !important;
    --text: #E0E0E0 !important;
    --text-article: #E0E0E0 !important;
    --text-article-title: #C77DFF !important;
    --input-bg: rgba(30, 30, 30, 0.8) !important;
    --chip-bg: rgba(255, 155, 179, 0.15) !important;
    --chip-border: rgba(255, 155, 179, 0.4) !important;
    --shadow-color: rgba(0, 0, 0, 0.3) !important;
    --divider-opacity: 0.8 !important;
}

.footer-container.dark-mode {
    --bg: #121212 !important;
    --text-footer: #E0E0E0 !important;
}

.about-container.dark-mode {
    --bg: #121212 !important;
    --card-bg: #1E1E1E !important;
    --text: #E0E0E0 !important;
    --text-article: #E0E0E0 !important;
    --text-article-title: #C77DFF !important;
    --input-bg: rgba(30, 30, 30, 0.8) !important;
    --chip-bg: rgba(255, 155, 179, 0.15) !important;
    --chip-border: rgba(255, 155, 179, 0.4) !important;
    --shadow-color: rgba(0, 0, 0, 0.3) !important;
    --divider-opacity: 0.8 !important;
}

.whychoose-container.dark-mode {
    --bg: #121212 !important;
    --card-bg: #1E1E1E !important;
    --text: #E0E0E0 !important;
    --text-article: #E0E0E0 !important;
    --text-article-title: #C77DFF !important;
    --input-bg: rgba(30, 30, 30, 0.8) !important;
    --chip-bg: rgba(255, 155, 179, 0.15) !important;
    --chip-border: rgba(255, 155, 179, 0.4) !important;
    --shadow-color: rgba(0, 0, 0, 0.3) !important;
    --divider-opacity: 0.8 !important;
}

.faq-container.dark-mode {
    --bg: #121212 !important;
    --card-bg: #1E1E1E !important;
    --text: #E0E0E0 !important;
    --text-article: #E0E0E0 !important;
    --text-article-title: #C77DFF !important;
    --input-bg: rgba(30, 30, 30, 0.8) !important;
    --chip-bg: rgba(255, 155, 179, 0.15) !important;
    --chip-border: rgba(255, 155, 179, 0.4) !important;
    --shadow-color: rgba(0, 0, 0, 0.3) !important;
    --divider-opacity: 0.8 !important;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 155, 179, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(199, 125, 255, 0.1) 0%, transparent 20%);
}





.body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 155, 179, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(199, 125, 255, 0.1) 0%, transparent 20%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    opacity: 0.6;
    animation: float 15s linear infinite;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.subtitle {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.8;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
    position: relative;
}

.heart-divider {
    font-size: 2rem;
    color: var(--coral);
    margin: 0 1rem;
    animation: pulse 2s infinite;
    opacity: var(--divider-opacity);
}

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

    50% {
        transform: scale(1.2);
    }

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

input {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(58, 12, 163, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text);
}

input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 155, 179, 0.3);
    transform: translateY(-2px);
}

input::placeholder {
    color: rgba(58, 12, 163, 0.3);
}

.body.dark-mode input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.body.dark-mode input {
    border-color: var(--dark-input-border);
}


.calculate-btn {
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
    border: none;
    border-radius: 999px;
    padding: 1.2rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.calculate-btn:active {
    transform: translateY(1px);
}

.calculate-btn .sparkle {
    transition: all 0.3s ease;
}

.calculate-btn:hover .sparkle {
    transform: rotate(45deg) scale(1.2);
}




.result-container {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.percentage-display {
    position: relative;
    width: 100px;
    height: 100px;
    /* margin: 1.5rem 0; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.percentage-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    background: conic-gradient(var(--coral) 0% 0%, rgba(224, 224, 224, 0.1) 0% 100%);
    animation: fillCircle 1.5s ease-out forwards;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
}

@keyframes fillCircle {
    to {
        background: conic-gradient(var(--coral) 0% var(--percent), rgba(224, 224, 224, 0.1) var(--percent) 100%);
    }
}

.percentage-circle::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: var(--card-bg);
}

.percentage-text {
    position: absolute;
    z-index: 1;
}

.compatibility-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--text);
    opacity: 0;
    animation: fadeIn 0.5s ease 1.5s forwards;
}

.compatibility-text-sub {
    opacity: 0;
    animation: fadeIn 0.5s ease 1.5s forwards;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.8s forwards;
}

.detail-chip {
    background-color: var(--chip-bg);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--chip-border);
    color: var(--text);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 2.1s forwards;
}

.share-btn,
.try-again-btn {
    /* padding: 1rem; */
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.share-btn {
    background-color: var(--dark);
    color: white;
}

.try-again-btn {
    background-color: transparent;
    color: var(--text);
    border: 2px solid rgba(58, 12, 163, 0.2);
}

.body.dark-mode .try-again-btn {
    border-color: rgba(224, 224, 224, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 12, 163, 0.2);
}

.try-again-btn:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--coral);
    opacity: 0;
}

.love-message {
    font-family: 'Patrick Hand', cursive;
    /* margin-top: 1rem; */
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0;
    animation: fadeIn 0.5s ease 2.4s forwards;
    max-width: 80%;
    line-height: 1.4;
}

.sound-toggle,
.theme-toggle,
.menu-toggle {
    /* position: absolute;
    top: 1rem; */
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(58, 12, 163, 0.05);
}

.navbar.dark-mode .sound-toggle,
.navbar.dark-mode .theme-toggle,
.navbar.dark-mode .menu-toggle {
    background-color: rgba(224, 224, 224, 0.05);
}

.sound-toggle {
    right: 1rem;
}

.theme-toggle {
    right: 3.5rem;
}

.sound-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(58, 12, 163, 0.1);
}

.navbar.dark-mode .sound-toggle:hover,
.navbar.dark-mode .theme-toggle:hover,
.navbar.dark-mode .menu-toggle:hover {
    background-color: rgba(224, 224, 224, 0.1);
}

.navbar.dark-mode .menu-toggle {
    color: var(--dark-text);
}



/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .heart-divider {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .theme-toggle {
        right: 3rem;
    }
}


/* custommmmmmm */
.ak {
    /* background-color: red !important; */
    width: 20px;
}

.h2,
.h3,
.h4,
.h5 {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}





.navbar {
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    /* Blur effect for glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, position 0.3s ease;
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.dark-mode {
    background: var(--dark-nav-background);
}

a {
    all: unset;
    cursor: pointer;
}

.nav-logo {
    font-size: 1.2rem;
    /* margin-bottom: 0.5rem; */
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: none;
    list-style: none;
    flex-direction: column;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    color: var(--text);
}

.nav-menu.active {
    display: flex;
    transform: translateY(0);
}

.nav-item {
    width: 100%;
    text-align: center;
}

.navbar.dark-mode .nav-menu {
    color: var(--dark-text);
}

.nav-item a:hover,
.nav-item a.active,
.nav-menu .active {
    color: var(--purple);
    font-weight: bold;
}

.result-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.res-name {
    flex: 1;
    text-align: center;
}

.res-emoji-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.res-emoji {
    /* background: white; */
    padding: 0 10px;
}

.res-name1 {
    text-align: right;
    padding-right: 20px;
    /* Space for emoji */
}

.res-name2 {
    text-align: left;
    padding-left: 20px;
    /* Space for emoji */
}





/* Confetti Module */
.mod-confetti-main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.mod-confetti-main-container svg {
    width: 100%;
    height: 100%;
}

/* Confetti Module */

/* Notification Module */
.toast-container {
    position: fixed;
    top: 2rem;
    z-index: 1000;
}

/* Glass effect for the toast */
.glass-toast {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--purple);
    border-radius: 8px;
    min-width: 250px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.glass-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.glass-toast .toast-header {
    background: rgba(255, 255, 255, 0.2);
    /* Slightly more opaque header */
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.glass-toast .btn-close {
    background: none;
    border: none;
    color: var(--coral);
    font-size: 1rem;
    cursor: pointer;
}

.glass-toast .btn-close:hover {
    color: var(--text);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .glass-toast {
        width: calc(100vh - 1rem);
        /* Full width minus padding */
    }
}

.toast-container.dark-mode .toast-header {
    color: var(--dark-text);
    background: rgba(30, 30, 30, 0.3);
}

/* Notification Module */


.scroll-indicator::after {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll-indicator::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='none' stroke='%232d3748' stroke-width='1.5' opacity='0.8'/%3E%3Cpath d='M12 18L20 26L28 18' stroke='%232d3748' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M12 14L20 22L28 14' stroke='%232d3748' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Dark mode styles */
.body.dark-mode .scroll-indicator::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='none' stroke='white' stroke-width='1.5' opacity='0.8'/%3E%3Cpath d='M12 18L20 26L28 18' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M12 14L20 22L28 14' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}



.article-container {
    background: var(--card-bg);
    margin: auto;
}

.article-container-tmp {
    max-width: 600px;
    margin: auto;
}

.article-title {
    font-size: 1.2rem;
    text-align: center;
}

.article-container .article-text-sub {
    text-align: justify;
    font-size: 0.9rem;
    color: var(--text-article);
}

.article-card {
    background: linear-gradient(125deg, #ff9bb352, #c77dff24);
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-article);

}

.article-card .h3 {
    font-size: 1rem;
    color: var(--text-article-title);
}



.footer-container {
    flex-shrink: 0;
    width: 100%;
    background: var(--bg);
    margin: auto;
    text-align: center;
    color: var(--text-footer);
}

.footer-container p {
    font-size: 0.8rem;
}

.footer-container a {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.about-container {
    background: var(--card-bg);
    margin: auto;
}

.about-container-tmp {
    background: linear-gradient(125deg, #ff9bb352, #c77dff24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: auto;
}

.about-title {
    font-size: 1.2rem;
    text-align: center;
}

.about-container .about-text-sub {
    text-align: justify;
    font-size: 0.9rem;
    color: var(--text-article);
}




.whychoose-container {
    background: var(--card-bg);
    margin: auto;
}

.whychoose-container-tmp {
    background: linear-gradient(125deg, #ff9bb352, #c77dff24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: auto;
}

.whychoose-title {
    font-size: 1.2rem;
    text-align: center;
}

.whychoose-container .whychoose-text-sub {
    text-align: justify;
    font-size: 0.9rem;
    color: var(--text-article);
}

.whychoose-container ul {
    list-style: none;
}

.whychoose-container ul li::before {
    content: '❤️';
    margin-right: 10px;
}

.whychoose-container li {
    font-size: 0.8rem;
    color: var(--text-article);
}

.whychoose-container .whychoose-sub-title {
    color: var(--text-article-title);
}



.faq-container {
    background: var(--card-bg);
    margin: auto;
}

.faq-container-tmp {
    max-width: 600px;
    margin: auto;
}

.faq-title {
    font-size: 1.2rem;
    text-align: center;
}

.faq-container .faq-text-sub {
    text-align: justify;
    font-size: 0.9rem;
    color: var(--text-article);
}

.faq-container ul {
    list-style: none;
}

.faq-container ul li::before {
    content: '';
    margin-right: 10px;
}

.faq-container li {
    font-size: 0.8rem;
    color: var(--text-article);
    text-align: justify;
}

.faq-container .faq-sub-title {
    color: var(--text-article-title);
}


@media screen and (min-width: 601px) {

    .whychoose-container-tmp,
    .about-container-tmp {
        border-radius: 24px;
    }
}