/* ============================================
   FOOTER STYLES
   ============================================ */

/* Footer container */
footer {
    position: relative !important;
    background-color: #0a0a0a !important; /* neutral-950 */
    color: #f5f5f5 !important; /* neutral-100 */
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
    margin-top: 0 !important;
}

/* Remove any overlay pseudo-elements from footer itself */
footer::before,
footer::after {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

@media (min-width: 768px) {
    footer {
        padding-top: 2rem !important;
    }
}

@media (min-width: 1024px) {
    footer {
        padding-top: 2rem !important;
    }
}

/* Footer silhouette wrapper - Div 1: Separate element above footer */
.footer-silhouette-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 13rem !important;
    pointer-events: none !important;
    margin-bottom: -2rem !important; /* Negative margin to overlap with footer */
    padding: 0 !important;
    z-index: 0 !important; /* Lower z-index so footer content appears above */
    /* Background image properties - set via inline style */
    background-repeat: repeat-x !important; /* Repeat horizontally */
    background-position: center bottom !important;
    background-size: auto 100% !important; /* Auto width, full height */
    /* White background to match contact section above and prevent dark footer showing through */
    background-color: #ffffff !important; /* White matches contact section - prevents dark overlay */
    /* Remove any overlay effects */
    opacity: 1 !important;
    /* Try brightening filter to counteract any dark overlay */
    filter: brightness(1.2) contrast(1.1) !important;
    -webkit-filter: brightness(1.2) contrast(1.1) !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important; /* Create new stacking context */
    will-change: auto !important;
    /* Ensure no pseudo-elements create overlays */
    /* Force background-blend-mode to prevent darkening */
    background-blend-mode: normal !important;
}

/* Use ::before to add white background layer behind image to prevent dark overlay */
.footer-silhouette-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ffffff !important; /* White background to prevent dark footer showing through */
    z-index: -1 !important; /* Behind the background image */
    pointer-events: none !important;
}

/* Remove any pseudo-element overlays - AGGRESSIVE removal */
.footer-silhouette-wrapper::after,
footer .footer-silhouette-wrapper::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
    position: static !important;
}

/* Check if footer itself has overlay */
footer::before {
    display: none !important;
    content: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* Ensure footer content appears above silhouette */
footer .relative.z-10 {
    position: relative !important;
    z-index: 10 !important; /* Higher than silhouette (z-index: 1) so content appears above */
}

/* Add padding to footer items */
footer .container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

footer .grid {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

footer nav {
    padding: 0.5rem 0 !important;
}

footer .grid > div {
    padding: 0.25rem 0 !important;
}

/* Force no overlay from any parent elements */
footer > *:not(.footer-silhouette-wrapper) {
    z-index: auto !important;
}

@media (min-width: 768px) {
    .footer-silhouette-wrapper {
        height: 15rem !important; /* Increased by ~15% from 13rem */
        margin-bottom: -3rem !important; /* Larger negative margin for bigger height */
    }
}

@media (min-width: 1024px) {
    .footer-silhouette-wrapper {
        height: 17rem !important; /* Increased by ~13% from 15rem */
        margin-bottom: -4rem !important; /* Larger negative margin for bigger height */
    }
}

/* Remove any pseudo-element overlays on silhouette */
.footer-silhouette-wrapper::after,
.footer-silhouette-wrapper::before,
.footer-silhouette-img::after,
.footer-silhouette-img::before {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

footer .grid {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

footer nav,
footer > div > div {
    padding: 0.5rem 0 !important;
}

footer .grid > div {
    padding: 0.25rem 0 !important;
}

/* Logo glow effect (enhanced) */
footer .logo-wrapper {
    position: relative;
    display: inline-block;
}

footer .logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -1.5rem;
    background: radial-gradient(circle, rgba(208, 168, 67, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

footer .logo-wrapper:hover .animated-logo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Text color styling */
footer .text-neutral-100 {
    color: #f5f5f5 !important;
}

footer .text-neutral-400 {
    color: #a3a3a3 !important;
}

footer .text-neutral-300 {
    color: #d4d4d4 !important;
}

footer .text-neutral-500 {
    color: #737373 !important;
}

/* Accent color */
footer .text-accent,
footer .text-\[\#D0A843\] {
    color: #D0A843 !important;
}

footer .hover\:text-accent:hover {
    color: #D0A843 !important;
}

/* Remove underlines from footer links */
footer a {
    text-decoration: none !important;
    transition: color 0.2s ease;
}

/* Footer menu styling */
footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav li {
    margin-bottom: 0.5rem;
}

/* Footer grid spacing */
footer .grid {
    margin-bottom: 2.5rem;
}

/* Footer bottom section */
footer .border-t {
    border-top: 1px solid rgba(38, 38, 38, 0.6); /* neutral-800/60 */
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

/* Footer bottom text styling */
footer .border-t p {
    color: #737373 !important; /* neutral-500 */
    font-size: 0.75rem !important;
    line-height: 1.5;
    margin: 0;
}

footer .border-t p + p {
    margin-top: 0.5rem;
}

/* Developer link styling */
footer .hover\:underline {
    text-decoration: none !important;
}

footer .hover\:underline:hover {
    text-decoration: underline !important;
}

/* Ensure proper text alignment */
footer .text-center {
    text-align: center;
}

/* Space utilities */
footer .space-y-2 > * + * {
    margin-top: 0.5rem;
}

footer .space-y-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer .mb-3 {
    margin-bottom: 0.75rem;
}

footer .mb-4 {
    margin-bottom: 1rem;
}

footer .mt-3 {
    margin-top: 0.75rem;
}

/* Container width */
footer .container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    footer {
        padding-top: 4rem !important;
    }
}

/* Ensure smooth transition from contact section to footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: transparent;
}