


/* Base Styles & Typography */
:root {
    --color-primary: #ff4c9e;
    --color-secondary: #f6c744;
    --color-accent: #ff6b9d;
    --color-dark-bg: #0a0a1a;
    --color-mid-bg: #1a1a2e;
    --color-light-text: #ffffff;
    --color-subtle-text: #b8b8d1;
    --color-card-bg: rgba(255, 255, 255, 0.08);
    --color-card-border: rgba(255, 255, 255, 0.15);
    --font-playfair: 'Playfair Display', serif;
    --font-inter: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-mid-bg) 25%, #16213e 50%, #2d1b69 75%, #1e1b4b 100%);
    background-attachment: fixed;
    color: var(--color-light-text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Particles.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    top: 0;
    left: 0;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.header h1 {
    font-family: var(--font-playfair);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 76, 158, 0.2);
}

.header p {
    font-size: 1rem;
    color: var(--color-subtle-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Section */
.form-section {
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-card-border);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.boyfriend-forms {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.person-form {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 76, 158, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.person-form h3 {
    font-family: var(--font-playfair);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 1px 5px rgba(255, 76, 158, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-light-text);
    font-size: 1rem;
    transition: background 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-primary);
}

.form-group input::placeholder {
    color: var(--color-subtle-text);
}

.form-group input[type="date"] {
    color: var(--color-light-text);
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    border: none;
    border-radius: 30px;
    color: var(--color-light-text);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255, 76, 158, 0.2);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 76, 158, 0.2);
}

.calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results Section */
.results {
    display: none;
}

.results.show {
    display: block;
}

.result-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.compatibility-score {
    position: relative; /* This is the anchor */
    height: 150px;      /* Match the circle's height */
    text-align: center;
    margin-bottom: 10px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff4c9e 0%, #f6c744 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* REMOVED the bottom margin */
    position: relative;
    z-index: 1;
    transform: translateZ(0);
}

/* Default spacing for mobile */
#scoreText {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #f6c744;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 0px; 
}

/* Boyfriend Info */
.boyfriend-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;  /* This line vertically centers the heart and boxes */
    margin-bottom: 40px;
}

.person-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.person-info h3 {
    font-family: var(--font-playfair);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.zodiac-moon {
    font-size: 1.8rem;
    margin: 8px 0;
}

.heart-connector {
    font-size: 1.8rem;
    color: var(--color-primary);
}

/* Compatibility Title */
.compatibility-title {
    text-align: center;
    font-family: var(--font-playfair);
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(246, 199, 68, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(246, 199, 68, 0.2);
}

/* Professional Analysis Cards */
.analysis-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 1.5rem 0;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1e1b4b;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    font-family: var(--font-playfair);
    font-size: 1.1rem;
    color: #1e1b4b;
    margin: 0;
}

.percentage {
    font-size: 1.3rem;
    font-weight: bold;
    color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content p {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.compatibility-factors {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.factor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 5px;
}

.factor-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.85rem;
}

.factor-value {
    font-weight: bold;
    color: #7c3aed;
    font-size: 0.85rem;
}

/* Report Card */
.report-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-section {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    border-left: 3px solid #7c3aed;
}

.report-section h3 {
    font-family: var(--font-playfair);
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.report-section ul {
    list-style: none;
    padding: 0;
}

.report-section li {
    color: var(--color-light-text);
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
    font-size: 0.9rem;
}

.report-section li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Specific icons for report sections */
.warnings li::before { content: "⚠️"; color: unset; }
.strengths li::before { content: "💪"; color: unset; }
.activities li::before { content: "🎯"; color: unset; }

/* Quote Section */
.quote-section {
    text-align: center;
    margin-bottom: 30px;
}

.quote-section blockquote {
    font-family: var(--font-playfair);
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-style: italic;
    background: rgba(246, 199, 68, 0.1);
    border-radius: 15px;
    padding: 20px;
    border-left: 3px solid var(--color-secondary);
    margin: 0;
}

/* Shareable Card */
.shareable-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shareable-card h3 {
    font-family: var(--font-playfair);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

#shareScore {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

#shareDescription {
    color: var(--color-light-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

#shareEmoji {
    font-size: 1.8rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light-text);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.reset-btn {
    background: rgba(255, 76, 158, 0.2);
    color: var(--color-primary);
    border: 1px solid rgba(255, 76, 158, 0.3);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 76, 158, 0.2);
}

/* Utility Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
    .header h1 {
        font-size: 3.2rem;
    }

    .header p {
        font-size: 1.2rem;
    }

    .form-section {
        padding: 50px;
    }

    .boyfriend-forms {
        flex-direction: row;
        gap: 40px;
    }

    .person-form {
        flex: 1;
        padding: 35px;
    }

    .person-form h3 {
        font-size: 1.6rem;
    }

    .calculate-btn {
        padding: 20px 50px;
        font-size: 1.2rem;
    }

    .result-card {
        padding: 40px;
    }

    .compatibility-score {
        margin-bottom: 40px;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-circle::before {
        width: 130px;
        height: 130px;
    }

    .score-circle::after {
        font-size: 2rem;
    }

    #scoreText {
        font-size: 1.8rem;
    }

    .boyfriend-info {
        flex-direction: row;
        grid-template-columns: 1fr auto 1fr;
        gap: 30px;
    }

    .person-info {
        padding: 25px;
    }

    .person-info h3 {
        font-size: 1.3rem;
    }

    .zodiac-moon {
        font-size: 2rem;
    }

    .heart-connector {
        font-size: 2rem;
    }

    .compatibility-title {
        font-size: 1.8rem;
        padding: 20px;
    }

    .analysis-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .analysis-card {
        padding: 1.5rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .percentage {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .compatibility-factors {
        gap: 0.5rem;
    }

    .factor {
        padding: 0.5rem;
    }

    .factor-label,
    .factor-value {
        font-size: 0.9rem;
    }

    .report-card {
        flex-direction: row;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        padding: 30px;
    }

    .report-section {
        padding: 1.5rem;
    }

    .report-section h3 {
        font-size: 1.3rem;
    }

    .report-section li {
        font-size: 1rem;
    }

    .quote-section blockquote {
        font-size: 1.2rem;
        padding: 25px;
    }

    .shareable-card {
        padding: 30px;
    }

    .shareable-card h3 {
        font-size: 1.5rem;
    }

    #shareScore {
        font-size: 2rem;
    }

    #shareDescription {
        font-size: 1rem;
    }

    #shareEmoji {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: row;
        gap: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: auto;
        max-width: none;
    }
}

/* Performance optimizations for scrolling */
.form-section,
.result-card,
.analysis-card,
.person-form {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    will-change: scroll-position;
}

.form-section,
.result-card,
.analysis-card,
.person-form {
    will-change: transform, opacity;
}



/* SEO Content Sections */

/* What is Moon Phase Compatibility - Card Layout */
.compatibility-info-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
}

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

.info-card {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border: 1px solid #404040;
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2);
}

.info-card h3 {
    color: #64B5F6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.benefits-card {
    grid-column: 1 / -1;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.benefits-list li {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    border-left: 4px solid #64B5F6;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* How the Calculator Works Section */
.how-it-works-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #16213E 0%, #0B0C1A 100%);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border: 1px solid #404040;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.step-card:hover::before {
    left: 100%;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    color: #1A1A1A;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 40px;
    margin-bottom: 1rem;
}

.step-card h4 {
    color: #64B5F6;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

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

/* Moon Phase Personality Traits Section */
.moon-phases-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
}

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

.moon-phase-card {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.moon-phase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.moon-phase-card .phase-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.moon-phase-card .phase-name {
    color: #64B5F6;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.moon-phase-card .phase-traits {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* FAQ Section */
.faq-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #16213E 0%, #0B0C1A 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border: 1px solid #404040;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
    color: #64B5F6;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #64B5F6;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1rem;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Body and HTML background */
html, body {
    background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
    background-attachment: fixed;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Container adjustments */
.container, .content, main, section {
    background: transparent !important;
}

/* Override any white backgrounds */
* {
    background-color: transparent;
}

.page, .wrapper, .main-content {
    background: transparent !important;
}

[style*="background: white"], [style*="background-color: white"], [style*="background:#fff"], [style*="background: #fff"] {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%) !important;
    border: 1px solid #404040 !important;
    color: white !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #64B5F6;
}

p, span, div {
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3.5rem 0 1rem;
        min-height: 25vh;
    }
    
    .main-tool-container {
        margin: -0.5rem 0.5rem 1rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    .mode-selector {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .mode-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .input-form {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-field {
        padding: 10px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .profiles-container {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .profile-card {
        padding: 12px;
    }
    
    .profile-name {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .moon-image {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-label {
        font-size: 0.65rem;
    }
    
    .compatibility-score {
        margin-bottom: 20px;
    }
    
    .detailed-analysis {
        padding: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .action-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .info-cards-grid, .how-it-works-grid, .moon-phases-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card, .step-card, .moon-phase-card {
        padding: 1rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .benefits-list div {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .compatibility-info-section, .how-it-works-section, .moon-phases-section, .faq-section {
        padding: 1.2rem 0;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        line-height: 35px;
        margin-bottom: 0.8rem;
    }
    
    .step-card h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .step-card p {
        font-size: 0.85rem;
    }
    
    .moon-phase-card .phase-emoji {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .moon-phase-card .phase-name {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .moon-phase-card .phase-traits {
        font-size: 0.8rem;
    }
    
    .faq-question {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .navbar .container {
        padding: 0.8rem 15px;
    }
    
    .brand-logo {
        height: 45px;
    }
    
    .footer .container {
        padding: 20px 15px 10px;
    }
    
    .footer-links-simple nav ul {
        gap: 8px;
        max-width: 320px;
    }
    
    .footer-links-simple nav ul li a {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .footer p {
        font-size: 11px;
        margin: 8px 0;
    }
    
    .footer .tagline {
        font-size: 9px;
        margin: 12px auto 0;
        padding: 0 5px;
    }
    
    .footer .copyright {
        margin: 12px 0 8px 0;
        padding-top: 12px;
        font-size: 11px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .main-tool-container {
        margin: -0.5rem 0.25rem 0.8rem;
        padding: 0.8rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .mode-btn {
        min-width: 90px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .input-form {
        padding: 12px;
    }
    
    .input-field {
        padding: 8px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .moon-image {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .info-card, .step-card, .moon-phase-card {
        padding: 0.8rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        line-height: 30px;
    }
    
    .moon-phase-card .phase-emoji {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .faq-answer p {
        padding: 0 0.8rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .brand-logo {
        height: 40px;
    }
    
    .footer-links-simple nav ul {
        max-width: 280px;
    }
}

/* ==============================================
   NAVIGATION STYLES
   ============================================== */

/* Navbar Container */
.navbar {
    background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #3D3D3D;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navbar Scrolled State (Desktop) */
@media (min-width: 992px) {
    .navbar.scrolled {
        padding: 0;
        background: rgba(26, 26, 26, 0.98);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar.scrolled .container {
        padding: 0.5rem 20px;
    }
    
    .navbar.scrolled .brand-logo {
        height: 35px;
    }
}

/* Navbar Hidden State */
.navbar.hidden {
    transform: translateY(-100%);
}

/* Navbar Container Inner (Brand, Toggler, Collapse) */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.brand-logo {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Mobile Toggle Button */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.navbar-toggler-icon {
    display: block;
    position: relative;
    background: #42A5F5;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #42A5F5;
    transition: .25s ease-in-out;
}

.navbar-toggler-icon:before {
    top: -10px;
}

.navbar-toggler-icon:after {
    top: 10px;
}

/* Hide the checkbox (controlled by JS) */
.navbar-toggle-checkbox {
    display: none;
}

/* Navigation Links Container */
.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

/* Navigation Links */
.nav-link {
    color: #E8E8E8;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 25px;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #64B5F6;
    background: rgba(255, 111, 0, 0.1);
    transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    color: #1A1A1A;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 111, 0, 0.3);
}

/* ==============================================
   MOBILE NAVIGATION
   ============================================== */

@media (max-width: 991px) {
    /* Navbar fixed position and background for mobile */
    .navbar {
        background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
        backdrop-filter: blur(20px);
    }
    .navbar.scrolled {
        background: rgba(26, 26, 26, 0.98);
    }

    /* Show hamburger toggle on mobile */
    .navbar-toggler {
        display: flex;
    }
    
    .navbar .container {
        position: relative;
    }
    
    /* Mobile Menu Container */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        overflow-y: auto;
    }
    
    /* When checkbox is checked, slide menu in */
    .navbar-toggle-checkbox:checked ~ .navbar-collapse {
        transform: translateX(0);
    }

    /* Ensure navbar is visible when mobile menu is open */
    .navbar-toggle-checkbox:checked ~ .navbar {
        transform: translateY(0) !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 20px;
    }
    
    .nav-item {
        margin: 8px 0;
        width: 100%;
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 16px 24px;
        width: 100%;
        justify-content: center;
        border-radius: 15px;
        background: rgba(45, 45, 45, 0.5);
        margin-bottom: 5px;
    }
    
    .nav-link:hover {
        background: rgba(255, 111, 0, 0.2);
        transform: scale(1.02);
    }

    /* Animated hamburger when opened */
    .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon {
        background: transparent;
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon:before {
        top: 0px;
        transform: rotate(135deg);
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon:after {
        top: 0px;
        transform: rotate(-135deg);
    }
    
    /* Animation for mobile menu items */
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(1) { 
        transition-delay: 0.1s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(2) { 
        transition-delay: 0.2s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(3) { 
        transition-delay: 0.3s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(4) { 
        transition-delay: 0.4s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(5) { 
        transition-delay: 0.5s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(6) { 
        transition-delay: 0.6s; 
    }
}

/* Prevent body scroll when mobile menu is open */
body:has(.navbar-toggle-checkbox:checked) {
    overflow: hidden;
}

/* ==============================================
   FOOTER STYLES
   ============================================== */

.footer {
    background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 100%);
    border-top: 2px solid #3D3D3D;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #42A5F5, transparent);
}

.footer .container {
    padding: 30px 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Links */
.footer-links-simple nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links-simple nav ul li {
    margin: 3px;
}

.footer-links-simple nav ul li a {
    color: #B0B0B0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-links-simple nav ul li a:hover {
    color: #64B5F6;
    background: rgba(255, 111, 0, 0.1);
    border-color: rgba(255, 111, 0, 0.3);
    transform: translateY(-2px);
}

/* Footer Text */
.footer p {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
}

.footer .copyright {
    font-size: 12px;
    color: #666;
    margin: 15px 0 8px 0;
    border-top: 1px solid #3D3D3D;
    padding-top: 15px;
}

.footer .copyright a {
    color: #42A5F5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer .copyright a:hover {
    color: #64B5F6;
}

.footer .site-name {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer .tagline {
    font-size: 11px;
    color: #777;
    font-style: italic;
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.4;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-links-simple nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-links-simple nav ul li {
        margin: 0;
        display: flex;
        justify-content: center;
    }
    
    .footer-links-simple nav ul li a {
        padding: 8px 12px;
        width: 100%;
        text-align: center;
        font-size: 12px;
        border-radius: 12px;
        background: rgba(45, 45, 45, 0.6);
        border: 1px solid rgba(255, 111, 0, 0.2);
    }
    
    .footer-links-simple nav ul li a:hover {
        background: rgba(255, 111, 0, 0.15);
        border-color: rgba(255, 111, 0, 0.4);
        transform: translateY(-1px);
    }
    
    .footer .container {
        padding: 25px 15px 12px;
    }
    
    .footer p {
        font-size: 12px;
        margin: 10px 0;
    }
    
    .footer .tagline {
        font-size: 10px;
        margin: 15px auto 0;
        padding: 0 8px;
    }
    
    .footer .copyright {
        margin: 18px 0 10px 0;
        padding-top: 18px;
    }
}

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

/* Add scroll padding to account for fixed navbar */
:target {
    scroll-padding-top: 80px;
}

/* Focus states for accessibility */
.nav-link:focus,
.navbar-toggler:focus {
    outline: 2px solid #42A5F5;
    outline-offset: 2px;
}

/* Add body padding for fixed navbar */
body {
    padding-top: 80px;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}









/* Beautiful mm Buttons with Smooth Hover Effects */
        .mm-buttons-section {
            background: linear-gradient(135deg, #16213E 0%, #0B0C1A 100%);
            padding: 3rem 0;
            margin: 2rem 0;
        }
        
        .mm-buttons-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }
        
        .mm-buttons-title {
            text-align: center;
            color: #FFD700;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }
        
        .mm-buttons-subtitle {
            text-align: center;
            color: #FFFFFF;
            font-size: 1.2rem;
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .mm-buttons-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px 30px;
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .mm-button {
            background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
            color: #333;
            padding: 18px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
            font-family: Arial, sans-serif;
            box-sizing: border-box;
        }
        
        .mm-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
            transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 0;
            border-radius: 50px;
        }
        
        .mm-button:hover::before {
            left: 0;
        }
        
        .mm-button:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
        }
        
       .mm-button span {
    color: #000000; /* Black text by default */
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.mm-button:hover span {
    color: #FFFFFF; /* White text on hover */
}

        
        .mm-button .arrow {
            margin-left: 15px;
            font-size: 18px;
            line-height: 1;
            transition: transform 0.3s ease;
        }
        
        .mm-button:hover .arrow {
            transform: translateX(5px);
        }
        
        /* Responsive design for mobile devices */
        @media (max-width: 768px) {
            .mm-buttons-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0 10px;
            }
            
            .mm-button {
                padding: 15px 20px;
                font-size: 14px;
            }
            
            .mm-buttons-title {
                font-size: 2rem;
            }
            
            .mm-buttons-subtitle {
                font-size: 1rem;
            }
            
            .mm-buttons-container {
                padding: 0 20px;
            }
        }
        
        @media (max-width: 480px) {
            .mm-button {
                padding: 12px 18px;
                font-size: 13px;
            }
            
            .mm-buttons-container {
                padding: 0 15px;
            }
        }