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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0c0c2e 0%, #2d1b3d 50%, #1a0d2e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.title {
    max-width: 900px;
    margin: 0 auto 10px auto;
    text-align: center;
    animation: fadeInDown 2s ease-out;
}

/* Animated starfield background */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.title {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 30px;
    animation: fadeInDown 2s ease-out;
}

.title h1 {
    color: #ff6b9d;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    color: #e8d4f1;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 2s ease-out 0.5s both;
}

.form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: glowPulse 4s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 rgba(255, 107, 157, 0.5); }
    50% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 157, 0.3); }
}

.input-group {
    margin-bottom: 20px;
}

.person-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.person-title {
    color: #ff6b9d;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

label {
    display: block;
    color: #e8d4f1;
    margin-bottom: 5px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
}

.zodiac-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 10px;
    min-height: 50px;
}

.zodiac-sign {
    color: #ff6b9d;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
}

.results-section {
    display: none;
    animation: fadeInUp 1s ease-out;
}

/* Overall Score Card */
.overall-score-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    text-align: center;
}

.score-meter {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    position: relative;
    background: conic-gradient(#ff6b9d 0deg, #c44569 180deg, #2d1b3d 360deg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-inner {
    width: 160px;
    height: 160px;
    background: #0c0c2e;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 3rem;
    color: #ff6b9d;
    font-weight: bold;
    animation: countUp 2s ease-out;
}



.compatibility-tier {
    color: #ff6b9d;
    font-size: 1.8rem;
    margin: 20px 0;
    font-weight: bold;
}

.final-interpretation {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 69, 105, 0.1));
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #e8d4f1;
    line-height: 1.6;
    border-left: 4px solid #ff6b9d;
}

/* Compatibility Cards Grid */
.compatibility-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.compatibility-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.compatibility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.card-title {
    color: #ff6b9d;
    font-size: 1.2rem;
    font-weight: bold;
    flex-grow: 1;
}

.card-score {
    color: #ff6b9d;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.card-content {
    color: #e8d4f1;
}

.card-elements {
    background: rgba(255, 107, 157, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-description {
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Specific card colors */
.numerology-card { border-left: 4px solid #9b59b6; }
.astrology-card { border-left: 4px solid #3498db; }
.bloodtype-card { border-left: 4px solid #e74c3c; }
.zodiac-card { border-left: 4px solid #f39c12; }
.vedic-card { border-left: 4px solid #27ae60; }
.spiritual-card { border-left: 4px solid #e67e22; }

.love-guidance-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.compatibility-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.compatibility-title {
    color: #ff6b9d;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.compatibility-text {
    color: #e8d4f1;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 20px;
    border: 2px solid #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.action-btn:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
}

.hearts-animation {
    position: absolute;
    pointer-events: none;
}

.heart {
    position: absolute;
    color: #ff6b9d;
    font-size: 1.5rem;
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(-100px) rotate(360deg); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner Styles */
.hidden {
    display: none !important;
}

#spinner-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(12, 12, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: grid;
    place-items: center;
}

.spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.spinner {
    position: relative;
    width: 100px;
    height: 100px;
}

.spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 90deg at 50% 50%, #e0aaff, #c77dff, #9d4edd, #5a189a, #e0aaff);
    animation: spin 1.5s linear infinite;
}

.spinner::after {
    content: "";
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: #0c0c2e;
}

.spinner-content p {
    color: #f0e6ff;
    font-size: 1.3em;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    text-shadow: 0 0 8px rgba(224, 170, 255, 0.7);
    animation: pulsate 2.5s infinite ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulsate {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 768px) {
    .container { padding: 15px; }
    .title h1 { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    .form-card, .overall-score-card { padding: 20px; }
    .compatibility-cards-grid { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .action-buttons { flex-direction: column; }
    .action-btn { text-align: center; }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .card-score {
        align-self: flex-end;
    }
}



    /* Info Cards Section */
    .info-cards-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        padding: 80px 0;
        position: relative;
        overflow: hidden;
    }
    
    .info-cards-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="star" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,107,157,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,107,157,0);stop-opacity:0" /></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23star)"/><circle cx="80" cy="40" r="1" fill="url(%23star)"/><circle cx="40" cy="80" r="1.5" fill="url(%23star)"/></svg>') repeat;
        animation: twinkle 20s linear infinite;
    }
    
    @keyframes twinkle {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.8; }
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 60px;
        position: relative;
        z-index: 2;
    }
    
    .cosmic-title {
        font-size: 3em;
        background: linear-gradient(45deg, #ff6b9d, #c44569, #ff6b9d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
        font-weight: 700;
        text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    }
    
    .cosmic-subtitle {
        color: #e8e8e8;
        font-size: 1.3em;
        opacity: 0.9;
        font-style: italic;
    }
    
    .info-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        position: relative;
        z-index: 2;
    }
    
    .info-card {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 40px 30px;
        text-align: center;
        border: 1px solid rgba(255, 107, 157, 0.2);
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }
    
    .info-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.6s ease;
        opacity: 0;
    }
    
    .info-card:hover::before {
        opacity: 1;
        transform: rotate(45deg) translate(50%, 50%);
    }
    
    .info-card:hover {
        transform: translateY(-10px);
        border-color: rgba(255, 107, 157, 0.5);
        box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
    }
    
    .info-card .card-icon {
        font-size: 3em;
        margin-bottom: 20px;
        display: block;
        position: relative;
        z-index: 2;
    }
    
    .info-card h3 {
        color: #ff6b9d;
        font-size: 1.5em;
        margin-bottom: 15px;
        font-weight: 600;
        position: relative;
        z-index: 2;
    }
    
    .info-card p {
        color: #e8e8e8;
        line-height: 1.6;
        font-size: 1.05em;
        position: relative;
        z-index: 2;
    }
    
    /* FAQ Section */
    .faq-cosmic-section {
        background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
        padding: 80px 0;
        position: relative;
    }
    
    .faq-header {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .faq-title {
        font-size: 2.8em;
        background: linear-gradient(45deg, #ff6b9d, #c44569, #ff6b9d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    .faq-subtitle {
        color: #e8e8e8;
        font-size: 1.2em;
        opacity: 0.9;
    }
    
    .faq-container {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .faq-item-toggle {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        margin-bottom: 20px;
        border: 1px solid rgba(255, 107, 157, 0.2);
        overflow: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .faq-item-toggle:hover {
        border-color: rgba(255, 107, 157, 0.4);
        background: rgba(255, 255, 255, 0.08);
    }
    
    .faq-question {
        display: flex;
        align-items: center;
        padding: 25px 30px;
        position: relative;
    }
    
    .faq-icon {
        font-size: 1.5em;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .faq-question h3 {
        color: #ff6b9d;
        font-size: 1.2em;
        margin: 0;
        flex-grow: 1;
        font-weight: 600;
    }
    
    .toggle-icon {
        font-size: 1.5em;
        color: #ff6b9d;
        font-weight: bold;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 15px;
    }
    
    .faq-item-toggle.active .toggle-icon {
        transform: rotate(45deg);
    }
    
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        background: rgba(255, 107, 157, 0.05);
    }
    
    .faq-answer.active {
        max-height: 300px;
        padding: 0 30px 25px 30px;
    }
    
    .faq-answer p {
        color: #e8e8e8;
        line-height: 1.7;
        margin: 0;
        padding-top: 15px;
        font-size: 1.05em;
    }
    
    /* Benefits Showcase */
    .benefits-showcase {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        padding: 80px 0;
    }
    
    .benefits-header {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .benefits-title {
        font-size: 2.5em;
        background: linear-gradient(45deg, #ff6b9d, #c44569, #ff6b9d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .benefit-card {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 40px 25px;
        text-align: center;
        border: 1px solid rgba(255, 107, 157, 0.2);
        transition: all 0.3s ease;
    }
    
    .benefit-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 107, 157, 0.4);
        box-shadow: 0 15px 30px rgba(255, 107, 157, 0.15);
    }
    
    .benefit-icon {
        font-size: 2.5em;
        margin-bottom: 20px;
        display: block;
    }
    
    .benefit-card h3 {
        color: #ff6b9d;
        font-size: 1.3em;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .benefit-card p {
        color: #e8e8e8;
        line-height: 1.6;
        font-size: 1em;
    }
    
    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        .cosmic-title {
            font-size: 2.2em;
        }
        
        .faq-title, .benefits-title {
            font-size: 2em;
        }
        
        .info-cards-grid, .benefits-grid {
            grid-template-columns: 1fr;
        }
        
        .faq-question {
            padding: 20px;
        }
        
        .faq-answer.active {
            padding: 0 20px 20px 20px;
        }
        
        .info-card, .benefit-card {
            padding: 30px 20px;
        }
    }

