/* Enhanced hero section styles */
.hero-section {
    background: linear-gradient(135deg, #0B0C1A 0%, #1A1A2E 50%, #16213E 100%);
    padding: 5rem 0 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 35vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.9), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    opacity: 0.7;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 60px 15px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 120px 45px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 180px 25px, #ffffff, transparent),
        radial-gradient(1px 1px at 220px 65px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: twinkle 3s ease-in-out infinite alternate-reverse;
    opacity: 0.6;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: white;
    background: linear-gradient(45deg, #64B5F6, #42A5F5, #64B5F6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Main tool highlighted and compact */
.main-tool-container {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border: 2px solid #64B5F6;
    border-radius: 20px;
    padding: 1.5rem;
    margin: -1rem auto 2rem;
    max-width: 900px;
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.3);
    position: relative;
}

.main-tool-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #64B5F6, #42A5F5, #64B5F6, #42A5F5);
    border-radius: 20px;
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

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

/* Critical CSS - Above the fold */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Input Mode Selection - Compact */
.mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.mode-btn {
    flex: 1;
    min-width: 110px;
    padding: 10px 16px;
    background: #2D2D2D;
    border: 2px solid #3D3D3D;
    border-radius: 25px;
    color: #E8E8E8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    border-color: #42A5F5;
    color: #1A1A1A;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.mode-btn:hover:not(.active) {
    border-color: #42A5F5;
    background: #3D3D3D;
}

/* Form Styles - Compact */
.input-form {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid #3D3D3D;
    margin-bottom: 20px;
}

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

.input-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #64B5F6;
    font-size: 13px;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 12px;
    background: #1A1A1A;
    border: 2px solid #3D3D3D;
    border-radius: 12px;
    color: #E8E8E8;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #42A5F5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    border: none;
    border-radius: 50px;
    color: #1A1A1A;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

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

.compatibility-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profiles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .profiles-container {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-card {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid #3D3D3D;
    position: relative;
    overflow: hidden;
}

.profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #64B5F6;
    margin-bottom: 12px;
}

.profile-date {
    font-size: 0.95rem;
    color: #B0B0B0;
    margin-bottom: 15px;
    font-weight: 500;
}

.moon-info {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #E8E8E8;
}

.moon-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #2D2D2D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    border: 3px solid #42A5F5;
    box-shadow: 0 0 20px rgba(255, 111, 0, 0.3);
}

.moon-description {
    text-align: left;
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #3D3D3D;
}

.moon-description h4 {
    color: #42A5F5;
    margin-bottom: 8px;
    font-size: 1rem;
}

.moon-description p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Action Buttons - Compact */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    color: #1A1A1A;
}

.action-btn.secondary {
    background: #2D2D2D;
    color: #E8E8E8;
    border: 2px solid #3D3D3D;
}

.action-btn.tertiary {
    background: #3D3D3D;
    color: #64B5F6;
    border: 2px solid #42A5F5;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.action-btn.tertiary:hover {
    background: #42A5F5;
    color: #1A1A1A;
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #3D3D3D;
    border-top: 3px solid #42A5F5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Time Input Group - Compact */
.time-input-group {
    margin-top: 12px;
    text-align: left;
}

.time-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #B0B0B0;
    font-size: 12px;
}

.time-field {
    width: 100%;
    padding: 8px;
    background: #1A1A1A;
    border: 1px solid #3D3D3D;
    border-radius: 8px;
    color: #E8E8E8;
    font-size: 14px;
}

.time-field:focus {
    outline: none;
    border-color: #42A5F5;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
}

.time-note {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    display: block;
}

/* Compatibility Score Circle - Compact */
.compatibility-score {
    text-align: center;
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(45, 45, 45, 0.8);
    border: 4px solid #42A5F5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(255, 111, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #42A5F5, #64B5F6);
    z-index: -1;
    opacity: 0.2;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: #64B5F6;
    text-shadow: 0 0 15px rgba(255, 183, 77, 0.5);
}

.score-label {
    font-size: 0.7rem;
    color: #E8E8E8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Detailed Analysis Section - Compact */
.detailed-analysis {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid #3D3D3D;
    margin-top: 30px;
    margin-bottom: 30px;
}

.detailed-analysis h3 {
    font-size: 1.5rem;
    color: #42A5F5;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 111, 0, 0.2);
}

.analysis-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #3D3D3D;
}

.analysis-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.analysis-section h4 {
    font-size: 1.2rem;
    color: #64B5F6;
    margin-bottom: 12px;
}

.analysis-section p {
    font-size: 1rem;
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 8px;
}

.analysis-section strong {
    color: #E8E8E8;
}

.score-breakdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.score-item {
    background: #2D2D2D;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #3D3D3D;
    text-align: center;
    min-width: 120px;
}

.score-item .score-label {
    font-size: 0.8rem;
    color: #B0B0B0;
    display: block;
    margin-bottom: 4px;
}

.score-item .score-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64B5F6;
}

/* Astrological Details in Profile Card - Compact */
.astrological-details {
    margin-top: 20px;
    text-align: left;
    border-top: 1px dashed #3D3D3D;
    padding-top: 20px;
}

.astrological-details .astro-section {
    margin-bottom: 15px;
}

.astrological-details .astro-section h5 {
    font-size: 1.1rem;
    color: #64B5F6;
    margin-bottom: 8px;
}

.astrological-details .astro-section p {
    font-size: 0.9rem;
    color: #B0B0B0;
    line-height: 1.5;
}

.astrological-details .astro-section strong {
    color: #E8E8E8;
}

/* Celebrity Image in Profile Card */
.profile-name .celebrity-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    vertical-align: middle;
    border: 2px solid #42A5F5;
}

/* Moon Phase Result Card Specific Styles - Compact */
.moon-phase-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

.moon-phase-name {
    color: #64B5F6;
}

.moon-details {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    margin-top: 8px;
    border: 1px solid #3D3D3D;
}

.detail-item {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item::before {
    content: "•";
    color: #42A5F5;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.detail-label {
    font-weight: 600;
    color: #E8E8E8;
    margin-right: 4px;
}

.detail-value {
    color: #B0B0B0;
}

.detail-tooltip {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.3;
}

.moon-phase-emoji {
    font-size: 3.5rem;
    line-height: 1;
}

.moon-phase-energy {
    font-size: 0.8rem;
    color: #64B5F6;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compatibility-meaning {
    background: rgba(255, 111, 0, 0.1);
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 12px;
    border-left: 3px solid #42A5F5;
}

.compatibility-meaning strong {
    color: #64B5F6;
}

/* Zodiac Sign Styles */
.zodiac-sign {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.zodiac-emoji {
    font-size: 1.1em;
}

/* Compatibility Section Styles - Compact */
.compatibility-section {
    background: rgba(45, 45, 45, 0.6);
    border-radius: 15px;
    padding: 15px;
    margin-top: 25px;
    border: 1px solid #3D3D3D;
}

.compatibility-section h3 {
    color: #42A5F5;
    margin-bottom: 12px;
    font-size: 1.2rem;
    text-align: center;
}

.compatibility-approach {
    background: rgba(26, 26, 26, 0.8);
    padding: 12px;
    border-radius: 10px;
    font-family: monospace;
    color: #64B5F6;
    word-break: break-all;
    text-align: center;
    border: 1px dashed #42A5F5;
    margin-top: 12px;
}

/* Sharing Energy Section - Compact */
.sharing-energy {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #3D3D3D;
}

.sharing-energy h2 {
    color: #42A5F5;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Next Phase Countdown */
.next-phase-countdown {
    display: inline-block;
    background: rgba(255, 111, 0, 0.2);
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
    color: #64B5F6;
}

/* Celebrity Profile Image */
.celebrity-profile-img {
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.analysis-section a {
    color: #64B5F6;
}

.analysis-section a:hover {
    color: #42A5F5;
}

/* 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: 1rem 0 0;
    margin: 2rem 0;
}

.mm-buttons-container {
    max-width: 1200px; /* Adjusted max-width for 4 columns */
    margin: 0 auto;
    padding: 0 20px;
}

.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: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mm-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* Changed to 4 columns */
    gap: 20px 15px;
    max-width: 1200px; /* Keep consistent with container max-width */
    margin: 0 auto;
    padding: 0 10px;
}

.mm-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #333;
    padding: 12px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    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;
    min-width: 230px;
}

.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 1fr; /* Keeps 2 columns for tablets */
        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-buttons-grid {
        grid-template-columns: 1fr; /* Single column for small mobiles */
    }

    .mm-button {
        padding: 12px 18px;
        font-size: 13px;
    }

    .mm-buttons-container {
        padding: 0 15px;
    }
}
