/* ========================================
   Adonys Glass Design & Insulation Services
   Custom Styles
======================================== */

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

/* ---------- Navbar Scroll State ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Hamburger animation */
#menu-btn.active #menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #menu-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}
#menu-btn.active #menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ---------- Hero Animations ---------- */
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Service Cards ---------- */
.service-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Selection Color ---------- */
::selection {
    background: rgba(196, 90, 110, 0.15);
    color: #7B2D3B;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F3;
}
::-webkit-scrollbar-thumb {
    background: #E89AAD;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C45A6E;
}

/* ---------- Focus Visible ---------- */
:focus-visible {
    outline: 2px solid #C45A6E;
    outline-offset: 2px;
}

/* ---------- Input Autofill ---------- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #4B5563 !important;
}

/* ---------- Subtle hover gradient on body ---------- */
body {
    background-image: radial-gradient(ellipse at top right, rgba(249, 228, 219, 0.3) 0%, transparent 50%),
                      radial-gradient(ellipse at bottom left, rgba(253, 240, 242, 0.4) 0%, transparent 50%);
    background-attachment: fixed;
}
