/* Import distinctive fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@200;400;600;700&family=Space+Grotesk:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(234, 88, 12, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Add subtle animated particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(245, 158, 11, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(220, 38, 38, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(124, 58, 237, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

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

/* CSS Variables for consistent theming */
:root {
    --primary-red: #dc2626;
    --primary-orange: #ea580c;
    --primary-purple: #7c3aed;
    --primary-blue: #1d4ed8;
    --accent-gold: #f59e0b;
    --text-light: #f8fafc;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --surface-dark: #0f172a;
    --surface-medium: #1e293b;
    --surface-light: rgba(248, 250, 252, 0.05);
    --primary-color: #f59e0b;
    --accent-color: #dc2626;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--primary-red) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-gold), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-gold), var(--primary-orange));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(234, 88, 12, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--surface-dark) 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-light);
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(245,158,11,0.1)" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="0.5" fill="rgba(220,38,38,0.1)" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="6s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1.5" fill="rgba(124,58,237,0.1)" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="5s" repeatCount="indefinite"/></circle></svg>');
    pointer-events: none;
}

.hero-content-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-gold) 50%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTextGlow 3s ease-in-out infinite alternate;
}

@keyframes heroTextGlow {
    0% { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6)); }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: var(--text-light);
    border: none;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--surface-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.share-tools {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 16px;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(124, 58, 237, 0.15));
    color: var(--accent-gold);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.share-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-medium) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.share-card svg {
    width: 100%;
    height: auto;
    max-width: 900px;
    border-radius: 12px;
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-medium) 100%);
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.calculator-section h2 {
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.calculator-section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: rgba(248, 250, 252, 0.8);
    position: relative;
    z-index: 1;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--surface-light), rgba(124, 58, 237, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.calculator-form {
    padding: 3rem;
}

.calculator-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.input-group label {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-group input,
.input-group select {
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(248, 250, 252, 0.05);
    color: var(--text-light);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-calculate {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-calculate:disabled {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.3), rgba(107, 114, 128, 0.3));
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Results Display */
.calculator-results {
    background: linear-gradient(135deg, var(--surface-medium), var(--surface-dark));
    padding: 3rem;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.calculator-results h3 {
    text-align: center;
    color: var(--text-light);
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.calculator-results h4 {
    color: var(--accent-gold);
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Four Pillars Display */
.four-pillars-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.four-pillars-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: linear-gradient(135deg, var(--surface-light), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.pillar-label {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pillar-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
}

/* Five Elements Analysis */
.five-elements-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.five-elements-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.elements-chart {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.element-bar {
    background: linear-gradient(135deg, var(--surface-light), rgba(124, 58, 237, 0.1));
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.element-name {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 0.5rem;
}

.element-score {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.element-status {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-top: 0.25rem;
    font-weight: 500;
}

.strength-indicator {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

.strength-value {
    font-weight: 600;
    color: var(--accent-gold);
}

/* Basic Information */
.basic-info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.basic-info-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

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

.info-item {
    background: linear-gradient(135deg, var(--surface-light), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: 500;
    color: rgba(248, 250, 252, 0.7);
}

.info-value {
    font-weight: 600;
    color: var(--text-light);
}

/* Error Display */
.error-message {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.error-message h4 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-message p {
    color: rgba(248, 250, 252, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .elements-chart {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-form,
    .calculator-results {
        padding: 2rem;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--surface-medium) 0%, var(--surface-dark) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.features h2 {
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(135deg, var(--surface-light), rgba(124, 58, 237, 0.05));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.6s;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.feature-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.feature-card p {
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* What is Bazi Section */
.what-is {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-medium) 100%);
    position: relative;
}

.what-is::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(234, 88, 12, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.what-is h2 {
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.content-text p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(248, 250, 252, 0.9);
}

.bazi-elements {
    background: linear-gradient(135deg, var(--surface-light), rgba(124, 58, 237, 0.05));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(20px);
}

.bazi-elements h4 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.element {
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.element:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.element.wood { background: #27ae60; }
.element.fire { background: #e74c3c; }
.element.earth { background: #f39c12; }
.element.metal { background: #95a5a6; }
.element.water { background: #3498db; }

/* How to Use Section */
.how-to {
    padding: 80px 0;
    background: #f8f9fa;
}

.how-to h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.step-number {
    background: linear-gradient(45deg, #e74c3c, #8e44ad);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: white;
}

.why-choose h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.why-item {
    padding: 1.5rem;
    border-left: 4px solid #e74c3c;
    background: #f8f9fa;
}

.why-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.why-item p {
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-item h3 {
    background: linear-gradient(45deg, #c0392b, #8e44ad);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item h3:hover {
    background: linear-gradient(45deg, #a93226, #7d3c98);
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    display: none;
}

.faq-item.active p {
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #c0392b);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f39c12;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .elements-grid {
        grid-template-columns: 1fr;
    }
}
/* 2026 Fire Horse Year Special Styling */
.fire-horse-accent {
    background: linear-gradient(45deg, #e74c3c, #f39c12, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced hover effects for Fire Horse energy */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.2);
    border-top: 3px solid #e74c3c;
}

/* Fire element colors for bazi elements */
.element.wood { background: linear-gradient(45deg, #27ae60, #2ecc71); }
.element.fire { background: linear-gradient(45deg, #e74c3c, #f39c12); }
.element.earth { background: linear-gradient(45deg, #f39c12, #e67e22); }
.element.metal { background: linear-gradient(45deg, #95a5a6, #bdc3c7); }
.element.water { background: linear-gradient(45deg, #2980b9, #8e44ad); }

/* Fire Horse year energy animation */
@keyframes fireHorseGlow {
    0% { box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.6); }
    100% { box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); }
}

.btn-primary {
    animation: fireHorseGlow 3s ease-in-out infinite;
}

/* Additional Fire Horse themed accents */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(243,156,18,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(231,76,60,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(142,68,173,0.1)"/></svg>');
    pointer-events: none;
}

.hero {
    position: relative;
    overflow: hidden;
}
/* Animation classes for scroll effects */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature card enhanced hover states */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top 0.3s ease;
}

.feature-card.hover-enhanced {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-card.hover-reset {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Enhanced micro-interactions and animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Staggered animation delays for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced scroll reveal animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Enhanced button interactions with sophisticated effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(220, 38, 38, 0.4),
        0 0 0 1px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced typography hierarchy with better spacing and effects */
h1, h2, h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-orange) 50%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-orange));
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-light);
}

/* Improved focus states for accessibility */
*:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--surface-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-orange));
}

/* Atmospheric particle effects */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(245, 158, 11, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(220, 38, 38, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(124, 58, 237, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(29, 78, 216, 0.2), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(-5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}
/* Enhanced Results Display Styles */
.pillar-element {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.elements-summary {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.balance-value {
    font-weight: 600;
    color: var(--accent-color);
}

/* Ten Gods Analysis */
.ten-gods-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ten-gods-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

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

.god-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.god-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.god-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Pattern Analysis */
.pattern-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pattern-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.pattern-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pattern-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pattern-value {
    font-weight: 600;
    color: var(--accent-color);
}

/* Spiritual Stars */
.stars-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stars-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.stars-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.star-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Personality Analysis */
.personality-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.personality-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

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

.insight-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-card h5 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.insight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Life Aspects */
.life-aspects-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.life-aspects-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

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

.aspect-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.aspect-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.aspect-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.aspect-card h5 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.aspect-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Raw Output */
.raw-output-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.raw-output-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.raw-output-section pre {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Enhanced Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Chart Strength Analysis */
.strength-analysis-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-analysis-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.strength-overview {
    margin-bottom: 2rem;
}

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

.strength-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.strength-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.strength-content {
    flex: 1;
}

.strength-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.strength-value {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.strength-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Humidity Analysis */
.humidity-analysis {
    margin-bottom: 2rem;
}

.humidity-analysis h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.humidity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.humidity-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(29, 78, 216, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.humidity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.2);
}

.humidity-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.humidity-content {
    flex: 1;
}

.humidity-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.humidity-value {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.humidity-desc {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Strength Interpretation */
.strength-interpretation h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.interpretation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.interpretation-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.interpretation-card h6 {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.interpretation-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Ten Gods Explanation */
.tengods-explanation {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tengods-explanation h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tengods-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tengods-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tengods-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.tengods-category h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.tengods-category p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.tengods-category strong {
    color: var(--text-light);
}

/* Luck Cycles Analysis */
.luck-cycles-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.luck-cycles-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.current-luck-section h5,
.luck-timeline-section h5,
.important-years-section h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.current-luck-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.luck-period {
    text-align: center;
    min-width: 150px;
}

.luck-years {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.luck-separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.luck-pillars {
    font-size: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    color: var(--accent-gold);
}

.luck-description {
    flex: 1;
}

.luck-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.luck-timeline {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.luck-period-item {
    min-width: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.luck-period-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.luck-period-item.current {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

/* Luck Timeline Text Styles */
.period-years {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.period-pillars {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.period-age {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.period-details {
    color: #94a3b8;
    font-size: 0.8rem;
}

.important-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.important-year-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
    text-align: center;
}

.important-year-card.positive {
    border-color: rgba(5, 150, 105, 0.3);
}

.important-year-card.negative {
    border-color: rgba(220, 38, 38, 0.3);
}

/* Important Years Text Styles */
.year-number {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.year-description {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.year-advice {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Professional Analysis */
.professional-analysis-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.professional-analysis-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.classical-section,
.terms-section,
.deep-analysis-section {
    margin-bottom: 2rem;
}

.classical-section h5,
.terms-section h5,
.deep-analysis-section h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.classical-quote {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-gold);
    font-style: italic;
}

.quote-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.quote-source {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: right;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.term-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.term-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.term-card h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.term-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.analysis-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.analysis-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.analysis-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.analysis-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

.analysis-content {
    position: relative;
}

.analysis-panel {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.analysis-panel h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.analysis-panel p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Enhanced Pattern Section */
.pattern-overview,
.stars-overview,
.palace-overview,
.seasonal-explanation {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pattern-overview p,
.stars-overview p,
.palace-overview p,
.seasonal-explanation p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Palace Explanation Section */
.palace-explanation-section {
    margin-bottom: 2rem;
}

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

.palace-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.palace-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.palace-card .palace-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.palace-card h5 {
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.palace-card p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.palace-value {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.stars-categories {
    display: grid;
    gap: 1.5rem;
}

.stars-category h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.stars-grid.auspicious .star-tag {
    background: linear-gradient(135deg, #059669, #10b981);
}

.stars-grid.inauspicious .star-tag {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.stars-grid.special .star-tag {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

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

.seasonal-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seasonal-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.seasonal-value {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .current-luck-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .luck-timeline {
        gap: 0.5rem;
    }
    
    .luck-period-item {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-tabs {
        flex-direction: column;
    }
    
    .analysis-tab {
        text-align: center;
    }
    
    .seasonal-analysis {
        grid-template-columns: 1fr;
    }
}
/* Breadcrumb Navigation Styles */
.results-breadcrumb {
    margin: 1.5rem 0 2rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem;
}

.breadcrumb-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f59e0b; /* Gold color for tab titles */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.breadcrumb-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fbbf24; /* Lighter gold on hover */
    transform: translateY(-1px);
}

.breadcrumb-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.tab-icon {
    font-size: 1rem;
}

.tab-text {
    font-weight: 500;
}

/* Results Content Sections */
.results-content {
    position: relative;
}

.result-section {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.result-section.active {
    display: block;
}

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

/* Summary Section Styles */
.summary-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.summary-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.summary-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile Responsive for Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb-tabs {
        gap: 0.25rem;
    }
    
    .breadcrumb-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab-icon {
        font-size: 1.2rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Smooth transitions for section switching */
.results-content {
    min-height: 400px;
}

.result-section {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.result-section.active {
    opacity: 1;
}

/* Enhanced card interactions inspired by Claude blog insights */
.feature-card, .faq-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before, .faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(220, 38, 38, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.feature-card:hover::before, .faq-item:hover::before {
    opacity: 1;
}

.feature-card:hover, .faq-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced form inputs with better focus states */
.form-group input, .form-group select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-group input:focus, .form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.2),
        0 0 0 2px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

/* Subtle text animations */
.hero-subtitle, .section-description {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

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

/* Enhanced loading states */
.loading-spinner {
    position: relative;
    overflow: hidden;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
/* 响应式优化 - 移除图片后的布局调整 */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
        min-height: 80vh;
    }
    
    .hero-content-full {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content-full {
        padding: 0 10px;
    }
}