/* assets/css/custom.css */
/* Premium dark-mode design system for Kalaamanjari 2026 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(18, 20, 29, 0.7);
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --secondary: #00f2fe;
    --secondary-glow: rgba(0, 242, 254, 0.3);
    --accent: #ff007f;
    --text-main: #f3f4f6;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.08);
}

.text-muted {
    color: var(--text-muted) !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    background-color: var(--bg-dark);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    position: relative;
}

/* Background blob decorations with color-shifting and pulsing animation */
body::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-blob-1 15s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-blob-2 18s ease-in-out infinite alternate;
}

@keyframes pulse-blob-1 {
    0% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: translate(60px, 40px) scale(1.15);
        filter: hue-rotate(45deg);
    }
    100% {
        transform: translate(-30px, 80px) scale(0.9);
        filter: hue-rotate(-30deg);
    }
}

@keyframes pulse-blob-2 {
    0% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: translate(-80px, -30px) scale(0.9);
        filter: hue-rotate(-60deg);
    }
    100% {
        transform: translate(30px, -60px) scale(1.1);
        filter: hue-rotate(30deg);
    }
}

/* Glassmorphic Navigation Bar */
.navbar-glass {
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-glass .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-glass .nav-link {
    color: var(--text-main);
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
    color: var(--secondary) !important;
}

/* Hero Intro Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px 0;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    width: 700px;
    height: 900px;
    margin-left: -350px;
    background: radial-gradient(ellipse at top center, rgba(0, 242, 254, 0.3) 0%, rgba(0, 102, 255, 0.1) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    transform-origin: top center;
    animation: swing-light 6s ease-in-out infinite alternate;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

#hero-fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@keyframes swing-light {
    0% {
        transform: rotate(-25deg);
    }
    100% {
        transform: rotate(25deg);
    }
}

.hero-logo {
    filter: drop-shadow(0 0 25px var(--primary-glow));
    max-width: 260px;
    animation: float 4s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent), var(--secondary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Countdown Grid */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.countdown-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4);
}

.countdown-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.countdown-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

/* Cards (Registration) */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.event-card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 60%; /* Aspect Ratio */
}

.event-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover img {
    transform: scale(1.08);
}

.event-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* Modal Styling */
.modal-content-glass {
    background: rgba(15, 17, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    color: var(--text-main);
}

.modal-header-glass {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-title-glass {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body-glass {
    padding: 24px;
}

.modal-footer-glass {
    border-top: 1px solid var(--border-color);
    padding: 15px 24px;
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main) !important;
    padding: 11px 15px;
    transition: all 0.3s ease;
}

.form-control-glass::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
    outline: none;
}

select.form-control-glass option {
    background-color: #ffffff;
    color: #12141d;
}

/* Custom form labels */
.form-label-glass {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Rules Section List styling */
.rules-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    border-radius: 8px;
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rule-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-name i {
    color: var(--secondary);
}

/* Gallery Lightbox Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '\f002';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(138, 43, 226, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Footer style */
footer {
    background: rgba(9, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    color: var(--text-muted);
}

/* SweetAlert customization placeholder override if loaded */
.swal2-popup {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 16px !important;
}
.swal2-title, .swal2-content, .swal2-html-container {
    color: var(--text-main) !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    body::before, body::after {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        overflow: hidden;
    }
}

/* Key Info cards transitions */
.transition-hover {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4) !important;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}
