:root {
    --primary-gold: #FFD700;
    --primary-gold-dark: #B8860B;
    --bg-dark-space: #0B0B1A;
    --bg-card: rgba(20, 20, 40, 0.7);
    --text-white: #F8F8FF;
    --text-gray: #A9A9C2;
    --accent-purple: #4B0082;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    background-color: var(--bg-dark-space);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Background Animations */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: radial-gradient(circle at center, #1a0b2e 0%, var(--bg-dark-space) 100%);
}

.zodiac-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.05;
    z-index: 1;
    animation: rotateZodiac 120s linear infinite;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="none" stroke="%23FFD700" stroke-width="0.5"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23FFD700" stroke-width="0.5" stroke-dasharray="2,2"/></svg>') center/contain no-repeat;
}

@keyframes rotateZodiac {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: var(--bg-dark-space);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 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.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Navbar */
nav {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(11, 11, 26, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    height: 75px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

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

/* Hero Section */
.hero {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.tagline {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #FFF, var(--primary-gold), #FFF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Horoscope Preview */
.horoscope-preview {
    padding: 60px 0;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.03), transparent);
    border-top: 1px solid rgba(255,215,0,0.1);
    border-bottom: 1px solid rgba(255,215,0,0.1);
}

.zodiac-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.zodiac-carousel::-webkit-scrollbar {
    display: none;
}

.zodiac-sign {
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.zodiac-sign img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.5));
}

.zodiac-sign span {
    display: block;
    font-weight: 600;
}

.zodiac-sign:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(255,215,0,0.1);
}

/* Shared Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 120px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 60, 0.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,215,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-gold);
    font-size: 2rem;
    border: 1px solid rgba(255,215,0,0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
}

/* Services */
.services {
    padding: 120px 0;
    position: relative;
}

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

.service-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    display: block;
    border: 1px solid rgba(255,215,0,0.2);
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(11,11,26, 1) 0%, rgba(11,11,26, 0.8) 50%, transparent 100%);
    transition: var(--transition);
}

.service-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.service-item:hover .service-overlay {
    padding-bottom: 50px;
}

.service-overlay h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
    padding: 120px 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: calc(400px * 10); /* Adjust based on cards */
    animation: scrollTestimonials 30s linear infinite;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 5)); }
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 370px;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.1);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 3rem;
    color: rgba(255,215,0,0.1);
}

.stars {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(75,0,130,0.2));
    border-radius: 30px;
    margin: 60px 20px;
    border: 1px solid rgba(255,215,0,0.2);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: #050510;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about p {
    color: var(--text-gray);
    margin: 20px 0;
}

.footer-links h4 {
    color: var(--primary-gold);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-gray);
}

.footer-links ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-btns { flex-direction: column; }
}