/* 
   Future Self - Premium Aesthetic
   Theme: Dreamy, Ethereal, Manifestation
   Colors: Soft Pastels, Mesh Gradients
*/

:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Light Mode (Default) */
    --color-bg: #FDFBF7;
    --color-text-main: #1A1A1A;
    --color-text-muted: #666666;
    --color-accent: #E0B0FF;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.4);
    --nav-text: #1A1A1A;
    --star-color: rgba(255, 215, 0, 0.6);
    /* Gold for light mode */
    --constellation-color: rgba(26, 26, 26, 0.3);

    /* Light Gradients */
    --grad-1: #FFD1DC;
    /* Pastel Pink */
    --grad-2: #E6E6FA;
    /* Lavender */
    --grad-3: #B0E0E6;
    /* Powder Blue */
    --grad-4: #FFF0F5;
    /* Lavender Blush */
}

[data-theme="dark"] {
    /* Dark Mode */
    --color-bg: #050510;
    /* Deep Space */
    --color-text-main: #F0F0F0;
    --color-text-muted: #A0A0A0;
    --color-accent: #9D4EDD;
    --glass-bg: rgba(10, 10, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-text: #F0F0F0;
    --star-color: rgba(255, 255, 255, 0.8);
    /* White for dark mode */
    --constellation-color: rgba(255, 255, 255, 0.4);

    /* Dark Gradients */
    --grad-1: #240046;
    /* Deep Purple */
    --grad-2: #10002B;
    /* Dark Indigo */
    --grad-3: #3C096C;
    /* Rich Violet */
    --grad-4: #000000;
    /* Black */
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
}

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

a:hover {
    opacity: 0.7;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-text-main);
    color: var(--color-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Hero Full Image */
.hero-image {
    margin-top: 4rem;
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--nav-text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Background Animation */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, var(--grad-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--grad-2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--grad-3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--grad-4) 0px, transparent 50%);
    filter: blur(80px);
    opacity: 0.6;
    animation: gradientMove 20s ease infinite alternate;
}

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

    100% {
        transform: scale(1.1);
    }
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

.star {
    position: absolute;
    background: var(--star-color);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s infinite ease-in-out;
}

/* Star Positions & Sizes */
.star-1 {
    top: 10%;
    left: 15%;
    width: 3px;
    height: 3px;
    animation-delay: 0s;
}

.star-2 {
    top: 25%;
    left: 85%;
    width: 2px;
    height: 2px;
    animation-delay: 1s;
}

.star-3 {
    top: 60%;
    left: 10%;
    width: 4px;
    height: 4px;
    animation-delay: 2s;
}

.star-4 {
    top: 80%;
    left: 70%;
    width: 2px;
    height: 2px;
    animation-delay: 0.5s;
}

.star-5 {
    top: 40%;
    left: 40%;
    width: 3px;
    height: 3px;
    animation-delay: 3s;
}

.star-6 {
    top: 15%;
    left: 60%;
    width: 2px;
    height: 2px;
    animation-delay: 1.5s;
}

.star-7 {
    top: 90%;
    left: 20%;
    width: 3px;
    height: 3px;
    animation-delay: 2.5s;
}

.star-8 {
    top: 50%;
    left: 90%;
    width: 2px;
    height: 2px;
    animation-delay: 0.8s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.constellation {
    position: absolute;
    color: var(--constellation-color);
    opacity: 0.6;
}

.constellation-1 {
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    transform: rotate(15deg);
    animation: float 10s ease-in-out infinite;
}

.constellation-2 {
    bottom: 15%;
    left: 5%;
    width: 60px;
    height: 60px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-20px) rotate(15deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}
