/* Custom styles for Campus Towers Apartments */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #e2a83a 0%, #d4901e 50%, #b87214 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer on gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(4, 10, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040a14;
}
::-webkit-scrollbar-thumb {
    background: #1a3656;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4901e;
}

/* Hero parallax feel */
#hero {
    perspective: 1000px;
}

/* Card hover lift */
.reveal:hover {
    transform: translateY(-4px);
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4901e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(212, 144, 30, 0.3);
    color: #fff;
}

/* Map dark theme override */
iframe[title="Campus Towers location map"] {
    border-radius: 0 0 1rem 1rem;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold accent line animation */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}
