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

:root {
    --primary-color: #1a0a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-gold: #d4af37;
    --accent-purple: #7b2cbf;
    --text-light: #f5f5f5;
    --text-muted: #b8b8b8;
    --gradient-start: #0f0c29;
    --gradient-mid: #302b63;
    --gradient-end: #24243e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Starfield Background */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold);
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #fff5cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
}

.zodiac-wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

.zodiac-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
}

.zodiac-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
}

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

.title {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), #fff5cc, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.5)); }
}

.slogan {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #b8962e);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(15, 12, 41, 0.8));
}

.features h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--accent-gold);
}

/* Feature Tiles Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-tile,
.feature-tile:link,
.feature-tile:visited,
.feature-tile:hover,
.feature-tile:active {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: block;
}

.feature-tile h3,
.feature-tile p {
    text-decoration: none !important;
}

.feature-tile:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.feature-tile .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    display: block;
}

.feature-tile h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-tile p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 300;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    line-height: 1.4;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

/* Feature Detail Sections */
.feature-detail {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.6), rgba(15, 12, 41, 0.8));
}

.feature-detail.alt {
    background: linear-gradient(180deg, rgba(30, 20, 60, 0.6), rgba(30, 20, 60, 0.8));
}

.feature-detail-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-detail.alt .feature-detail-content {
    direction: rtl;
}

.feature-detail.alt .feature-detail-content > * {
    direction: ltr;
}

.feature-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 1rem;
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(100, 100, 100, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.screen-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(15, 12, 41, 0.9));
}

.contact h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.contact > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* App Store Buttons */
.app-download {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.store-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.store-text strong {
    font-size: 1.1rem;
}

.contact-alt {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-alt a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-alt a:hover {
    color: #fff5cc;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 900px) {
    .feature-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-detail.alt .feature-detail-content {
        direction: ltr;
    }

    .phone-mockup {
        order: -1;
    }

    .phone-frame {
        transform: none;
        width: 240px;
        height: 500px;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .zodiac-wheel {
        width: 300px;
        height: 300px;
    }

    .zodiac-wheel::before {
        width: 240px;
        height: 240px;
    }

    .zodiac-wheel::after {
        width: 180px;
        height: 180px;
    }

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-tile {
        padding: 1rem;
    }

    .feature-tile .feature-icon {
        font-size: 2rem;
    }

    .feature-tile h3 {
        font-size: 0.95rem;
    }

    .feature-tile p {
        font-size: 0.75rem;
    }

    .feature-text h2 {
        font-size: 1.6rem;
    }

    .app-download {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-frame {
        width: 200px;
        height: 420px;
        border-radius: 30px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .phone-frame::before {
        width: 60px;
        height: 18px;
        top: 12px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent-gold);
    color: var(--primary-color);
}

/* Scroll animation - sections visible by default, animate when scrolled to */
.feature-detail.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-detail.animate-ready.visible {
    opacity: 1;
    transform: translateY(0);
}
