/* ✨ General Settings */

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

body {
    font-family: "Poppins", sans-serif;
    background: #011c16;
    color: #fff;
    overflow-x: hidden;
    text-align: center;
    scroll-behavior: smooth;
}


/* 🌈 Navbar */

header {
    background: linear-gradient(90deg, #00bcd4, #8e2de2, #ff69b4);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffeb3b;
    box-shadow: 0 0 10px #fff;
}


/* 🌠 Sections */

section {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}


/* Headings */

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00ffff, #00ff99, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: #00ffff;
}


/* Buttons */

.btn {
    display: inline-block;
    background: linear-gradient(90deg, #00ffff, #00ff99);
    color: #011c16;
    padding: 10px 25px;
    margin-top: 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff;
}


/* 🎓 Education Box */

.edu-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}


/* 🌟 Fade Animations */

.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease;
}

.fade-section.appear {
    opacity: 1;
    transform: translateY(0);
}


/* 🌌 Canvas Background */

canvas#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #001a12, #000);
}


/* 🌿 Footer */

footer {
    background: #022820;
    padding: 25px;
    color: #ccc;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}


/* 📱 Responsive */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    section h1 {
        font-size: 1.8rem;
    }
}


/* 🌈 Animated Rainbow Circular Gallery */

.circle-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.circle-gallery img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient( from 0deg, red, orange, yellow, green, cyan, blue, violet, red);
    animation: spin 18s linear infinite, borderFlow 5s linear infinite;
    transition: transform 0.6s, box-shadow 0.6s, animation-duration 0.4s;
}

.circle-gallery img:hover {
    transform: scale(1.15) rotate(10deg);
    animation-duration: 3s, 3s;
    /* speed up both rotations */
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
}


/* 🌀 Inner Spin (image content) */

.circle-gallery img::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}


/* 🌈 Rotating Gradient Border Animation */

@keyframes borderFlow {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }
}


/* 🌀 Base Spin Animation */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Responsive tweak */

@media (max-width: 768px) {
    .circle-gallery img {
        width: 140px;
        height: 140px;
    }
}