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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 100%);
    color: #e8e8e8;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cosmic Background Animation */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

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

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

.moon {
    position: absolute;
    top: 8%;
    right: 8%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffecb3);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    animation: glow 6s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.4); }
    100% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.7); }
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #667eea);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    animation: gradientShift 6s ease-in-out infinite;
}

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

.hero p {
    font-size: 1.3rem;
    color: #b8b8d1;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Form Styling */
.form-container {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #b8b8d1;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #e8e8e8;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.calculate-btn {
    grid-column: 1 / -1;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: #000;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    animation: gradientShift 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

/* Results Section */
.results {
    display: none;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Result Card */
.main-result-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lifespan-display {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.15));
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.lifespan-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.lifespan-number {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    animation: gradientShift 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.lifespan-title {
    font-size: 1.8rem;
    color: #4ecdc4;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.lifespan-range {
    font-size: 1.3rem;
    color: #b8b8d1;
    position: relative;
    z-index: 1;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ffd700, #4ecdc4, #ff6b6b);
    background-size: 300% 300%;
    border-radius: 6px;
    transition: width 3s ease;
    width: 0%;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Cards Grid - 3 per row */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Individual Cards */
.insight-card {
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 35, 0.85) !important;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    z-index: -1;
    border-radius: 20px;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(15, 15, 35, 0.9) !important;
}

.insight-title {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 8px;
}

.insight-text {
    color: #e8e8e8;
    line-height: 1.7;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Detail Styling */
.card-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-detail strong {
    color: #ffd700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-detail p {
    margin-bottom: 10px;
    color: #e8e8e8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mini-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #d0d0d0;
}

.timeline-item,
.phase-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #ffd700;
}

.timeline-item strong,
.phase-item strong {
    display: block;
    margin-bottom: 5px;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.timeline-item small,
.phase-item small {
    display: block;
    margin-top: 5px;
    color: #c0c0c0;
    font-style: italic;
}

/* Poetry Card */
.poetry-card {
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    color: #4ecdc4;
    padding: 40px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 25px;
    line-height: 1.9;
    margin-bottom: 40px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.poetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    animation: poetryShine 4s ease-in-out infinite;
}

@keyframes poetryShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.action-btn {
    padding: 15px 30px;
    border-radius: 30px;
    border: 2px solid #ffd700;
    background: transparent;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 30px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lifespan-number {
        font-size: 3rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .insight-card {
        min-height: 150px;
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .lifespan-display {
        padding: 30px 20px;
    }
    
    .lifespan-number {
        font-size: 2.5rem;
    }
    
    .poetry-card {
        padding: 25px;
        font-size: 1.1rem;
    }
}

/* Enhanced animations for better UX */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insight-card {
    animation: cardSlideIn 0.6s ease forwards;
}

.insight-card:nth-child(1) { animation-delay: 0.1s; }
.insight-card:nth-child(2) { animation-delay: 0.2s; }
.insight-card:nth-child(3) { animation-delay: 0.3s; }
.insight-card:nth-child(4) { animation-delay: 0.4s; }
.insight-card:nth-child(5) { animation-delay: 0.5s; }
.insight-card:nth-child(6) { animation-delay: 0.6s; }
.insight-card:nth-child(7) { animation-delay: 0.7s; }
.insight-card:nth-child(8) { animation-delay: 0.8s; }
.insight-card:nth-child(9) { animation-delay: 0.9s; }
.insight-card:nth-child(10) { animation-delay: 1.0s; }

/* Ensure cards start invisible for animation */
.insight-card {
    opacity: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}

/* Extracted CSS from JavaScript file */

/* Spinner Styles */
#cosmicSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.spinner-container {
    text-align: center;
}

.cosmic-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.orbit {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid #ffd700;
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.orbit-1 {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    animation-duration: 2s;
    border-top-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.orbit-2 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    animation-duration: 3s;
    animation-direction: reverse;
    border-top-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.orbit-3 {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
    animation-duration: 1.5s;
    border-top-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.center-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.spinner-text {
    color: #e6e6fa;
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.8;
    animation: fade 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes fade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* URL Indicator Animation */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Share Notification Animation */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Card Layout Fixes for Consistent Sizing */
.insight-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 600px;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.insight-title {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.insight-text {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    color: #e6e6fa;
    line-height: 1.6;
    font-size: 0.95rem;
}

.insight-text::-webkit-scrollbar {
    width: 6px;
}

.insight-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.insight-text::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 3px;
}

.card-detail strong {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.card-detail p {
    margin-bottom: 12px;
    color: #e6e6fa;
    line-height: 1.5;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 15px 0;
}

.strength-list, .challenge-list {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.strength-list li, .challenge-list li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #e6e6fa;
    font-size: 0.9rem;
    line-height: 1.4;
}

.strength-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #4ecdc4;
}

.challenge-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.timeline-item {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

.timeline-item strong {
    color: #4ecdc4;
    font-size: 0.95rem;
}

.spiritual-section {
    margin: 15px 0;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.spiritual-section strong {
    color: #667eea;
}

.wellness-section {
    margin: 15px 0;
    padding: 12px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

.wellness-section strong {
    color: #4ecdc4;
}

.karma-section {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.karma-section strong {
    color: #ffd700;
}

#cardsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    #cardsGrid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .insight-card {
        min-height: 350px;
        max-height: 500px;
    }
    
    .insight-title {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .insight-text {
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .insight-card {
        min-height: 300px;
        max-height: 450px;
    }
    
    .insight-title {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    .insight-text {
        padding: 12px;
        font-size: 0.85rem;
    }
}

.insight-text * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.insight-text ul {
    margin: 10px 0;
}

.insight-text li {
    margin: 5px 0;
}

.insight-text p:last-child {
    margin-bottom: 0;
}



/* SEO Content Section Styles */
.seo-content-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.seo-main-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #ffd700, #4ecdc4, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
    font-weight: bold;
}

.seo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.seo-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.seo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    z-index: -1;
    border-radius: 20px;
}

.seo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.seo-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 20px;
    text-align: center;
}

.seo-card-header h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.seo-card-content {
    padding: 25px;
    color: #e8e8e8;
    margin-bottom: 10px;
    word-wrap: break-word;
    line-height: 1.5rem;
}

.seo-card-content p {
    text-align: left; /* Changed from justify */
    hyphens: auto; /* Better word breaks */
    word-spacing: normal;
    margin-bottom: 1.2em; /* Use em for proportional spacing */
}

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

/* FAQ Section Styles */
.faq-section {
    margin-top: 60px;
    padding: 0px 0;
}

.faq-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #4ecdc4;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: all 0.3s ease;
    font-weight: 600;
    color: #e8e8e8;
    font-size: 1.05rem;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #ffd700;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

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

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

.faq-answer.active {
    max-height: 500px;
    padding: 20px 25px;
}

.faq-answer p {
    color: #d0d0d0;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
    text-align: justify;
}

/* Responsive Design for SEO Section */
@media (max-width: 768px) {
    .seo-main-title {
        font-size: 2rem;
    }
    
    .seo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-card-header {
        padding: 15px;
    }
    
    .seo-card-header h3 {
        font-size: 1.1rem;
    }
    
    .seo-card-content {
        padding: 20px;
    }
    
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .seo-content-section {
        padding: 40px 0;
    }
    
    .seo-container {
        padding: 0 15px;
    }
    
    .seo-main-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .seo-card-content {
        padding: 15px;
    }
    
    .seo-card-content p {
        font-size: 0.9rem;
    }
    
    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .faq-answer.active {
        padding: 12px 15px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Animation for FAQ items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }

/* Ensure FAQ items start invisible for animation */
.faq-item {
    opacity: 0;
}

/* Enhanced hover effects for better UX */
.seo-card {
    animation: cardSlideIn 0.6s ease forwards;
}

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

/* Ensure SEO cards start invisible for animation */
.seo-card {
    opacity: 0;
}

