/* ========================================
   Mobile Glass Master's — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

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

.geo-circle-1 {
    top: 5%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-circle-2 {
    top: 30%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 73, 62, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-circle-3 {
    bottom: 10%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-square-1 {
    top: 20%;
    left: 45%;
    width: 80px;
    height: 80px;
    background: rgba(128, 0, 32, 0.05);
    border-radius: 16px;
    transform: rotate(45deg);
}

.geo-diamond {
    bottom: 25%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: rgba(212, 73, 62, 0.08);
    border-radius: 12px;
    transform: rotate(30deg);
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: rgba(255, 251, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(128, 0, 32, 0.08);
}

#navbar.scrolled {
    background: rgba(255, 251, 245, 0.95);
    box-shadow: 0 4px 30px rgba(128, 0, 32, 0.08);
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========================================
   FAQ
   ======================================== */
.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.open {
    max-height: 300px;
}

/* ========================================
   Scroll Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

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

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

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

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(128, 0, 32, 0.15);
    color: #570015;
}
