/* Hero background with overlay */
.hero-bg {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="legal-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="rgba(255,171,0,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23legal-pattern)"/></svg>') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.4);
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: #ffab00;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #1a237e;
    border-color: #1a237e;
}

/* Loading animation for form submission */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Admin icon styles */
.admin-icon {
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.admin-icon:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.1) rotate(15deg);
}

.admin-icon:active {
    transform: scale(1.05) rotate(15deg);
}

/* Subtle pulse animation for admin icon */
.admin-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1a237e, #3949ab);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-icon:hover::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Navigation link active state */
.nav-link-active {
    color: #1a237e;
    font-weight: 600;
}

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

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

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Professional legal document styling */
.legal-document-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="scales" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25 10 L35 30 L15 30 Z M25 30 Q20 35 25 40 Q30 35 25 30" stroke="%23ffab00" stroke-width="0.5" fill="none" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23scales)"/></svg>');
}

/* Modern button animations */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::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;
}

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

/* Gradient text animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, #1a237e, #ffab00, #1a237e, #ffab00);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modern card hover effect */
.modern-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 171, 0, 0.1), rgba(26, 35, 126, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.modern-card:hover::before {
    opacity: 1;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Ensure proper z-index layering */
.hero-section {
    position: relative;
    z-index: 2;
}

.about-section {
    position: relative;
    z-index: 3;
    background: white;
    margin-top: 0;
    padding-top: 5rem;
}

/* Ensure hero section doesn't overflow */
.hero-section {
    overflow: hidden;
}

/* Fix for overlapping content */
.hero-section .container {
    position: relative;
    z-index: 10;
}

/* Shimmer effect for loading */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

/* Smooth reveal animation */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-animation {
    animation: reveal 0.8s ease-out;
}

/* Enhanced navigation */
.nav-modern {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Glowing effect */
.glow-effect {
    box-shadow: 0 0 20px rgba(255, 171, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(255, 171, 0, 0.5);
}
