/* Mystical Theme for TopLovePsychic */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #4c1d95;
    /* Deep purple */
    --accent-color: #fbbf24;
    /* Amber/Gold */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Dynamic Nebula Background */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: blur(80px);
    /* Soften the blobs */
}

/* Layer 1: Deep Purples and Blues */
body::before {
    background:
        radial-gradient(circle at 15% 55%, rgba(76, 29, 149, 0.5), transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(67, 56, 202, 0.5), transparent 50%);
    animation: moveNebula1 20s ease-in-out infinite alternate;
}

/* Layer 2: Accents (Gold/Amber) */
body::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.15), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.2), transparent 40%);
    /* Subtle pink */
    animation: moveNebula2 30s ease-in-out infinite alternate-reverse;
}

@keyframes moveNebula1 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2) translate(20px, -20px);
    }
}

@keyframes moveNebula2 {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1) translate(-20px, 20px);
        opacity: 0.8;
    }
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Header */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: 0.4s ease;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

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

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 10rem 2rem 5rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1.5s ease;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.hero p {
    font-size: 1.6rem;
    max-width: 700px;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1.5s ease 0.3s forwards;
    opacity: 0;
    font-weight: 300;
}

.cta-button {
    padding: 1.2rem 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 1.5s ease 0.6s forwards;
    opacity: 0;
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 40px var(--accent-color);
    transform: translateY(-2px);
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Services Section */
.services {
    padding: 8rem 10% 8rem;
    text-align: center;
}

.services h2 {
    font-size: 3.5rem;
    margin-bottom: 6rem;
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

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

/* Modern Glassmorphic Card */
.card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4rem 2.5rem;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(12px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(251, 191, 36, 0.1);
}

.card h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.8rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.card p {
    font-weight: 300;
    color: rgba(248, 250, 252, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* SVG Icons */
.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: 0.4s ease;
}

.icon-svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    transition: 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
}

.card:hover .icon-wrapper {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.1);
}

.card:hover .icon-svg {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
    transform: rotate(5deg);
}

.icon {
    display: none;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(248, 250, 252, 0.7);
    margin: 0 0.5rem;
    font-size: 0.95rem;
}

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

.disclaimer-text {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.copyright {
    opacity: 0.5;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav {
        display: none;
    }

    .footer-links a {
        display: inline-block;
        margin: 0.2rem 0.5rem;
    }
}