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

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

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

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

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

.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 0, 150, 0.03) 0%,
        rgba(0, 255, 255, 0.03) 25%,
        rgba(255, 0, 255, 0.03) 50%,
        rgba(0, 150, 255, 0.03) 75%,
        rgba(255, 0, 150, 0.03) 100%);
    background-size: 400% 400%;
    animation: auroraMove 30s ease infinite;
    z-index: -1;
}

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

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo {
    font-size: 3em;
    font-weight: 700;
    color: #ff006e;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
}

.tagline {
    font-size: 1.1em;
    color: #bbb;
    font-weight: 300;
}

/* SEO Content Sections */
.seo-content {
    margin-bottom: 40px;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-card h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #ff006e;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-radius: 2px;
}

.content-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    margin-top: 25px;
}

.content-card p {
    font-size: 0.95em;
    color: #ddd;
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.7;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.step-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.4);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.4);
}

.step-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.5;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.4);
}

.benefit-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.5;
}

/* Result Explanation */
.result-explanation {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
}

.faq-container {
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 0, 110, 0.2);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

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

.faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: #ff006e;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    padding: 20px 25px;
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.main-content.results-active .input-panel {
    display: none;
}

.main-content.results-active {
    justify-content: center;
}

.input-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    max-width: 100%;
    width: 100%;
}

.panel-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #ddd;
    font-size: 0.9em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #ff006e;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: #888;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.advanced-options {
    margin-top: 20px;
}

.toggle-advanced {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    display: block;
    margin: 0 auto;
}

.toggle-advanced:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff006e;
}

.advanced-fields {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.advanced-fields.active {
    display: block;
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.3);
}

.results-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    display: none;
    max-width: 100%;
    width: 100%;
}

.results-panel.active {
    display: block;
}

.compatibility-score {
    text-align: center;
    margin-bottom: 32px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    position: relative;
    background: conic-gradient(from 0deg, #ff006e 0deg, #8338ec 180deg, #ff006e 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.score-number {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
}

.score-label {
    font-size: 0.8em;
    color: #bbb;
    margin-top: 4px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
    transition: border-color 0.3s ease;
}

.analysis-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card-title {
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.card-content {
    color: #bbb;
    font-size: 0.85em;
    line-height: 1.5;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.prediction-text {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.6;
    color: #ccc;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff006e;
}

.action-btn.primary {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-color: transparent;
}

.action-btn.primary:hover {
    transform: translateY(-1px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ff006e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    font-size: 1em;
    margin-bottom: 8px;
}

.loading-details {
    font-size: 0.85em;
    color: #bbb;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.share-modal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-modal h3 {
    margin-bottom: 20px;
    color: #fff;
}

.share-url {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    color: #fff;
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.share-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff006e;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1002;
    font-size: 0.9em;
}

.notification.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 16px;
    }
    
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        font-size: 2em;
    }
    
    .input-panel, .results-panel {
        padding: 24px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h2 {
        font-size: 1.6em;
    }
    
    .steps-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 0.9em;
    }
    
    .faq-answer p {
        padding: 16px 20px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .logo {
        font-size: 1.8em;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h2 {
        font-size: 1.4em;
    }
    
    .step-card, .benefit-card {
        padding: 20px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.1em;
    }
    
    .benefit-icon {
        font-size: 2.2em;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-inner {
        width: 88px;
        height: 88px;
    }
    
    .score-number {
        font-size: 1.8em;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(255, 0, 110, 0.2);
    color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 110, 0.6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 110, 0.8);
}