:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-light: #34d399;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --light: #f8fafc;
    --muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --shadow-glow: rgba(99, 102, 241, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-rainbow: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    --gradient-sky: linear-gradient(180deg, #0a1e4d 0%, #1a3a7a 25%, #2d5a9e 50%, #1a3a7a 75%, #0a1e4d 100%);
    --gradient-aurora: linear-gradient(90deg, rgba(54, 211, 153, 0.2) 0%, rgba(34, 197, 94, 0.3) 25%, rgba(6, 182, 212, 0.2) 50%, rgba(99, 102, 241, 0.3) 75%, rgba(139, 92, 246, 0.2) 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Malayalam', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, 
        #0a1e4d 0%, 
        #1a3a7a 20%, 
        #2d5a9e 40%, 
        #3d7aae 50%,
        #2d5a9e 60%,
        #1a3a7a 80%, 
        #0a1e4d 100%);
    background-attachment: fixed;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 100%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.main-navbar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
}

.main-navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navbar .navbar-brand {
    font-weight: 800;
    color: var(--light);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--light) 0%, rgba(248, 250, 252, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navbar .navbar-brand:hover {
    color: var(--secondary);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.main-navbar .nav-link {
    color: rgba(248, 250, 252, 0.9);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    margin: 0 0.25rem;
    border: 1px solid transparent;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--light);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 80%;
}

.hero {
    min-height: 100vh;
    background: var(--gradient-dark),
                url('https://images.unsplash.com/photo-1584551246679-0daf3d275d0f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.15) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(245, 158, 11, 0.15) 75%,
        rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    z-index: 2;
    max-width: 1570px;
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px var(--shadow-dark);
    background: linear-gradient(135deg, var(--light) 0%, rgba(248, 250, 252, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: rgba(248, 250, 252, 0.9);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 10px var(--shadow-dark);
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 3rem;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-hero:active {
    transform: translateY(-2px) scale(1.02);
}

.main-navbar .btn-outline-primary,
.main-navbar .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: var(--light);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.main-navbar .btn-outline-primary::before,
.main-navbar .btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.main-navbar .btn-outline-primary:hover::before,
.main-navbar .btn-outline-secondary:hover::before {
    left: 0;
}

.main-navbar .btn-outline-primary:hover,
.main-navbar .btn-outline-secondary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%);
    z-index: 10;
}

/* Section-specific backgrounds for visual separation */
#notice {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(30, 41, 59, 0.95) 25%,
        rgba(15, 23, 42, 0.92) 50%,
        rgba(30, 41, 59, 0.95) 75%,
        rgba(15, 23, 42, 0.92) 100%);
    position: relative;
    background-attachment: fixed;
}

#notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.4) 10%,
        rgba(99, 102, 241, 0.8) 50%,
        rgba(99, 102, 241, 0.4) 90%,
        transparent 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

#notice::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 50%,
        transparent 100%);
}

#bylaw {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.92) 0%,
        rgba(51, 65, 85, 0.95) 25%,
        rgba(30, 41, 59, 0.92) 50%,
        rgba(51, 65, 85, 0.95) 75%,
        rgba(30, 41, 59, 0.92) 100%);
    position: relative;
    background-attachment: fixed;
}

#bylaw::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.4) 10%,
        rgba(245, 158, 11, 0.8) 50%,
        rgba(245, 158, 11, 0.4) 90%,
        transparent 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

#bylaw::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.3) 50%,
        transparent 100%);
}

#committee {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.92) 0%,
        rgba(15, 23, 42, 0.95) 25%,
        rgba(51, 65, 85, 0.92) 50%,
        rgba(15, 23, 42, 0.95) 75%,
        rgba(51, 65, 85, 0.92) 100%);
    position: relative;
    background-attachment: fixed;
}

#committee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(6, 182, 212, 0.4) 10%,
        rgba(6, 182, 212, 0.8) 50%,
        rgba(6, 182, 212, 0.4) 90%,
        transparent 100%);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

#committee::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(6, 182, 212, 0.3) 50%,
        transparent 100%);
}

#prayer {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(30, 41, 59, 0.95) 25%,
        rgba(15, 23, 42, 0.92) 50%,
        rgba(30, 41, 59, 0.95) 75%,
        rgba(15, 23, 42, 0.92) 100%);
    position: relative;
    background-attachment: fixed;
}

#prayer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34, 197, 94, 0.4) 10%,
        rgba(34, 197, 94, 0.8) 50%,
        rgba(34, 197, 94, 0.4) 90%,
        transparent 100%);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

#prayer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34, 197, 94, 0.3) 50%,
        transparent 100%);
}

#contact {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.92) 0%,
        rgba(15, 23, 42, 0.95) 25%,
        rgba(30, 41, 59, 0.92) 50%,
        rgba(15, 23, 42, 0.95) 75%,
        rgba(30, 41, 59, 0.92) 100%);
    position: relative;
    background-attachment: fixed;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.4) 10%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(139, 92, 246, 0.4) 90%,
        transparent 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

#contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.3) 50%,
        transparent 100%);
}

/* Add subtle background patterns for visual interest */
#notice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

#bylaw::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

#committee::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(34, 197, 94, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

#prayer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

#contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Ensure section content appears above backgrounds */
section .container,
section .text-center,
section .row {
    position: relative;
    z-index: 2;
}

/* Add section separators for better visual hierarchy */
section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    border-radius: 1px;
}

/* Add subtle section hover effects for interactivity */
section:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

section:hover::after {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Section-specific corner decorations */
#notice::before {
    border-color: rgba(99, 102, 241, 0.3);
}

#notice::after {
    border-color: rgba(99, 102, 241, 0.3);
}

#bylaw::before {
    border-color: rgba(245, 158, 11, 0.3);
}

#bylaw::after {
    border-color: rgba(245, 158, 11, 0.3);
}

#committee::before {
    border-color: rgba(6, 182, 212, 0.3);
}

#committee::after {
    border-color: rgba(6, 182, 212, 0.3);
}

#prayer::before {
    border-color: rgba(34, 197, 94, 0.3);
}

#prayer::after {
    border-color: rgba(34, 197, 94, 0.3);
}

#contact::before {
    border-color: rgba(139, 92, 246, 0.3);
}

#contact::after {
    border-color: rgba(139, 92, 246, 0.3);
}

.section-title {
    color: var(--light);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--light) 0%, rgba(248, 250, 252, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary) 50%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--secondary);
    animation: slideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.3),
                    0 0 20px rgba(99, 102, 241, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
                    0 0 40px rgba(99, 102, 241, 0.2);
    }
}

@keyframes slideIn {
    0% {
        width: 60px;
        opacity: 0.5;
    }
    50% {
        width: 100px;
        opacity: 1;
    }
    100% {
        width: 60px;
        opacity: 0.5;
    }
}

.section-subtitle {
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 3rem;
    margin-top: 3rem;
    font-weight: 400;
    font-size: 1.1rem;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.card-notice,
.card-board {
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--shadow-dark);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
}

.card-notice::before,
.card-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-notice:hover,
.card-board:hover {
    transform: perspective(1000px) rotateX(-5deg) translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-notice::before,
.card-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-notice:hover::before,
.card-board:hover::before {
    left: 100%;
}

.card-notice:hover,
.card-board:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-notice .date,
.card-board .position {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-notice h5,
.card-board h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-notice p,
.card-board p {
    color: rgba(248, 250, 252, 0.98);
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.avatar-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.avatar-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.avatar-icon i {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-dark);
    filter: saturate(1.2);
}

.footer-main {
    background: var(--gradient-dark);
    color: rgba(248, 250, 252, 0.9);
    padding: 80px 0 50px;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.footer-main h6 {
    color: var(--light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-main a {
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    position: relative;
}

.footer-main a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-main a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-main a:hover::before {
    width: 100%;
}

.footer-bottom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(248, 250, 252, 0.7);
    padding: 25px 20px;
    font-size: 0.95rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-bottom a:hover {
    color: var(--light);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 3rem 0;
    }

    section {
        padding: 70px 0;
    }

    .main-navbar {
        padding: 0.8rem 1rem;
    }

    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.animate-fade {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#prayerCards .col-md-4:nth-child(1) .card-board { animation-delay: 0.1s; }
#prayerCards .col-md-4:nth-child(2) .card-board { animation-delay: 0.2s; }
#prayerCards .col-md-4:nth-child(3) .card-board { animation-delay: 0.3s; }
#prayerCards .col-md-4:nth-child(4) .card-board { animation-delay: 0.4s; }
#prayerCards .col-md-4:nth-child(5) .card-board { animation-delay: 0.5s; }
#prayerCards .col-md-4:nth-child(6) .card-board { animation-delay: 0.6s; }
#prayerCards .col-md-4:nth-child(7) .card-board { animation-delay: 0.7s; }
#prayerCards .col-md-4:nth-child(8) .card-board { animation-delay: 0.8s; }
#prayerCards .col-md-4:nth-child(9) .card-board { animation-delay: 0.9s; }

.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== SKY COMPONENTS ===== */

/* Twinkling Stars */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s infinite;
}

.star:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.star:nth-child(2) { top: 15%; left: 12%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 20%; left: 25%; animation-delay: 1s; }
.star:nth-child(4) { top: 8%; left: 35%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 25%; left: 50%; animation-delay: 2s; }
.star:nth-child(6) { top: 12%; left: 65%; animation-delay: 0.8s; }
.star:nth-child(7) { top: 18%; left: 75%; animation-delay: 1.2s; }
.star:nth-child(8) { top: 22%; left: 85%; animation-delay: 1.8s; }
.star:nth-child(9) { top: 5%; left: 15%; animation-delay: 0.3s; }
.star:nth-child(10) { top: 30%; left: 40%; animation-delay: 1.4s; }
.star:nth-child(11) { top: 8%; left: 90%; animation-delay: 0.7s; }
.star:nth-child(12) { top: 28%; left: 20%; animation-delay: 1.6s; }
.star:nth-child(13) { top: 12%; left: 80%; animation-delay: 0.9s; }
.star:nth-child(14) { top: 32%; left: 60%; animation-delay: 2.1s; }
.star:nth-child(15) { top: 6%; left: 70%; animation-delay: 1.1s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Floating Clouds */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    opacity: 0.3;
    filter: blur(40px);
    animation: drift 60s linear infinite;
    z-index: 2;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.cloud::before {
    width: 100px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud::after {
    width: 120px;
    height: 50px;
    top: 10px;
    left: -30px;
}

.cloud-1 {
    top: 10%;
    left: -200px;
    width: 200px;
    height: 60px;
    animation-duration: 80s;
}

.cloud-2 {
    top: 25%;
    right: -250px;
    left: auto;
    width: 250px;
    height: 80px;
    animation-duration: 100s;
    animation-direction: reverse;
    opacity: 0.2;
}

.cloud-3 {
    top: 40%;
    left: -300px;
    width: 300px;
    height: 100px;
    animation-duration: 120s;
    opacity: 0.15;
}

@keyframes drift {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 400px));
    }
}

/* Aurora Effect */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: var(--gradient-aurora);
    opacity: 0.15;
    animation: auroraWave 8s ease-in-out infinite;
}

@keyframes auroraWave {
    0%, 100% {
        opacity: 0.1;
        filter: blur(60px);
    }
    50% {
        opacity: 0.25;
        filter: blur(80px);
    }
}

/* Moon Element */
.moon {
    position: fixed;
    top: 5%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 200, 0.4));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 200, 0.4),
                0 0 60px rgba(99, 102, 241, 0.2);
    pointer-events: none;
    z-index: 1;
    animation: moonGlow 4s ease-in-out infinite;
}

.moon::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    box-shadow: 
        30px 10px 0 -5px rgba(0, 0, 0, 0.1),
        25px 35px 0 -8px rgba(0, 0, 0, 0.12),
        10px 45px 0 -5px rgba(0, 0, 0, 0.1);
}

@keyframes moonGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 255, 200, 0.4),
                    0 0 60px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 200, 0.6),
                    0 0 80px rgba(99, 102, 241, 0.3);
    }
}

/* Add decorative geometric shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

.shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    clip-path: circle(50% at 50% 50%);
    animation-delay: 2s;
}

.shape:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: 4s;
}

.shape:nth-child(4) {
    bottom: 20%;
    right: 25%;
    width: 35px;
    height: 35px;
    background: var(--gradient-success);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 6s;
}

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

/* Floating particles for visual appeal */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-rainbow);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.floating-particles .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-particles .particle:nth-child(2) {
    top: 40%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.floating-particles .particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.floating-particles .particle:nth-child(4) {
    top: 30%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.floating-particles .particle:nth-child(5) {
    top: 70%;
    right: 25%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.floating-particles .particle:nth-child(6) {
    top: 50%;
    right: 40%;
    animation-delay: 5s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Contact section icon styling */
.contact-icon {
    font-size: 1.3rem;
    margin-right: 0.75rem;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-icon:hover {
    color: var(--accent-light);
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.6));
}

.contact-info {
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-info .d-block {
    display: flex !important;
    align-items: center;
    margin-bottom: 0.5rem;
}

#contact .card-notice .contact-icon {
    color: var(--secondary) !important;
}

#contact .card-notice {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 2px solid var(--glass-border);
}

#contact .card-notice h5 {
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

#contact .card-notice p {
    color: rgba(248, 250, 252, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.7;
}

#contact .card-notice strong {
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Override any remaining Bootstrap white backgrounds */
.bg-white {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.bg-white * {
    color: var(--light) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.bg-white h5,
.bg-white strong {
    color: var(--light) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}
