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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f9f7;
    overflow-x: hidden;
}

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


/* Navbar */

header {
    background: linear-gradient(90deg, #388e3c, #4caf50, #81c784);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: 700;
    color: white;
    font-size: 1.4rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}

nav a:hover {
    opacity: .8;
    text-decoration: underline;
}


/* Section */

.section {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 1s ease-in-out;
}

.section.alt {
    background: #e8f5e9;
}

h1,
h2 {
    color: #1b5e20;
    margin-bottom: 10px;
}

p {
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
    margin-bottom: 20px;
}

.points {
    text-align: left;
    max-width: 700px;
    margin: auto;
}


/* Rainbow spinning gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    justify-items: center;
    margin-top: 30px;
}

.gallery img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: spin 20s linear infinite;
    transition: transform .4s, box-shadow .4s;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.gallery img:hover {
    transform: scale(1.1);
    animation: spin 5s linear infinite;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* Footer */

footer {
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: .9rem;
}