/* Custom styles for Nova Remodeling */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) !important;
}

.nav-scrolled .nav-text-color {
    color: #1e293b !important;
}

.nav-scrolled .nav-link {
    color: #334155 !important;
}

.nav-scrolled .menu-line {
    background: #1e293b !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 24px;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.06);
    border-radius: 16px;
    bottom: 20%;
    left: 15%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(20, 184, 166, 0.06);
    top: 60%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.geo-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(20, 184, 166, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 20%;
    left: 15%;
    opacity: 0.6;
    animation: float 7s ease-in-out infinite reverse;
}

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

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-reveal hidden state (progressive enhancement - hidden by default, shown via JS) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For users who prefer reduced motion, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hero image hover effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #0f172a;
}

/* Mobile menu animation */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6 !important;
}

/* Project gallery hover */
.group:hover img {
    transform: scale(1.05);
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}
