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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0e1a3d 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b9d, #ffd93d, #6bcf7f, #4ecdc4, #ff6b9d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 4s ease-in-out infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 50px rgba(255, 107, 157, 0.5);
    letter-spacing: 1px;
}

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

.subtitle {
    font-size: clamp(1rem, 4vw, 1.6rem);
    color: #c9a96e;
    font-style: italic;
    margin: 0 auto 1rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.cosmic-quote {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #8a7ca8;
    font-style: italic;
    opacity: 0.8;
    margin-top: 0.5rem;
    padding: 0 1rem;
}

.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.form-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: #ffd93d;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.partner-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.partner-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.partner-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: #4ecdc4;
    text-align: center;
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c9a96e;
    font-weight: 600;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    transform: translateY(-1px);
}

.zodiac-preview {
    text-align: center;
    margin-top: 1rem;
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #ffd93d;
    font-weight: 600;
    min-height: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
}

.additional-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.calculate-btn {
    width: 100%;
    padding: 1.5rem;
    font-size: clamp(1rem, 4vw, 1.5rem);
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4, #6bcf7f, #ffd93d);
    background-size: 300% 300%;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: buttonGradient 3s ease-in-out infinite;
}

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

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.4);
}

.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    margin: 1.5rem auto;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-container {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.result-container.show {
    opacity: 1;
    transform: translateY(0);
}

.score-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.score-display {
    text-align: center;
}

.score-meter {
    width: min(200px, 80vw);
    height: min(200px, 80vw);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    background: conic-gradient(from 0deg, #6bcf7f 0%, #4ecdc4 20%, #ffd93d 40%, #ff9a56 60%, #ff6b9d 80%, #e74c3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: meterGlow 2s ease-in-out infinite;
}

@keyframes meterGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.3); }
    50% { box-shadow: 0 0 40px rgba(78, 205, 196, 0.6); }
}

.score-inner {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.score-percentage {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px currentColor;
}

.score-label {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #c9a96e;
    margin-top: 0.5rem;
}

.risk-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid;
}

.risk-tier {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    font-weight: bold;
}

.risk-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #c9a96e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.compatibility-meters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.meter-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.meter-card:hover {
    transform: translateY(-2px);
}

.meter-title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #4ecdc4;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.meter-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 2s ease;
    background: linear-gradient(90deg, #6bcf7f, #ffd93d, #ff6b9d);
}

.meter-value {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: bold;
    color: #fff;
}

.detailed-analysis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #6bcf7f, #ffd93d);
}

.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    color: #c9a96e;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

.cosmic-interpretation {
    background: linear-gradient(135deg, rgba(255, 215, 61, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    border: 1px solid rgba(255, 215, 61, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: clamp(1rem, 3vw, 1.3rem);
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}

.cosmic-interpretation::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.planetary-positions {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.planetary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.planet-item {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.planet-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.planet-name {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #4ecdc4;
    font-weight: bold;
}

.planet-influence {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    color: #c9a96e;
    margin-top: 0.2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-btn {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.timeline {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #ffd93d;
    margin-bottom: 1rem;
    text-align: center;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid;
}

.timeline-date {
    font-weight: bold;
    color: #4ecdc4;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.timeline-event {
    color: #c9a96e;
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.scroll-to-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Tablet styles */
@media (min-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .additional-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .detailed-analysis {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
    }
    
    .timeline-date {
        min-width: 120px;
    }
    
    .form-container, .result-container {
        padding: 2rem;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }
    
    .header {
        margin-bottom: 3rem;
    }
    
    .form-container, .result-container {
        padding: 3rem;
        margin-bottom: 3rem;
    }
    
    .score-section {
        grid-template-columns: 1fr 2fr;
        text-align: left;
    }
    
    .planetary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .scroll-to-top {
        bottom: 2rem;
        right: 2rem;
        width: 60px;
        height: 60px;
    }
}


/* SEO Content Styling */
.seo-content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.seo-content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.seo-content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b9d, #ffd93d, #6bcf7f);
    border-radius: 15px 15px 0 0;
}

.seo-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #ffd93d;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
    font-weight: bold;
}

.seo-paragraph {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: #c9a96e;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.seo-paragraph strong {
    color: #4ecdc4;
}

.seo-content-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.seo-content-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    color: #c9a96e;
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    line-height: 1.6;
}

.seo-content-section ul li::before {
    content: '•';
    color: #ff6b9d;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: 0;
}

/* FAQ Styling */
.faqs-section {
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.faq-toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #6bcf7f;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-answer p {
    color: #c9a96e;
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    line-height: 1.6;
    padding-bottom: 1.2rem;
}

/* Responsive adjustments for SEO content */
@media (max-width: 768px) {
    .seo-content-section {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }

    .seo-title {
        font-size: 2rem;
    }

    .seo-paragraph {
        font-size: 1rem;
    }

    .faqs-section {
        margin: 2rem 1rem;
        max-width: calc(100% - 2rem);
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .seo-content-section {
        padding: 2.5rem;
        margin: 2.5rem auto;
    }

    .seo-title {
        font-size: 2.5rem;
    }

    .seo-paragraph {
        font-size: 1.1rem;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .faq-answer p {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .seo-content-section {
        padding: 3rem;
        margin: 3rem auto;
        max-width: 1200px;
    }

    .seo-title {
        font-size: 3rem;
    }

    .seo-paragraph {
        font-size: 1.15rem;
    }

    .faqs-section {
        max-width: 1200px;
    }

    .faq-question {
        font-size: 1.2rem;
        padding: 1.8rem;
    }

    .faq-answer p {
        font-size: 1.05rem;
        padding: 1.5rem 1.8rem;
    }
}


