/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(246, 199, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 76, 158, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.moon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: moonGlow 3s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 20px rgba(246, 199, 68, 0.6));
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #f6c744 0%, #ffd700 50%, #ff4c9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(246, 199, 68, 0.3);
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #e0e0e0;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.9;
}

/* Calculator Card */
.calculator-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: clamp(30px, 5vw, 50px);
    margin-bottom: 50px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(246, 199, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 199, 68, 0.5), transparent);
}

.soulmates-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    margin-bottom: 40px;
}

.soulmate-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.soulmate-section:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.soulmate-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    background: linear-gradient(135deg, #ff4c9e, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.heart-divider {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ff4c9e;
    animation: heartBeat 2s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255, 76, 158, 0.6));
    text-align: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 0.95rem;
    color: #e0e0e0;
    font-weight: 600;
    margin-left: 5px;
}

.input-group input {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #f6c744;
    box-shadow: 
        0 0 0 3px rgba(246, 199, 68, 0.2),
        0 0 20px rgba(246, 199, 68, 0.3);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.calculate-btn {
    background: linear-gradient(135deg, #f6c744 0%, #ffd700 30%, #ff4c9e 100%);
    color: #ffffff;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        0 15px 35px rgba(246, 199, 68, 0.4),
        0 0 30px rgba(255, 76, 158, 0.2);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(246, 199, 68, 0.5),
        0 0 40px rgba(255, 76, 158, 0.3);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

/* Result Card */
.result-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: clamp(30px, 5vw, 50px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(246, 199, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 199, 68, 0.5), transparent);
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, #f6c744 0%, #ffd700 50%, #ff4c9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.soulmates-result-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    margin-bottom: 40px;
}

.person-result {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.person-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    background: linear-gradient(135deg, #ff4c9e, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-weight: 600;
}

.moon-phase-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.moon-image {
    width: clamp(70px, 10vw, 90px);
    height: clamp(70px, 10vw, 90px);
    border-radius: 50%;
    background: linear-gradient(135deg, #f6c744 0%, #ffd700 50%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 
        0 15px 35px rgba(246, 199, 68, 0.4),
        0 0 25px rgba(246, 199, 68, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    animation: moonPulse 4s infinite ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.moon-phase-name {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #f6c744;
    margin-bottom: 8px;
    font-weight: 600;
}

.moon-meaning {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #d0d0d0;
    line-height: 1.5;
    max-width: 200px;
}

.emotional-impact {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #ff4c9e;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 500;
}

.zodiac-sign {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: #a0a0a0;
    font-weight: 400;
}

.compatibility-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: rgba(246, 199, 68, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(246, 199, 68, 0.3);
    backdrop-filter: blur(10px);
}

.compatibility-score {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #f6c744 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(246, 199, 68, 0.3);
    animation: scoreGlow 3s infinite ease-in-out;
}

.compatibility-rating {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #ff4c9e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 76, 158, 0.5);
}

.compatibility-explanation {
    background: linear-gradient(135deg, rgba(255, 76, 158, 0.15), rgba(255, 76, 158, 0.05));
    border: 1px solid rgba(255, 76, 158, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.compatibility-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 76, 158, 0.5), transparent);
}

.compatibility-explanation p {
    line-height: 1.7;
    color: #ffffff;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 400;
}

.cosmic-guidance {
    background: linear-gradient(135deg, rgba(246, 199, 68, 0.15), rgba(246, 199, 68, 0.05));
    border: 1px solid rgba(246, 199, 68, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cosmic-guidance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 199, 68, 0.5), transparent);
}

.cosmic-guidance h3 {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #f6c744, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

.guidance-content {
    line-height: 1.7;
    color: #ffffff;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 400;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.primary {
    background: linear-gradient(135deg, #f6c744 0%, #ffd700 30%, #ff4c9e 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(246, 199, 68, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.action-btn.primary:hover {
    box-shadow: 0 15px 35px rgba(246, 199, 68, 0.5);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moonGlow {
    0% {
        text-shadow: 0 0 20px rgba(246, 199, 68, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 40px rgba(246, 199, 68, 0.8);
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 20px rgba(246, 199, 68, 0.5);
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 76, 158, 0.6));
    }
    50% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 25px rgba(255, 76, 158, 0.8));
    }
}

@keyframes moonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 15px 35px rgba(246, 199, 68, 0.4),
            0 0 25px rgba(246, 199, 68, 0.3),
            inset 0 2px 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 20px 40px rgba(246, 199, 68, 0.5),
            0 0 35px rgba(246, 199, 68, 0.4),
            inset 0 2px 5px rgba(255, 255, 255, 0.4);
    }
}

@keyframes scoreGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(246, 199, 68, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(246, 199, 68, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .soulmates-grid,
    .soulmates-result-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .heart-divider {
        transform: rotate(0deg);
        order: 1;
    }
    
    .soulmate-section:first-child {
        order: 0;
    }
    
    .soulmate-section:last-child {
        order: 2;
    }
    
    .person-result:first-child {
        order: 0;
    }
    
    .compatibility-center {
        order: 2;
    }
    
    .person-result:last-child {
        order: 1;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .calculator-card,
    .result-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .calculator-card,
    .result-card {
        border-radius: 20px;
    }
    
    .soulmate-section {
        padding: 15px;
    }
    
    .person-result {
        padding: 20px 15px;
    }
    
    .compatibility-center {
        padding: 20px 15px;
    }
    
    .compatibility-explanation,
    .cosmic-guidance {
        padding: 20px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .moon-image {
        border-width: 1px;
    }
    
    .calculator-card,
    .result-card {
        border-width: 0.5px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #000000 0%, #0a0a0f 30%, #1a1a2e 60%, #16213e 100%);
    }
    
    .input-group input {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .calculator-card,
    .result-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.input-group input:focus,
.calculate-btn:focus,
.action-btn:focus {
    outline: 2px solid #f6c744;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .title,
    .result-title {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    
    .compatibility-score {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    
    .moon-phase-name {
        color: #ffffff;
    }
    
    .person-name,
    .soulmate-title {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
}






.tools-section {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
    color: #ffffff;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tool-description {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Responsive Design */
@media (min-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .tool-card {
        padding: 2rem;
    }

    .tool-title {
        font-size: 1.75rem;
    }

    .tool-description {
        font-size: 1.1rem;
    }
}





/* 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;
    }
}