/* Custom Styles for Shree Ganesh Balaji Anjaneya Construction */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #334155;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
}

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

/* Navbar Transition */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .h-20 {
    height: 70px;
}

/* Hero Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s 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;
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Project Gallery Filter */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #0F172A;
    color: white;
}

.project-item {
    transition: all 0.3s ease;
}

.project-item.hidden {
    display: none;
}

/* Smooth filter transition */
#projects-grid {
    transition: opacity 0.3s ease;
}

/* Testimonial Slider */
.testimonial-card {
    transition: all 0.3s ease;
}

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

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

/* Button Hover Animation */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Image Hover Zoom */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu:not(.hidden) {
    animation: slideDown 0.3s ease;
}

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

/* Stagger Animation for Grid Items */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
}

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

/* Package Card Highlight */
.package-card {
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: scale(1.02);
}

.package-card.featured {
    border: 2px solid #D4A853;
}

/* Gold Accent Text */
.text-gold {
    color: #D4A853;
}

/* Background Gold */
.bg-gold {
    background-color: #D4A853;
}

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

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

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

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

/* Loading state for form */
.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 13px; /* Further reduction */
    }
    /* Hero Mobile Refinement */
    .hero-content h1 {
        font-size: 2.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }

    .hero-content .inline-flex {
        margin-bottom: 1rem !important;
        padding: 0.25rem 0.75rem !important;
    }

    /* Compact Hero Form for Mobile */
    #hero-lead-form {
        gap: 0.75rem !important;
    }

    #hero-lead-form input, 
    #hero-lead-form select {
        padding: 0.75rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 0.75rem !important;
    }

    #hero-lead-form button {
        padding: 0.85rem !important;
        font-size: 0.9rem !important;
    }

    .bg-white\/10.backdrop-blur-xl {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    .bg-white\/10.backdrop-blur-xl h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .bg-white\/10.backdrop-blur-xl p {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    h1, h2, h3 {
        letter-spacing: -0.02em;
        line-height: 1.2 !important;
    }
    
    .font-serif {
        letter-spacing: -0.02em;
    }

    body {
        padding-bottom: 80px;
        line-height: 1.35;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.2rem !important; }
    p { font-size: 0.85rem !important; }

    .text-4xl { font-size: 1.6rem !important; }
    .text-5xl { font-size: 1.8rem !important; }
    .text-6xl { font-size: 2rem !important; }
    .text-xl { font-size: 0.95rem !important; }
    .text-lg { font-size: 0.9rem !important; }
    .text-base { font-size: 0.85rem !important; }
    .text-sm { font-size: 0.75rem !important; }
    .text-xs { font-size: 0.65rem !important; }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content .flex {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .package-card {
        transform: none !important;
    }

    /* App-like navigation highlight */
    .mobile-nav-item.active {
        color: #D4A853;
    }

    /* Smooth transitions for mobile buttons */
    button, a {
        -webkit-tap-highlight-color: transparent;
    }

    /* Compact Calculator Form on Mobile */
    .calculator-card {
        padding: 1.25rem !important;
    }
    
    .calculator-card h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .calculator-card label {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .calculator-card input, 
    .calculator-card select {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.75rem !important;
    }
    
    .type-card {
        padding: 0.75rem 0.5rem !important;
    }
    
    .type-card i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .type-card .font-semibold {
        font-size: 0.85rem !important;
    }
    
    .type-card .text-sm {
        font-size: 0.7rem !important;
    }

    .floor-card {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }
}