/* Alnilam Premium Aesthetics */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
    background: rgba(11, 11, 11, 0.8);
    border: 1px solid rgba(200, 155, 31, 0.2);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(135deg, #C89B1F 0%, #E5C058 50%, #9A7512 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #0B0B0B;
    background: linear-gradient(135deg, #C89B1F 0%, #D4AF37 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(200, 155, 31, 0.39);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 155, 31, 0.5);
    background: linear-gradient(135deg, #D4AF37 0%, #C89B1F 100%);
}

.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #C89B1F;
    background: transparent;
    border: 2px solid #C89B1F;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: rgba(200, 155, 31, 0.1);
    transform: translateY(-2px);
}

/* Micro animations */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

/* Premium Image reveal */
.img-reveal-container {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.img-reveal-container img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-reveal-container:hover img {
    transform: scale(1.05);
}

/* Decorative Gold Line */
.gold-line-anim {
    height: 3px;
    background: #C89B1F;
    width: 0;
    transition: width 0.5s ease-out;
}

.group:hover .gold-line-anim {
    width: 3rem;
}

/* Section padding utilities */
.py-premium {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .py-premium {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* =========================================================================
   NEW FEATURES
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. Alnilam Stars Animation
   --------------------------------------------------------------------- */

/*
 * Place an empty <div class="alnilam-stars"></div> inside any dark / black
 * background section. The parent must have position: relative (or absolute/fixed).
 * Two pseudo-element layers create gold and white twinkling star dots.
 */
.alnilam-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.alnilam-stars::before,
.alnilam-stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 25% 40%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 42% 12%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 55% 65%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 68% 28%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.4px 1.4px at 78% 80%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 88% 48%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.3px 1.3px at 15% 72%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 35% 88%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 5%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 62% 52%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 92% 18%, #ffffff 50%, transparent 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: twinkle 4s ease-in-out infinite;
}

.alnilam-stars::after {
    background-image:
        radial-gradient(1.2px 1.2px at 5% 55%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 18% 30%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 32% 72%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 48% 38%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.3px 1.3px at 60% 85%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 72% 10%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.4px 1.4px at 83% 60%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 95% 42%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 22% 92%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 40% 22%, #C89B1F 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 48%, #ffffff 50%, transparent 100%),
        radial-gradient(1px 1px at 58% 8%, #C89B1F 50%, transparent 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: twinkle 5s ease-in-out 1.5s infinite;
}

/* ---------------------------------------------------------------------
   2. White Background Subtle Animated Design
   --------------------------------------------------------------------- */

/*
 * Apply .white-bg-animated to any white-background section for a subtle
 * living feel. The parent needs position: relative and overflow: hidden.
 */
.white-bg-animated {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* Faint gold geometric pattern */
.white-bg-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(30deg, #C89B1F 12%, transparent 12.5%, transparent 87%, #C89B1F 87.5%, #C89B1F),
        linear-gradient(150deg, #C89B1F 12%, transparent 12.5%, transparent 87%, #C89B1F 87.5%, #C89B1F),
        linear-gradient(30deg, #C89B1F 12%, transparent 12.5%, transparent 87%, #C89B1F 87.5%, #C89B1F),
        linear-gradient(150deg, #C89B1F 12%, transparent 12.5%, transparent 87%, #C89B1F 87.5%, #C89B1F),
        linear-gradient(60deg, #C89B1F77 25%, transparent 25.5%, transparent 75%, #C89B1F77 75%, #C89B1F77),
        linear-gradient(60deg, #C89B1F77 25%, transparent 25.5%, transparent 75%, #C89B1F77 75%, #C89B1F77);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* Gentle floating gold gradient */
.white-bg-animated::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.045;
    background: radial-gradient(ellipse at 30% 50%, rgba(200, 155, 31, 0.5) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(200, 155, 31, 0.3) 0%, transparent 55%);
    animation: float 15s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
   3. Glassmorphism Navbar
   --------------------------------------------------------------------- */
.glass-navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 155, 31, 0.15);
}

/* ---------------------------------------------------------------------
   4. Glass Card (for white backgrounds)
   --------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(200, 155, 31, 0.18);
    border-radius: 12px;
    box-shadow: 0 4px 24px 0 rgba(200, 155, 31, 0.06),
                0 1.5px 6px 0 rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px 0 rgba(200, 155, 31, 0.12),
                0 2px 8px 0 rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   5. Keyframes
   --------------------------------------------------------------------- */

/* Twinkle – used by .alnilam-stars */
@keyframes twinkle {
    0%   { opacity: 0.3; }
    50%  { opacity: 1;   }
    100% { opacity: 0.3; }
}

/* Float – used by .white-bg-animated::after */
@keyframes float {
    0%   { transform: translate(0, 0)       rotate(0deg);   }
    33%  { transform: translate(3%, -2%)     rotate(1deg);   }
    66%  { transform: translate(-2%, 3%)     rotate(-1deg);  }
    100% { transform: translate(0, 0)        rotate(0deg);   }
}
