/* Basic Resets & Smooth Scroll */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: #050814;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050814;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #D4AF37, #1e3a8a);
    border-radius: 0;
}

/* Text Gradients */
.text-gold-gradient {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism - Blue Tint */
.glass-blue {
    background: rgba(15, 28, 69, 0.25); /* Tinted with royal blue */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animated Silk Background - Blue & Gold */
.silk-bg {
    background: 
        radial-gradient(circle at 50% -20%, rgba(30, 58, 138, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(15, 28, 69, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, #050814 0%, #0a1024 100%);
    background-size: 200% 200%;
    animation: silkFlow 15s ease-in-out infinite;
}

@keyframes silkFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect for grids */
.in-view > * {
    transition-delay: 0.1s;
}

/* Nav Links */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #D4AF37;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scrolled state */
#navbar.scrolled {
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Gold Border Glow for Cards */
.gold-border-glow {
    position: relative;
}
.gold-border-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(45deg, transparent, #D4AF37, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.gold-border-glow:hover::before {
    opacity: 1;
}

/* Committee Card Custom */
.committee-card {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.committee-card:hover {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}
.committee-card h3 {
    transition: color 0.3s ease;
}
.committee-card:hover h3 {
    color: #D4AF37;
}

/* Resource Cards */
.resource-card {
    background: rgba(15, 28, 69, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: all 0.4s ease;
    display: block;
}
.resource-card:hover {
    background: rgba(30, 58, 138, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

/* Magnetic Button base */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.magnetic-btn:hover::before {
    transform: scaleX(1);
}

/* Modal */
#committee-modal {
    pointer-events: none;
}
#committee-modal.active {
    pointer-events: auto;
    opacity: 1;
}
#committee-modal.active #modal-content {
    transform: scale(1);
}
.modal-banner {
    height: 250px; /* Slightly taller for better image display */
    background-size: cover;
    background-position: center;
    position: relative;
}
.modal-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, #0a1024 100%);
}
