/* Enhanced Custom Styles */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Enhanced Gradient Backgrounds */
.gradient-bg { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, #60a5fa 100%); 
}

.gradient-bg-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Header Styles */
.header-enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.header-enhanced.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Mobile Menu Styles */
.mobile-menu {
    background: var(--bg-white);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.mobile-menu a:hover {
    background: #f8fafc;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Footer Styles */
.footer-enhanced {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.footer-section h4 {
    color: var(--bg-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color));
}

.footer-link {
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-light);
    padding-left: 1rem;
    transform: translateX(5px);
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-light);
}

.footer-link:hover::before {
    opacity: 1;
    left: -0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    color: #9ca3af;
    transition: all 0.4s ease;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: var(--bg-white);
    transform: translateY(-3px) rotate(360deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    border-color: transparent;
}

/* Enhanced Footer Background */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Contact Info */
footer .fa-phone,
footer .fa-envelope,
footer .fa-map-marker-alt,
footer .fa-clock {
    transition: all 0.3s ease;
}

footer .fa-phone:hover,
footer .fa-envelope:hover,
footer .fa-map-marker-alt:hover,
footer .fa-clock:hover {
    transform: scale(1.2);
    color: var(--primary-light);
}

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

footer .grid > div {
    animation: fadeInUp 0.6s ease forwards;
}

footer .grid > div:nth-child(1) { animation-delay: 0.1s; }
footer .grid > div:nth-child(2) { animation-delay: 0.2s; }
footer .grid > div:nth-child(3) { animation-delay: 0.3s; }
footer .grid > div:nth-child(4) { animation-delay: 0.4s; }

/* Service Areas Section */
.service-areas-enhanced {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.service-areas-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.area-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.area-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.area-card:hover::before {
    left: 100%;
}

.area-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.25rem;
}

.area-card:hover .area-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.area-name {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.area-card:hover .area-name {
    color: var(--primary-color);
}

/* Enhanced Service Card */
.service-card { 
    transition: all 0.3s ease; 
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white);
}

.service-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 
    border-color: var(--primary-light);
}

/* Floating Button Enhancement */
.floating-btn { 
    animation: pulse 2s infinite; 
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    border-radius: 50%;
}

@keyframes pulse { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.05); } 
}

/* Gallery Enhancement */
.gallery-item img { 
    transition: transform 0.3s ease; 
    border-radius: 12px;
}

.gallery-item:hover img { 
    transform: scale(1.05); 
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

/* Enhanced Lightbox */
.lightbox-overlay {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.8);
}

/* Enhanced Button Effects */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary::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-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

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

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

.mobile-menu.show {
    animation: slideDown 0.3s ease;
}

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

/* Enhanced Responsive improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .area-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .area-card {
        padding: 0.75rem;
    }
    
    .area-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .area-name {
        font-size: 0.8rem;
    }
}

/* Additional utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 2rem 0;
}

/* Hover effects for interactive elements */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Gradient text for headings */
.heading-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
