/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=Marcellus&display=swap');

/* CSS Variables */
:root {
    --color-text: #FFFFFF;
    --primary-font-family: 'Marcellus', serif;
    --secondary-font-family: 'Afacad', sans-serif;
    --font-size: 1.2rem;
    --font-weight: 100;
}

html,
body {
    margin: 0;
    padding-top: 50px;
    width: 100%;
    overflow-x: hidden;
    color: var(--color-text);
    font-family: var(--secondary-font-family);
    font-size: var(--font-size);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--primary-font-family);
}

summary {
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

/* Background & Image Styling */
.main-bg {
    min-height: 100vh;
    /* Background setup */
    background-image: url('../images/bg3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#icon {
    width: 35px;
}

.hidden {
    display: none;
}

/* Cards Styling */
#card-size {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.card-item img {
    width: 12rem;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

.icon-card {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* Glassmorphism Styles */
.glassmorphic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.glassmorphic-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: 5px;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glassmorphic-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.glassmorphic-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 10px;
    height: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white !important;
}

/* Modal */
.modal-content.glassmorphic-card {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.modal-header .modal-footer {
    border-color: rgba(255, 255, 255, 0.2);
}

.card-modal-img {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#modalCardImg img {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Button Styling */
#draw-button {
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Chart Styling */
#aura_element_chart svg g path {
    fill-opacity: 0.6;
    stroke-width: 1px;
    stroke: rgba(255, 255, 255, 0.3);
    transition: fill-opacity 0.3s ease;
}

#aura_element_chart svg g path:hover {
    fill-opacity: 0.9;
}

#aura_element_chart {
    filter: drop-shadow(0 0 15px rgba(224, 192, 104, 0.2));
}

#element-interpretation {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 0 15px;
    max-width: 600px;
    margin: 20px auto;
}

.transition-all {
    transition: flex 0.5s ease-in-out, max-width 0.5s ease-in-out;
}

/* Animation */
.animate-card {
    animation: fadeInCard 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeInText 1s ease-in;
}

details div {
    animation: fadeIn 0.4s ease-out;
}

/* Keyframes */
@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* Media Queries */
@media (min-width: 768px) {

    .cards-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .card-item img {
        width: 16rem;
    }

    #aura_element_chart {
        height: 500px;
    }

    #element-interpretation {
        font-size: 1.5rem;
    }

    #dropdown,
    #about p {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {

    .navbar-nav {
        display: flex;
        width: 100%;
        align-items: center;
    }

    .nav-item {
        flex: 1;
        text-align: center;
    }

    .nav-link {
        font-weight: 500;
        letter-spacing: 2px;
        transition: color 0.3s ease, text-shadow 0.3s ease;
        position: relative;
        padding-bottom: 5px;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 0;
        left: 50%;
        background: #FFFFFF;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 80%;
    }

    .card-item img {
        width: 20rem;
    }

    #dropdown,
    #about p {
        font-size: 1.2rem;
    }
}