/* Bingbong fun and playful styles */
@font-face {
    font-family: myFirstFont;
    src: url(Atop.ttf);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #1abc9c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

/* Base styles for professional look */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1100px;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    background-color: transparent;
    transition: all 0.2s ease;
    display: inline-block;
}

.navbar a:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

body {
    --angle: 0deg;
    background-image: conic-gradient(from var(--angle), #ff69b4, #7a4a8e, #fcceff, #ff69b4);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    font-family: myFirstFont, "Comic Sans MS", "Comic Sans", cursive, sans-serif;
    color: #ffffff;
    text-align: center;
    font-size: 1.5em;
    text-shadow: 1px 1px 0px #ff00ff;
    animation: 10s spin linear infinite reverse;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px; /* ensure content isn't hidden under fixed navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

h1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    font-size: 3em;
    text-shadow: 3px 3px 10px #ff00ff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    animation: bounce 2s infinite;
}

.bounce_on {
    animation: bounce 2s infinite;
}

.bounce_off {
    animation: bounce 2s infinite reverse;
}

.box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hov:hover {
    transition: ease 1s;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.8);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

button {
    background-color: #ff00ff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease;
}

button:hover {
    background-color: #ff69b4;
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 0, 255, 0.5);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    margin: 20px auto;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 0, 255, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 0, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ff00ff;
    transform: scale(1.2);
    box-shadow: 0 0 8px #ff00ff;
}

@media (max-width: 600px) {
    .navbar {
        width: calc(100% - 24px);
        top: 12px;
        border-radius: 12px;
        padding: 8px 12px;
    }

    .navbar a {
        padding: 6px 10px;
        font-size: 0.95rem;
    }

    .container {
        padding-top: 80px;
    }
}
