/* ===== Custom Styles for Rigo's Upholstery ===== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navbar ===== */
.nav-text-color {
    color: #0a1628;
}

#navbar.scrolled .nav-text-color {
    color: #0a1628;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#navbar:not(.scrolled) .nav-text-color {
    color: #ffffff;
}

/* ===== Hero Geometric Shapes ===== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    border: 2px solid rgba(212, 160, 23, 0.12);
    border-radius: 50%;
    top: -200px;
    right: -150px;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(212, 160, 23, 0.08);
    border-radius: 50%;
    bottom: 100px;
    right: 30%;
}

.hero-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(212, 160, 23, 0.06);
    border-radius: 20px;
    top: 30%;
    right: 5%;
    transform: rotate(45deg);
}

.hero-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(212, 160, 23, 0.05);
    bottom: 20%;
    left: 5%;
    transform: rotate(-15deg);
}

.hero-line-1 {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(212, 160, 23, 0.2), transparent);
    top: 40%;
    left: 0;
}

.hero-line-2 {
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(212, 160, 23, 0.15), transparent);
    bottom: 30%;
    right: 0;
}

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

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    display: block;
    font-size: 1.1rem;
}

#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Custom Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== Smooth Focus Styles ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

/* ===== Button Hover Lift ===== */
a:hover,
button:hover {
    transform: translateY(-1px);
}

a:active,
button:active {
    transform: translateY(0);
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #0a1628;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e8b828;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hero-circle-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -80px;
    }

    .hero-circle-2 {
        width: 150px;
        height: 150px;
    }

    .hero-square-1 {
        width: 60px;
        height: 60px;
    }

    .hero-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid rgba(212, 160, 23, 0.05);
    }

    .hero-line-1,
    .hero-line-2 {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .floating-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
