
/* General Styling */
:root {
    --primary-color: #a32a2a; /* Deep Red from logo */
    --secondary-color: #ffffff;
    --accent-color: #f7d754; /* Gold from logo */
    --glow-color: rgba(247, 215, 84, 0.7);
    --text-color: #333;
    --bg-color: #fdfaf5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --noise-texture: url('data:image/svg+xml;charset=UTF-8,%3csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3e%3cfilter id="noise"%3e%3cfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3e%3c/filter%3e%3crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3e%3c/svg%3e');

    /* Icon Colors */
    --icon-home: #007aff;
    --icon-register: #9b59b6;
    --icon-gallery: #e67e22;
    --icon-info: #2c3e50;

    /* Rainbow Glow Colors */
    --glow-c1: #ff6b6b;
    --glow-c2: #feca57;
    --glow-c3: #48dbfb;
    --glow-c4: #ff9ff3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding-bottom: 90px;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: var(--noise-texture);
    scroll-behavior: smooth;
}

/* Particle Container */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content but above body background */
}

/* Content Sections */
.top-bar, header, main, footer {
    position: relative;
    z-index: 2;
}

/* Hidden YouTube Player */
#player {
    display: none;
}

/* Top Bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

#rotating-text {
    margin: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#rotating-text.fade-out { opacity: 0; }

/* --- Header with Slideshow --- */
header {
    position: relative;
    text-align: center;
    height: 300px; /* Increased height for 3 logos */
    overflow: hidden;
    color: white;
}

.header-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.header-slideshow img.active {
    opacity: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

/* --- Logo Container in Header --- */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo-main, .logo-side {
    border-radius: 50%;
    border: 2px solid white;
    animation: logo-glow 4s infinite linear;
}

.logo-main {
    width: 90px;
    height: 90px;
}

.logo-side {
    width: 60px;
    height: 60px;
    opacity: 0.9;
}

.header-title {
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
    margin: 0;
}

.tagline {
    font-size: 1.1em;
    margin-top: 5px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

/* --- Info Cards Section --- */
#info-cards {
    padding: 3rem 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.info-card:hover i {
    animation: icon-bounce-strong 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.info-card.secondary h4 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* --- Keyframes for Animations --- */
@keyframes icon-bounce-strong {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/image_2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

#hero .hero-content { max-width: 800px; }
#hero h1 { font-size: 3.5rem; font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
#hero p { font-size: 1.2rem; margin-bottom: 2rem; }

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.cta-button:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Gallery Section */
#gallery { padding: 3rem 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { overflow: hidden; border-radius: 15px; box-shadow: 0 5px 15px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 12px 25px var(--shadow-color); }
.gallery-item:hover img { transform: scale(1.05); }

/* Dock Navigation */
.dock { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px) saturate(180%); padding: 5px; border-radius: 18px; box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.15); height: 52px; gap: 7px; z-index: 1001; }
.dock a { font-size: 20px; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1); text-decoration: none; }
#dock-home i { color: var(--icon-home); }
#dock-register i { color: var(--icon-register); }
#dock-gallery i { color: var(--icon-gallery); }
#dock-info i { color: var(--icon-info); }
@keyframes jiggle { 0%, 100% { transform: scale(1.1) rotate(-3deg); } 50% { transform: scale(1.1) rotate(3deg); } }
.dock a:not(.dock-logo):hover { animation: jiggle 0.3s infinite; transform-origin: center; background-color: rgba(0, 0, 0, 0.05); }
.dock-logo { padding: 0; width: 52px !important; height: 52px !important; border-radius: 50% !important; background: var(--secondary-color); transition: transform 0.2s ease; animation: logo-glow 4s infinite linear; }
.dock-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dock-logo:hover { transform: scale(1.15); animation-play-state: paused; }

/* --- Shared Keyframes --- */
@keyframes logo-glow {
    0%   { box-shadow: 0 0 12px 3px var(--glow-c1); }
    25%  { box-shadow: 0 0 20px 6px var(--glow-c2); }
    50%  { box-shadow: 0 0 12px 3px var(--glow-c3); }
    75%  { box-shadow: 0 0 20px 6px var(--glow-c4); }
    100% { box-shadow: 0 0 12px 3px var(--glow-c1); }
}

/* Floating Controls */
.floating-controls { position: fixed; bottom: 90px; right: 25px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
#music-toggle, .floating-chat { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: transform 0.2s ease, box-shadow 0.2s ease; }
#music-toggle { background: #ff6b81; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 107, 129, 0.4); }
#music-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(255, 107, 129, 0.6); }
.floating-chat { background: linear-gradient(45deg, #0084ff, #00c6ff); font-size: 30px; text-decoration: none; box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4); }
.floating-chat:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 132, 255, 0.6); }

/* Sections */
section { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; text-align: center; }
section h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 2rem; }

/* Footer */
footer { background: #f0e6d2; color: var(--text-color); padding: 2rem; text-align: center; }
.social-links a { color: var(--primary-color); font-size: 1.5rem; margin: 0 10px; transition: color 0.3s; }
.social-links a:hover { color: var(--accent-color); }

/* --- Responsive Design --- */
@media (max-width: 600px) {
    header { height: 260px; }

    .logo-main {
        width: 70px;
        height: 70px;
    }

    .logo-side {
        width: 50px;
        height: 50px;
    }

    .header-title { font-size: 1.6em; }
    .tagline { font-size: 0.9em; }
    #hero h1 { font-size: 2.5rem; }
    .dock { width: 95%; }
}
