/* Astrology Page Specific Styles */

.page-hero {
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Zodiac Wheel Animation */
.zodiac-wheel-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zodiac-wheel {
    position: relative;
    width: 400px;
    height: 400px;
    animation: rotate-wheel 60s linear infinite;
}

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

.zodiac-sign {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-180px) rotate(calc(-1 * var(--rotation)));
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zodiac-sign:hover {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-180px) rotate(calc(-1 * var(--rotation))) scale(1.2);
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.astro-service {
    background: rgba(45, 27, 105, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.astro-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.4);
    border-color: var(--secondary-color);
}

.service-header {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.astro-service > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Chart Preview */
.chart-preview {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.mini-chart {
    position: relative;
    width: 150px;
    height: 150px;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-symbol {
    color: white;
    font-size: 1.2rem;
}

.planet-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size);
    height: var(--size);
    transform: translate(-50%, -50%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    animation: orbit-rotate 20s linear infinite;
}

@keyframes orbit-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.planet {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

/* Compatibility Visual */
.compatibility-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.person-chart {
    text-align: center;
}

.person-chart i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

.connection-lines {
    position: relative;
    width: 60px;
    height: 40px;
}

.harmony-line,
.challenge-line {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.harmony-line {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    animation: pulse-line 2s ease-in-out infinite;
}

.challenge-line {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: pulse-line 2s ease-in-out infinite;
    animation-delay: 1s;
    top: 70%;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Transit Visual */
.transit-visual {
    margin-top: 20px;
}

.transit-timeline {
    position: relative;
    height: 60px;
    margin: 0 20px;
}

.timeline-line {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(147, 51, 234, 0.3);
}

.transit-event {
    position: absolute;
    bottom: 10px;
    left: var(--pos);
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: calc(var(--pos) * 0.01s);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Solar Return Visual */
.solar-return-visual {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.year-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.birthday-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--accent-color);
}

.year-segments {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: year-rotate 10s linear infinite;
}

.segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 75% 0%, 50% 50%);
}

.segment:nth-child(2) {
    transform: rotate(90deg);
}

.segment:nth-child(3) {
    transform: rotate(180deg);
}

.segment:nth-child(4) {
    transform: rotate(270deg);
}

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

/* Planets Info */
.planets-info {
    margin: 60px 0;
}

.planets-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.planet-card {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.planet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
    background: rgba(147, 51, 234, 0.2);
}

.planet-symbol {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.planet-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.planet-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CTA Section */
.cta-section-inner {
    text-align: center;
    padding: 40px;
    background: rgba(45, 27, 105, 0.2);
    border-radius: 20px;
    margin-top: 60px;
}

.cta-section-inner h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .zodiac-wheel {
        width: 300px;
        height: 300px;
    }
    
    .zodiac-sign {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-130px) rotate(calc(-1 * var(--rotation)));
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .planets-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}