/* Legal Connection - Custom Styles */

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1589216532372-1c2a367900d9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

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

/* Custom Gradients */
.gradient-primary {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
}

/* Primary Color Variables */
:root {
    --primary: #3a0ca3;
    --primary-light: #4361ee;
    --primary-dark: #2a0979;
    --secondary: #f72585;
    --secondary-light: #b5179e;
    --accent: #4895ef;
}

.gradient-secondary {
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.logo-accent {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(58, 12, 163, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(247, 37, 133, 0.4);
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card.animated {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Staggered animation for cards */
.card:nth-child(1) {
    transition-delay: 0.1s;
}

.card:nth-child(2) {
    transition-delay: 0.2s;
}

.card:nth-child(3) {
    transition-delay: 0.3s;
}

.card:nth-child(4) {
    transition-delay: 0.4s;
}

.card:nth-child(5) {
    transition-delay: 0.5s;
}

.card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Service Filter Buttons */
.service-filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.service-filter-btn:hover::before {
    left: 0;
}

.service-filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Service Cards */
.service-card {
    transition: all 0.5s ease;
}

/* Section Styles */
.section-colored {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.05) 0%, rgba(67, 97, 238, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Gradient Hero Background */
.hero-gradient-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

/* Background image layer with faded effect */
.hero-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

/* Gradient overlay */
.hero-gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Old hero-section styles removed - now using hero-gradient-bg pseudo-elements */

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Cards */
.blog-card {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.blog-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Staggered animation for blog cards */
.blog-card:nth-child(1) {
    transition-delay: 0.1s;
}

.blog-card:nth-child(2) {
    transition-delay: 0.2s;
}

.blog-card:nth-child(3) {
    transition-delay: 0.3s;
}

.blog-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Call to Action Sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1589216532372-1c2a367900d9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Team Member Cards */
.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.team-img::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.team-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* ================================
   Quill Editor Content Overrides
   ================================ */
.ql-editor {
    padding: 0;
    overflow: visible;
    min-height: auto;
}

.ql-editor p {
    margin-bottom: 1rem;
}

.ql-editor .ql-align-center {
    text-align: center;
}

.ql-editor .ql-align-right {
    text-align: right;
}

.ql-editor .ql-align-justify {
    text-align: justify;
}

.ql-editor .ql-indent-1 {
    padding-left: 3em;
}

.ql-editor .ql-indent-2 {
    padding-left: 6em;
}

.ql-editor .ql-indent-3 {
    padding-left: 9em;
}

.ql-editor ul,
.ql-editor ol {
    padding-left: 1.5em;
    margin-bottom: 1rem;
}

.ql-editor ul {
    list-style-type: disc;
}

.ql-editor ol {
    list-style-type: decimal;
}

.ql-editor blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    background: rgba(58, 12, 163, 0.05);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* ================================
   Enhanced Blog Cards
   ================================ */
.blog-card {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Read More Button Style */
.blog-card a.text-primary-700 {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(58, 12, 163, 0.25);
}

.blog-card a.text-primary-700:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(58, 12, 163, 0.35);
}

/* ================================
   Mobile Bottom Navigation Bar
   ================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1001;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Add padding to body to prevent content from being hidden */
    body {
        padding-bottom: 70px;
    }
    
    /* Adjust WhatsApp button position */
    .whatsapp-float {
        bottom: 80px !important;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 8px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    opacity: 0.9;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active svg {
    transform: scale(1.1);
}

.mobile-nav-item.active span {
    font-weight: 600;
}

/* Call button special styling */
.mobile-nav-item.call-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 50px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    padding: 0;
}

.mobile-nav-item.call-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
}

.mobile-nav-item.call-btn span {
    display: none;
}

.mobile-nav-item.call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}