/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary: #9d4edd;
    --secondary: #3a0ca3;
    --accent: #ff006e;
    --light-accent: #fb5607;
    --dark-bg: #0a0e27;
    --light-bg: #1a1f3a;
    --gold: #ffd60a;
    --silver: #e0aaff;
    --white: #f5f5f5;
    --text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== BACKGROUND & ANIMATION ==================== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 182, 193, 0.5), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 60px 70px, rgba(135, 206, 250, 0.5), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.6), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 10px, rgba(186, 85, 211, 0.5), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(157, 78, 221, 0.05) 0%,
        rgba(58, 12, 163, 0.05) 25%,
        rgba(255, 0, 110, 0.03) 50%,
        rgba(255, 215, 10, 0.03) 75%,
        rgba(157, 78, 221, 0.05) 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    z-index: 100;
    box-shadow: 0 4px 30px rgba(157, 78, 221, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

.mystical-text {
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 80px;
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(157, 78, 221, 0.1) 0%, rgba(26, 31, 58, 0) 100%);
}

.hero .container {
    display: block;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.mystical-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--gold), var(--primary), var(--light-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--silver);
    margin-bottom: 40px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(157, 78, 221, 0.6);
    border-color: var(--gold);
}

.cta-button.large {
    padding: 20px 50px;
    font-size: 18px;
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-large {
    width: 100%;
    aspect-ratio: 0.9;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(58, 12, 163, 0.2));
    box-shadow: 0 15px 50px rgba(157, 78, 221, 0.3), inset 0 0 50px rgba(255, 0, 110, 0.15);
    transition: all 0.3s ease;
}

.hero-img-large:hover {
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.5), inset 0 0 50px rgba(255, 0, 110, 0.2);
    transform: translateY(-5px);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(58, 12, 163, 0.2));
}

.mystical-border {
    border: 3px solid transparent;
    background-clip: padding-box;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(58, 12, 163, 0.2));
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3), inset 0 0 30px rgba(255, 0, 110, 0.1);
}

.mystical-border-alt {
    border: 3px solid transparent;
    background-clip: padding-box;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(255, 215, 10, 0.2));
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3), inset 0 0 30px rgba(157, 78, 221, 0.1);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(26, 31, 58, 0) 0%, rgba(157, 78, 221, 0.05) 100%);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    animation: slideInLeft 0.8s ease-out;
}

.about-image .image-placeholder {
    width: 100%;
    aspect-ratio: 1;
}

.about-text {
    animation: slideInRight 0.8s ease-out;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    background: rgba(157, 78, 221, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(157, 78, 221, 0.3);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.3);
}

.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.feature p {
    margin: 0;
    font-weight: 600;
}

/* ==================== TAROT IMAGES SECTION ==================== */
.tarot-images-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(157, 78, 221, 0.3);
}

.tarot-subtitle {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--gold), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.tarot-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.tarot-image-card {
    text-align: center;
    animation: slideInLeft 0.8s ease-out;
    transition: all 0.3s ease;
}

.tarot-image-card:hover {
    transform: translateY(-8px);
}

.tarot-image-card .image-placeholder {
    width: 100%;
    aspect-ratio: 1.3;
    margin-bottom: 15px;
}

.tarot-image-card p {
    color: var(--silver);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(58, 12, 163, 0.05) 0%, rgba(26, 31, 58, 0) 100%);
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--gold), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(58, 12, 163, 0.1));
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(157, 78, 221, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 10, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.4);
    border-color: var(--primary);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--gold);
}

.service-card p {
    color: var(--text);
    margin-bottom: 25px;
}

.service-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-cta:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(26, 31, 58, 0) 0%, rgba(157, 78, 221, 0.05) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    group: "gallery";
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.5), rgba(255, 0, 110, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 0.3;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(58, 12, 163, 0.08) 0%, rgba(26, 31, 58, 0) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 215, 10, 0.1), rgba(157, 78, 221, 0.1));
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--gold);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 10, 0.2);
}

.stars-rating {
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    margin-bottom: 15px;
    font-style: italic;
    color: var(--text);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(26, 31, 58, 0) 0%, rgba(157, 78, 221, 0.1) 100%);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    animation: scaleIn 0.8s ease-out;
}

.contact-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text);
}

.contact-subtitle {
    color: var(--silver);
    font-style: italic;
    margin-top: 20px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95), rgba(26, 31, 58, 0.95));
    border-top: 2px solid var(--primary);
    padding: 40px 20px;
    text-align: center;
    color: var(--silver);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 10, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 10, 0.3); }
    50% { text-shadow: 0 0 20px rgba(157, 78, 221, 0.6); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 15px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mystical-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .tarot-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 12px 15px;
    }

    .nav-brand {
        font-size: 20px;
    }

    .nav-links {
        gap: 10px;
        font-size: 14px;
    }

    .hero {
        margin-top: 70px;
        padding: 50px 20px;
    }

    .mystical-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }

    .about {
        padding: 60px 20px;
    }

    .about-text p {
        font-size: 16px;
    }

    .services {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarot-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 8px;
    }

    .hero {
        margin-top: 60px;
        padding: 40px 15px;
    }

    .mystical-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tarot-images-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .feature {
        padding: 15px;
    }

    .feature-icon {
        font-size: 30px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .card-icon {
        font-size: 45px;
    }

    .mystical-text {
        letter-spacing: 1px;
    }
}
