/* Custom styles for Double J Upholstery */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fefdf8;
    color: #064e3b;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

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

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: -80px;
    animation: float 25s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(16, 185, 129, 0.08);
    top: 35%;
    left: 5%;
    animation: rotate 30s linear infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(110, 231, 183, 0.1);
    border: 2px solid rgba(110, 231, 183, 0.2);
    border-radius: 24px;
    top: 60%;
    right: 8%;
    transform: rotate(15deg);
    animation: float 18s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(52, 211, 153, 0.08);
    border-radius: 16px;
    top: 15%;
    left: 10%;
    transform: rotate(-10deg);
    animation: float 22s ease-in-out infinite reverse;
}

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

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

/* Navbar */
#navbar {
    background: rgba(254, 253, 248, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(110, 231, 183, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(to right, #059669, transparent);
    display: none;
}

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.12);
}

/* Scroll Reveal Animations */
/* These are progressive enhancement — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #a7f3d0;
    color: #064e3b;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}
