:root {
    --midnight: #0f0f1a;
    --deep-space: #1a1a2e;
    --starlight: #e6e6ff;
    --moon-glow: #f6f6ff;
    --passion-red: #ff4466;
    --warning-gold: #f6c744;
    --calm-blue: #4466ff;
    --karmic-purple: #9d4edd;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight);
    color: var(--starlight);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 68, 102, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(102, 68, 255, 0.1) 0%, transparent 20%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.7"/><circle cx="50" cy="30" r="0.3" fill="white" opacity="0.5"/><circle cx="80" cy="10" r="0.4" fill="white" opacity="0.6"/><circle cx="30" cy="70" r="0.5" fill="white" opacity="0.7"/><circle cx="70" cy="80" r="0.3" fill="white" opacity="0.5"/><circle cx="10" cy="50" r="0.6" fill="white" opacity="0.8"/><circle cx="90" cy="60" r="0.4" fill="white" opacity="0.6"/></svg>');
    min-height: 100vh;
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--moon-glow);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.tagline {
    font-style: italic;
    color: var(--warning-gold);
    margin-bottom: 1.5rem;
}

.form-container {
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--moon-glow);
    text-align: center;
    position: relative;
}

.form-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--passion-red), var(--karmic-purple));
    margin: 0.5rem auto 0;
}

.partner-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .partner-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.partner-section {
    position: relative;
}

.partner-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--moon-glow);
    display: flex;
    align-items: center;
}

.partner-section h3:before {
    content: '♡';
    margin-right: 0.5rem;
    color: var(--passion-red);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--starlight);
}

input {
    width: 100%;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--passion-red);
    box-shadow: 0 0 0 2px rgba(255, 68, 102, 0.3);
}

.submit-btn {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
}

button {
    background: linear-gradient(135deg, var(--passion-red), var(--karmic-purple));
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 102, 0.4);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section - FIXED STYLING */
.results-container {
    display: none;
    background: rgba(15, 15, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    color: var(--starlight); /* Ensure text is visible */
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--moon-glow);
    margin-bottom: 0.5rem;
}

.risk-meter {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.meter-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--calm-blue) 0% 39%,
        var(--warning-gold) 39% 69%,
        var(--passion-red) 69% 89%,
        #990000 89% 100%
    );
    box-shadow: 0 0 20px rgba(255, 68, 102, 0.3);
}

.meter-inner {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: var(--deep-space);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.risk-percent {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: var(--starlight);
}

.risk-label {
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--starlight);
}

.partner-profiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .partner-profiles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.profile-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: var(--starlight); /* Ensure text is visible */
}

.profile-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: rgba(255, 68, 102, 0.2);
    border-radius: 0 0 0 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--moon-glow);
}

.profile-dob {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.2rem;
    color: var(--starlight);
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .profile-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.detail-item {
    margin-bottom: 0.8rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.3rem;
    color: var(--starlight);
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--starlight);
}

.moon-phase {
    display: flex;
    align-items: center;
}

.moon-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    background: var(--warning-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.zodiac-sign {
    display: flex;
    align-items: center;
}

.zodiac-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    background: var(--calm-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.life-path {
    display: flex;
    align-items: center;
}

.life-path-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    background: var(--karmic-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

.quote-card {
    background: rgba(255, 68, 102, 0.1);
    border-left: 3px solid var(--passion-red);
    padding: 0.8rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0;
    font-style: italic;
    color: var(--starlight);
}

.compatibility-section {
    background: rgba(102, 68, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 68, 255, 0.2);
    color: var(--starlight);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--moon-glow);
    display: flex;
    align-items: center;
}

.section-title:before {
    content: '✦';
    margin-right: 0.5rem;
    color: var(--warning-gold);
}

.compatibility-score {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.score-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--calm-blue), var(--karmic-purple));
    border-radius: 4px;
}

.karmic-insight {
    background: rgba(157, 78, 221, 0.1);
    border-left: 3px solid var(--karmic-purple);
    padding: 0.8rem;
    border-radius: 0 6px 6px 0;
    margin: 0.8rem 0;
    color: var(--starlight);
}

.advice-section {
    background: rgba(246, 199, 68, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(246, 199, 68, 0.2);
    color: var(--starlight);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-width: auto;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.download {
    background: var(--passion-red);
}

.action-btn.share {
    background: var(--karmic-purple);
}

.action-btn.reset {
    background: transparent;
    color: var(--starlight);
}

/* Risk level specific styles */
.risk-low .risk-percent,
.risk-low .risk-label {
    color: var(--calm-blue);
}

.risk-medium .risk-percent,
.risk-medium .risk-label {
    color: var(--warning-gold);
}

.risk-high .risk-percent,
.risk-high .risk-label {
    color: var(--passion-red);
}

.risk-extreme .risk-percent,
.risk-extreme .risk-label {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Moon phase icons */
.moon-icon.new:before {
    content: '🌑';
}

.moon-icon.waxing-crescent:before {
    content: '🌒';
}

.moon-icon.first-quarter:before {
    content: '🌓';
}

.moon-icon.waxing-gibbous:before {
    content: '🌔';
}

.moon-icon.full:before {
    content: '🌕';
}

.moon-icon.waning-gibbous:before {
    content: '🌖';
}

.moon-icon.last-quarter:before {
    content: '🌗';
}

.moon-icon.waning-crescent:before {
    content: '🌘';
}

/* Enhanced styling for improved results display - FIXED */
.enhanced-results {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: var(--starlight); /* Fixed text color */
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.enhanced-results h3 {
    color: var(--moon-glow);
    margin-bottom: 1rem;
}

.risk-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.risk-factor {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    color: var(--starlight); /* Fixed text color */
}

.risk-factor h4 {
    margin: 0 0 0.5rem 0;
    color: var(--warning-gold);
    font-weight: 600;
}

.warning-signs {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 36, 0.2));
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1rem 0;
    color: var(--starlight); /* Fixed text color */
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.warning-signs h3 {
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--moon-glow);
}

.warning-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.warning-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--starlight); /* Fixed text color */
}

.compatibility-factors {
    background: linear-gradient(135deg, rgba(86, 171, 47, 0.2), rgba(168, 230, 207, 0.2));
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1rem 0;
    color: var(--starlight); /* Fixed text color */
    border: 1px solid rgba(86, 171, 47, 0.3);
}

.compatibility-factors h3 {
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--moon-glow);
}

.factor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.factor-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--starlight); /* Fixed text color */
}

.detailed-analysis {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.3), rgba(52, 152, 219, 0.3));
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.2rem 0;
    color: var(--starlight); /* Fixed text color */
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.detailed-analysis h3 {
    color: var(--moon-glow);
    margin-bottom: 1rem;
}

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

.analysis-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    color: var(--starlight); /* Fixed text color */
}

.analysis-card h4 {
    margin: 0 0 1rem 0;
    color: var(--warning-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-display {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin: 0.5rem 0;
    color: var(--starlight);
}

.score-low { color: #2ecc71; }
.score-medium { color: #f39c12; }
.score-high { color: #e74c3c; }

.enhanced-profile {
    border: 2px solid transparent;
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
    border-radius: 15px;
    padding: 1.2rem;
    margin: 1rem 0;
    color: var(--starlight); /* Fixed text color */
}

.profile-enhancement {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
    color: var(--starlight); /* Fixed text color */
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.profile-enhancement h4 {
    color: var(--moon-glow);
    margin-bottom: 0.5rem;
}

.behavioral-pattern {
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-left: 4px solid #667eea;
    color: var(--starlight); /* Fixed text color */
}

.affair-style {
    background: rgba(231, 76, 60, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-left: 4px solid #e74c3c;
    color: var(--starlight); /* Fixed text color */
}

.emotional-needs {
    background: rgba(46, 204, 113, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-left: 4px solid #2ecc71;
    color: var(--starlight); /* Fixed text color */
}

.moon-enhancement {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: var(--starlight); /* Fixed text color */
    padding: 1rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.moon-enhancement strong {
    color: var(--moon-glow);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.enhanced-meter {
    position: relative;
    overflow: hidden;
}

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

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

.interactive-tooltip {
    position: relative;
    cursor: help;
}

.interactive-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
}

.enhanced-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.risk-meter-enhanced {
    position: relative;
    background: conic-gradient(
        from 0deg,
        #2ecc71 0deg 108deg,
        #f39c12 108deg 180deg,
        #e74c3c 180deg 306deg,
        #8e44ad 306deg 360deg
    );
    border-radius: 50%;
    padding: 10px;
}

.meter-inner-enhanced {
    background: var(--deep-space);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    color: var(--starlight); /* Fixed text color */
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .form-container,
    .results-container {
        padding: 1rem;
    }
    
    .risk-meter {
        width: 150px;
        height: 150px;
    }
    
    .risk-percent {
        font-size: 1.8rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-breakdown {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .partner-form {
        gap: 0.8rem;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .warning-list,
    .factor-list {
        grid-template-columns: 1fr;
    }
}



/* Hero Content Section */
.hero-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    padding: 3rem 0;
    text-align: center;
    border-radius: 15px;
    margin: 2rem auto; /* Changed margin to auto for horizontal centering */
    max-width: 1200px; /* Added max-width to control width */
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.content-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--moon-glow);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--starlight);
    opacity: 0.9;
    padding: 0 1rem; /* Added padding for better spacing on smaller screens */
}

/* Content Cards Section */
.content-cards-section {
    padding: 1rem 0;
}

.content-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem auto; /* Changed margin to auto for horizontal centering */
    max-width: 1200px; /* Added max-width to control width */
}

.content-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 26, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--passion-red), var(--karmic-purple), var(--calm-blue));
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.content-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--moon-glow);
    margin-bottom: 1rem;
    text-align: center;
}

.content-card p {
    color: var(--starlight);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Detailed Information Section */
.detailed-info-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.3), rgba(52, 152, 219, 0.3));
    padding: 3rem 0;
    border-radius: 15px;
    margin: 2rem auto; /* Changed margin to auto for horizontal centering */
    max-width: 1200px; /* Added max-width to control width */
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--moon-glow);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--passion-red), var(--karmic-purple));
    margin: 1rem auto 0;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto; /* Changed margin to auto for horizontal centering */
    max-width: 1200px; /* Added max-width to control width */
}

.info-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--warning-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-block p {
    color: var(--starlight);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(255, 68, 102, 0.2) 100%);
    padding: 3rem 0;
    border-radius: 15px;
    margin: 2rem auto; /* Changed margin to auto for horizontal centering */
    max-width: 1200px; /* Added max-width to control width */
    border: 1px solid rgba(157, 78, 221, 0.3);
}

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

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

.faq-item:hover {
    border-color: rgba(157, 78, 221, 0.3);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 46, 0.5);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(157, 78, 221, 0.1);
}

.faq-question h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--moon-glow);
    margin: 0;
    flex-grow: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--karmic-purple);
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--starlight);
    line-height: 1.7;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--passion-red), var(--karmic-purple));
    padding: 3rem 0;
    text-align: center;
    border-radius: 15px;
    margin: 2rem auto; /* Center the section horizontally */
    max-width: 1200px; /* Control section width */
    box-shadow: 0 10px 30px rgba(255, 68, 102, 0.3);
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* This will center all child elements horizontally */
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    padding: 0 1rem;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block; /* Ensures the button only takes needed width */
    margin: 0 auto; /* Additional centering for the button itself */
}

.cta-button:hover {
    background: white;
    color: var(--passion-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Footer Content */
.content-footer {
    background: rgba(15, 15, 26, 0.9);
    padding: 1rem 0 0rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

.footer-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--moon-glow);
    margin-bottom: 1rem;
    text-align: center;
}

.footer-content > p {
    color: var(--starlight);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    width: 100%;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--warning-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.footer-section li {
    color: var(--starlight);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.footer-section li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--karmic-purple);
}

/* Mobile Responsiveness for SEO Content */
@media (max-width: 768px) {
    .content-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .content-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-block {
        padding: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 0;
        margin: 1rem auto; /* Ensure centering on smaller screens */
    }
    
    .content-title {
        font-size: 1.6rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* FAQ JavaScript Functionality */
.faq-item.active .faq-answer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for better interactivity */
.content-card:hover .card-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

/* Gradient text effects */
.content-title {
    background: linear-gradient(135deg, var(--moon-glow), var(--warning-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved accessibility */
.faq-question:focus {
    outline: 2px solid var(--karmic-purple);
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Loading animation for better UX */
.content-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


