/* ============================================
   Lakshmana Katuri — Professional Services
   Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #e8682a;
    color: #fff;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s ease;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #e8682a;
    transition: width 0.2s ease;
}

.mobile-link:hover {
    color: #e8682a;
}

.mobile-link:hover::before {
    width: 16px;
}

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

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

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .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; }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    background-color: #fff;
}

/* ============================================
   Button focus states for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e8682a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    #hero {
        padding-top: 80px;
    }
    
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-6px);
    }
}

/* ============================================
   Smooth page transitions
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-margin-top: 80px;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    .scroll-indicator,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-terracotta-600 {
        background: #333 !important;
        color: #fff !important;
    }
}
