/* ============================================
   Bloom Macomb — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Animations (Hero)
   ============================================ */

.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid #D4A017;
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: #D4A017;
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    opacity: 0.05;
}

.shape-circle-3 {
    width: 80px;
    height: 80px;
    border: 2px solid #fde047;
    border-radius: 50%;
    top: 30%;
    right: 35%;
    animation-delay: -10s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #D4A017;
    top: 15%;
    left: 5%;
    animation-delay: -3s;
    opacity: 0.06;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    border: 2px solid #fde047;
    top: 70%;
    left: 10%;
    animation-delay: -7s;
    transform: rotate(45deg);
}

.shape-diamond {
    width: 60px;
    height: 60px;
    background: #D4A017;
    top: 45%;
    left: 20%;
    animation-delay: -12s;
    opacity: 0.04;
    transform: rotate(45deg);
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement: content visible by default)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navbar
   ============================================ */

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-link {
    display: block;
}

/* ============================================
   Smooth Scroll Offset for Anchors
   ============================================ */

html {
    scroll-padding-top: 80px;
}

/* ============================================
   Selection Color
   ============================================ */

::selection {
    background: #D4A017;
    color: #0D1B2A;
}

/* ============================================
   Image Placeholder Fallback
   ============================================ */

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Focus Styles
   ============================================ */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
}
