/* Main Stylesheet for Adv. Avinash Khedkar Advocate Website */

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.navbar-transparent {
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
}

.navbar-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-text {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.btn-border {
    position: relative;
    border: 1px solid #D4AF37;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #D4AF37;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-border:hover::before {
    width: 100%;
}

.btn-border:hover {
    color: #0F172A;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.appear {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for hero text */
.hero-line {
    opacity: 0;
    transform: translateY(20px);
}

.hero-line.appear {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-line:nth-child(1).appear {
    transition-delay: 0.2s;
}

.hero-line:nth-child(2).appear {
    transition-delay: 0.6s;
}

.hero-line:nth-child(3).appear {
    transition-delay: 1s;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 550px;
    }
}

.slider-container {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 25%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #D4AF37;
    transform: scale(1.2);
}

.counter-animate {
    transition: all 0.3s ease;
}

.counter-animate:hover {
    transform: translateY(-5px);
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-slide {
    transition: transform 0.5s ease-in-out;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced mobile styles for hero section */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column-reverse !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-text-container {
        text-align: center !important;
        padding: 0 !important;
        margin-top: 2rem !important;
    }
    
    .hero-image-container {
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-buttons {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }
    
    .hero-subtext {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .hero-btn {
        width: 100% !important;
        margin-bottom: 1rem !important;
        max-width: 300px !important;
    }
    
    .hero-badge {
        position: static !important;
        margin: 1rem auto !important;
        width: fit-content !important;
    }
    
    .hero-slider {
        height: 350px !important;
    }
    
    .slide-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.1) 100%);
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 1.8rem !important;
    }
    
    .section-padding {
        padding: 2rem 0 !important;
    }
    
    .hero-slider {
        height: 300px !important;
    }
}

/* Cookie Consent Banner */
#cookie-consent {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-consent a {
    color: #D4AF37;
    text-decoration: underline;
}

#cookie-consent a:hover {
    color: #F5D04C;
}

#accept-cookies {
    transition: all 0.3s ease;
    background-color: #D4AF37;
    color: #0F172A;
}

#accept-cookies:hover {
    background: #F5D04C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

#decline-cookies {
    transition: all 0.3s ease;
    background-color: #4B5563;
    color: #FFFFFF;
}

#decline-cookies:hover {
    background: #6B7280;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure email addresses don't overflow on mobile */
@media (max-width: 768px) {
    .truncate {
        max-width: 100%;
    }
    
    /* Contact information section adjustments */
    .contact-info-section .truncate {
        max-width: calc(100% - 60px); /* Account for icon width */
    }
    
    /* Specific fix for email address in contact section */
    .contact-info-section .flex.items-center:last-child .truncate {
        max-width: 200px; /* Fixed width for email on mobile */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
    #cookie-consent {
        padding: 1rem;
    }
    
    #cookie-consent p {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    #cookie-consent .flex {
        justify-content: center;
    }
}
