/* ============================================
   CANDY THEME - Sweet Pastel Colors
   ============================================ */

:root {
    --pink: #ffb3d9;
    --pink-dark: #ff80cc;
    --purple: #d4a5ff;
    --blue: #a5d8ff;
    --mint: #a8e6cf;
    --yellow: #ffd93d;
    --coral: #ffaaa5;
    --surface: #fff5f7;
    --background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 50%, #f5fff5 100%);
    --card: #ffffff;
    --card-hover: #fffbfd;
    --text: #4a4a6a;
    --text-muted: #8888a0;
    --border: #ffd6e7;
    --shadow: 0 8px 30px rgba(255, 179, 217, 0.15);
    --shadow-hover: 0 12px 40px rgba(255, 179, 217, 0.25);
    --gradient-candy: linear-gradient(135deg, #ffb3d9 0%, #d4a5ff 50%, #a5d8ff 100%);
    --radius: 30px;
    --font-display: 'Fredoka One', 'Nunito', cursive;
    --font-body: 'Nunito', 'Quicksand', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative; /* Ensure stacking context */
    z-index: 0; /* Base z-index */
}

/* Ensure navbar is visible and above background */
.navbar {
    background: var(--card, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(255, 179, 217, 0.1);
    z-index: 100;
}

.navbar .nav-link {
    color: var(--text);
    font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--pink-dark);
}

.navbar-brand {
    color: var(--pink-dark);
    text-shadow: 2px 2px 0px #fff;
}

/* Background decorations */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 179, 217, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.theme-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: var(--radius);
    border: 3px solid var(--pink);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.theme-btn {
    width: 45px;
    height: 45px;
    border: 3px solid var(--border);
    background: var(--card);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.theme-btn:hover,
.theme-btn.active {
    border-color: var(--pink-dark);
    color: var(--pink-dark);
    background: linear-gradient(135deg, #fff0f5, #ffd6e7);
    transform: scale(1.15) rotate(5deg);
}

.navbar {
    background: var(--card, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--border, var(--pink));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary, var(--pink-dark));
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🍭';
    font-size: 1.8rem;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s;
    background: var(--card-hover, var(--surface));
}

.nav-links a:hover {
    background: var(--gradient-1, var(--gradient-candy));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 179, 217, 0.3);
}

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--pink-dark);
}

.hero-content h1 span {
    background: var(--gradient-candy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header h1 {
    color: var(--pink-dark);
}

.page-header h1 span {
    background: var(--gradient-candy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-candy);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 179, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 179, 217, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink-dark);
    border: 3px solid var(--pink);
}

.btn-outline:hover {
    background: var(--pink);
    color: white;
}

.card {
    background: var(--card);
    border: 3px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink-dark);
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--pink-dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer {
    background: linear-gradient(135deg, #ffb3d9 0%, #d4a5ff 100%);
    color: white;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-section p {
    color: white;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: white;
    opacity: 0.8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    font-weight: 600;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--yellow);
    transform: scale(1.05) rotate(1deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    opacity: 0.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}