/* --- Global Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Carattere&family=Nunito+Sans:wght@200;300;400;500;600;700&display=swap');

:root {
    --light-purple: #E6E0F8;
    --dark-text: #333;
    --background-color: #FFFFFF;
}

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

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}

header::after {
    content: '';
    position: absolute;
    bottom: -30px; /* Extend below the header */
    left: 0;
    width: 100%;
    height: 30px; /* Height of the gradient transition */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none; /* Don't interfere with clicking */
}

.logo {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(-5deg);
}

nav {
    width: 100%;
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    position: absolute;
    padding-bottom: 5px;
    top: 50%;
    transform: translateY(-50%);
}

nav a:first-child {
    right: 4rem;
    transform: translateY(-50%);
}

nav a:last-child {
    right: 4rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--light-purple);
    transition: width 0.3s ease-in-out;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active::after {
    background-color: var(--light-purple);
}

main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
}

/* --- Footer --- */
footer {
    padding: 1rem;
    margin-top: auto;
    width: 100%;
    background-color: transparent;
}

footer a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}