/* =========================================
   Sai Balaji Pavers - Custom Styles (Light Theme)
   ========================================= */

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

/* -- Custom scrollbar -- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E85D04;
}

/* -- Selection -- */
::selection {
    background: rgba(232, 93, 4, 0.2);
    color: #9A3412;
}

/* -- Nav links -- */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: color 0.3s ease;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E85D04;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover {
    color: #E85D04;
}
.nav-link:hover::after {
    width: 60%;
}
.nav-link.nav-active {
    color: #E85D04;
    font-weight: 600;
}
.nav-link.nav-active::after {
    width: 60%;
}

/* -- Navbar scroll state -- */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.navbar-scrolled #main-nav {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* -- Mobile nav links -- */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
    border-bottom: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
}
.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--delay, 0s);
}
.mobile-nav-link:hover {
    color: #E85D04;
    padding-left: 1rem;
}

/* -- Hamburger -- */
.hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    gap: 5px;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1E293B;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}
.hamburger-active .line-1 {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-active .line-2 {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-active .line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* -- Buttons -- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #E85D04, #D35400);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.25);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 4, 0.35);
}
.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: #FFFFFF;
    color: #1E293B;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1.5px solid #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover {
    border-color: #E85D04;
    color: #E85D04;
    background: #FFF7ED;
    transform: translateY(-2px);
}

/* -- Section heading badge -- */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C2410C;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* -- Footer links -- */
.footer-link {
    display: inline-flex;
    align-items: center;
    color: #64748B;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}
.footer-link:hover {
    color: #E85D04;
    padding-left: 0.5rem;
}

/* -- Scroll Reveal -- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-left] {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal-left].revealed {
    opacity: 1;
    transform: translateX(0);
}
[data-reveal-right] {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal-right].revealed {
    opacity: 1;
    transform: translateX(0);
}
[data-reveal-scale] {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal-scale].revealed {
    opacity: 1;
    transform: scale(1);
}

/* -- Concrete texture overlay for light mode -- */
.concrete-texture {
    position: relative;
}
.concrete-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2364748B' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* -- Hero paver grid pattern -- */
.hero-pattern, .paver-grid {
    background-image: 
        linear-gradient(rgba(232, 93, 4, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 93, 4, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* -- Cards in Light Mode -- */
.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(232, 93, 4, 0.2);
}

/* -- Image zoom -- */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.06);
}

/* -- Lightbox -- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}
.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-close:hover {
    background: #E85D04;
    transform: rotate(90deg);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-nav:hover {
    background: #E85D04;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* -- Product filter -- */
.filter-btn {
    padding: 0.5rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 500;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.filter-btn:hover {
    color: #E85D04;
    border-color: #E85D04;
    background: #FFF7ED;
}
.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #E85D04, #D35400);
    border-color: #E85D04;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
}

/* -- Gradient text for Light Theme -- */
.gradient-text {
    background: linear-gradient(135deg, #E85D04, #C2410C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Glow effects -- */
.glow-orange {
    box-shadow: 0 10px 25px rgba(232, 93, 4, 0.12);
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal], [data-reveal-left], [data-reveal-right], [data-reveal-scale] {
        opacity: 1 !important;
        transform: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
