/* ============================================
   JMP Contractors - Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050d1e;
    color: #d0dce8;
}

/* ============================================
   Geometric Background Shapes (Hero)
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.geo-circle-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-square-1 {
    top: 25%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: rgba(34, 197, 94, 0.08);
    border: 2px solid rgba(34, 197, 94, 0.2);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    bottom: 20%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(34, 197, 94, 0.06);
    animation: float 7s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(30, 77, 142, 0.2);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
}

.geo-dots {
    top: 40%;
    right: 25%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(34, 197, 94, 0.4) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #22c55e;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 80%;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ============================================
   Project Cards
   ============================================ */
.project-card {
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.project-card:hover::after {
    border-color: rgba(34, 197, 94, 0.4);
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #0a1a3c;
    color: #d0dce8;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #ffffff;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050d1e;
}

::-webkit-scrollbar-thumb {
    background: #1e4d8e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement - only apply with JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-left.hidden-reveal {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-right.hidden-reveal {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Fallback for no-JS: ensure content is always visible */
.no-js .reveal,
.no-js .reveal-left,
.no-js .reveal-right {
    opacity: 1 !important;
    transform: none !important;
}
