* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #D4AF37;
    --gold-light: #E5C76B;
    --gold-dark: #A38829;
    --text-white: #FFFFFF;
    --text-off-white: #F5F5F5;
    --civil-color: #E5C76B;
    --criminal-color: #FFFFFF;
    --corporate-color: #FFFFFF;
    --property-color: #FFFFFF;
    --dark-bg: #0d0d0d;
    --gold-muted: #e6d5a3;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--text-white);
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.hero-section {
    height: 100vh;
    width: 100%;
    background: url('image/background/image 1b.png') center center no-repeat;
    background-size: cover;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Inner pages header styling */
.inner-page header {
    position: relative;
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure menu button has the same appearance on all pages */
.inner-page .menu-icon,
.inner-page .menu-icon::before,
.inner-page .menu-icon::after {
    background-color: var(--gold-primary);
}

.inner-page #menu-btn.active .menu-icon {
    background-color: transparent;
}

.inner-page #menu-btn.active .menu-icon::before {
    transform: rotate(45deg);
}

.inner-page #menu-btn.active .menu-icon::after {
    transform: rotate(-45deg);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    transition: all 0.5s ease;
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-right: 12px;
}

.logo-icon:hover {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
    transform: scale(1.05);
}

.brand-name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    line-height: 1;
}

.brand-name:hover {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.cta-button {
    position: relative;
    z-index: 10;
    display: block;
}

.cta-button .btn {
    position: relative;
    z-index: 11;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

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

.btn-glow:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 18px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-content {
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.tagline {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tagline .line-1, .tagline .line-2 {
    display: block;
}

.tagline .line-2 {
    margin-top: 10px;
    color: var(--text-off-white);
}

.services {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
}

.service-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.4));
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 95%;
    justify-content: center;
}

.service-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.service-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.service-container-second {
    margin-top: 10px;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.4), rgba(0, 0, 0, 0.6));
}

.service-item {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.service-item.service-hover:after {
    width: 100%;
}

.service-separator {
    margin: 0 10px;
    color: var(--gold-primary);
    font-size: 16px;
    opacity: 0.8;
}

/* Service items styles */
.criminal, .civil, .corporate, .property, .consumer, .rera, .drt, .nclt, .loan {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-white);
}

.civil {
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(229, 199, 107, 0.3);
}

.consumer, .rera, .drt, .nclt, .loan {
    color: var(--gold-muted);
}

/* Small items in second row */
.service-item.small {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* Service item hover effects */
.service-hover {
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px) scale(1.05);
}

/* Individual service item hover effects */
.consumer:hover, .rera:hover, .drt:hover, .nclt:hover,
.criminal:hover, .civil:hover, .corporate:hover, .property:hover {
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.service-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    margin-top: 20px;
    text-align: left;
    color: var(--text-off-white);
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-left: 30px;
}

.service-tagline:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: var(--gold-primary);
}

.pulse {
    animation: pulse 1s;
}

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

/* Custom animations */
.animate__fadeInUp {
    animation-duration: 1s;
}

.animate__delay-1s {
    animation-delay: 0.5s;
}

.animate__delay-2s {
    animation-delay: 1s;
}

/* Advocates Section - New addition */
.advocates-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--gold-primary);
}

.title-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto;
}

.advocates-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 30px;
}

.advocates-left {
    flex: 0.4;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advocates-right {
    flex: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advocate-card {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advocate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent);
}

.advocate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.advocate-image-wrapper {
    flex: 0.3;
}

.advocate-image-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
}

.advocate-image-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(212, 175, 55, 0.5);
}

.advocate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advocate-image-container:hover .advocate-image {
    transform: scale(1.1);
}

.advocate-info {
    flex: 0.7;
    padding-left: 20px;
}

.advocate-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.advocate-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-off-white);
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.advocate-description {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-off-white);
    margin-bottom: 15px;
    opacity: 0.8;
}

.advocate-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

/* Slider Styles */
.slider-container {
    width: 100%;
    max-width: 850px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.slider-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--gold-primary);
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
}

.slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    border: none;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold-light);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--gold-primary);
    transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 992px) {
    .advocates-container {
        flex-direction: column;
    }
    
    .advocates-left {
        padding-right: 0;
        margin-bottom: 40px;
        flex: 1;
    }
    
    .advocates-right {
        width: 100%;
        flex: 1;
    }
    
    .slider-container {
        max-width: 100%;
    }
    
    .slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 36px;
    }

    .advocate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .advocate-image-wrapper {
        margin-bottom: 20px;
    }
    
    .advocate-info {
        padding-left: 0;
    }
    
    .advocate-specialties {
        justify-content: center;
    }
    
    .slider {
        height: 350px;
    }

    .service-separator {
        margin: 0 8px;
    }

    .brand-name {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        height: 40px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 30px;
    }

    .advocate-image-container {
        width: 80px;
        height: 80px;
    }
    
    .advocate-name {
        font-size: 20px;
    }
    
    .advocate-description {
        font-size: 14px;
    }
    
    .slider {
        height: 250px;
    }

    .service-separator {
        margin: 0 5px;
    }

    .brand-name {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    .logo-icon {
        height: 35px;
        margin-right: 8px;
    }
}

/* Practice Areas Section */
.practice-areas-section {
    background-color: #0b0b0b;
    padding: 90px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-image: linear-gradient(to bottom, rgba(11, 11, 11, 0.95), rgba(5, 5, 5, 0.98));
    background-size: cover;
    background-attachment: fixed;
}

.practice-areas-section .section-title h2 {
    font-size: 46px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.practice-areas-section .section-title h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold-primary);
}

.practice-areas-section .title-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto 45px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.practice-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 30px;
}

.practice-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.7), rgba(15, 15, 15, 0.9));
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.practice-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.7;
}

.practice-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: all 0.5s ease;
}

.practice-card:hover:after {
    width: 100%;
}

.practice-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.practice-card:hover:before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.practice-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.practice-card:hover h3 {
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

.card-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto;
    transition: all 0.5s ease;
    position: relative;
}

.card-line:before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    opacity: 0;
    transition: all 0.5s ease;
}

.practice-card:hover .card-line {
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.practice-card:hover .card-line:before {
    opacity: 1;
}

.card-icon {
    font-size: 36px;
    color: var(--gold-primary);
    margin-bottom: 18px;
    transition: all 0.5s ease;
    position: relative;
    opacity: 0.8;
}

.card-icon i {
    background: linear-gradient(to bottom right, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.practice-card:hover .card-icon {
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
}

.practice-card:hover .card-icon i {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.practice-card:hover .card-overlay {
    opacity: 1;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    cursor: pointer;
}

/* Responsive styles for practice areas */
@media (max-width: 1400px) {
    .practice-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .practice-areas-section .section-title h2 {
        font-size: 40px;
    }
    
    .practice-card {
        padding: 25px 20px;
    }
    
    .practice-card h3 {
        font-size: 20px;
    }
    
    .card-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .practice-areas-section {
        padding: 70px 0;
    }
    
    .practice-areas-section .section-title h2 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .practice-card {
        padding: 20px 15px;
    }
    
    .practice-card h3 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .card-icon {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .practice-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Header and Menu Button Styles - Updated */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.menu-toggle {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1100;
    transition: transform 0.3s ease;
}

#menu-btn:hover {
    transform: scale(1.1);
}

.menu-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: all 0.3s ease;
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(8px);
}

#menu-btn.active .menu-icon {
    background-color: transparent;
}

#menu-btn.active .menu-icon::before {
    transform: rotate(45deg);
}

#menu-btn.active .menu-icon::after {
    transform: rotate(-45deg);
}

.main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 100px 0 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.main-nav.active {
    right: 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 25px;
    color: #f5f5f5;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu > li > a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.has-submenu > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.has-submenu > a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-submenu.active > a i {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
}

.submenu li a {
    display: block;
    padding: 12px 25px 12px 40px;
    color: #f5f5f5;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.submenu li a:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-primary);
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }
    
    .header-right {
        gap: 10px;
    }
}

/* Mobile and Responsive Enhancements */
@media (max-width: 1200px) {
    .tagline {
        font-size: 60px;
    }
    
    .hero-content {
        margin-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {
    /* Existing styles */
    /* ... existing code ... */
    
    /* Additional styles */
    .hero-content {
        margin-left: 20px;
        padding-right: 20px;
    }
    
    .tagline {
        font-size: 50px;
        margin-bottom: 30px;
    }
    
    .service-container {
        flex-wrap: wrap;
    }
    
    .service-item {
        margin: 5px 0;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* Existing styles */
    /* ... existing code ... */
    
    /* Additional styles */
    header {
        padding: 20px 5%;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .tagline {
        font-size: 40px;
        margin-bottom: 25px;
    }
    
    .brand-name {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        height: 40px;
        margin-right: 10px;
    }
    
    .hero-content {
        margin-left: 15px;
        padding-right: 15px;
        padding-top: 80px;
    }
    
    .service-container {
        padding: 10px 15px;
    }
    
    .service-container-second {
        margin-top: 8px;
    }
    
    .criminal, .civil, .corporate, .property, .consumer, .rera, .drt, .nclt, .loan {
        font-size: 16px;
    }
    
    .service-item.small {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        margin-left: 10px;
        padding-right: 10px;
        text-align: center;
        align-items: center;
    }
    
    .tagline {
        font-size: 32px;
        letter-spacing: 2px;
        text-align: center;
    }
    
    .service-container {
        justify-content: center;
        width: 100%;
    }
    
    .services {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .service-container, .service-container-second {
        max-width: 90%;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .practice-grid {
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    /* Existing styles */
    /* ... existing code ... */
    
    /* Additional styles */
    header {
        padding: 15px 4%;
    }
    
    .brand-name {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    .logo-icon {
        height: 35px;
        margin-right: 8px;
    }
    
    .service-container {
        flex-direction: column;
        border-left: 3px solid var(--gold-primary);
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .service-separator {
        display: none;
    }
    
    .criminal, .civil, .corporate, .property, .consumer, .rera, .drt, .nclt, .loan {
        font-size: 14px;
        margin: 3px 0;
    }
    
    .service-item.small {
        font-size: 12px;
    }
    
    .advocates-section,
    .practice-areas-section {
        padding: 60px 0;
    }
    
    .specialty-tag {
        font-size: 10px;
        padding: 4px 8px;
        margin: 2px;
    }
}

@media (max-width: 380px) {
    .tagline {
        font-size: 28px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .main-nav {
        width: 280px;
        right: -280px;
    }
    
    .nav-menu > li > a {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .submenu li a {
        padding: 10px 20px 10px 30px;
        font-size: 0.9rem;
    }
    
    .practice-card {
        padding: 15px 10px;
    }
    
    .practice-card h3 {
        font-size: 16px;
    }
    
    .card-icon {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Fix for slider images responsive behavior */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for the mobile navigation menu to take full width on very small screens */
@media (max-width: 320px) {
    .main-nav {
        width: 100%;
        right: -100%;
    }
    
    .hero-content {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Additional responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure content doesn't overflow on small screens */
.container, section, .section-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improve form responsiveness for mobile */
input, textarea, select, button {
    max-width: 100%;
}

@media (max-width: 480px) {
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .logo {
        max-width: 80%;
    }
}

/* Fix touch target sizes for mobile */
@media (max-width: 768px) {
    .nav-menu > li > a,
    .submenu li a,
    .btn,
    .service-item,
    .slider-arrow {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .slider-arrow {
        width: 44px;
        height: 44px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
}

/* Additional fixes for mobile view */
@media (max-width: 480px) {
    .dot {
        width: 6px;
        height: 6px;
        margin: 0 4px;
    }
    
    /* Fix for preventing excessive zoom on mobile */
    input, textarea, select, button {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Ensure proper content width */
    .container, section, div {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Fix viewport issues */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Mobile styles for the service container */
@media (max-width: 768px) {
    .service-container, .service-container-second {
        width: auto;
        padding: 12px 15px;
    }
    
    .service-container-second {
        margin-top: 8px;
    }
    
    .service-item {
        font-size: 16px;
    }
    
    .criminal, .civil, .corporate, .property, .consumer, .rera, .drt, .nclt {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .service-container, .service-container-second {
        flex-direction: column;
        border-left: 3px solid var(--gold-primary);
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .service-separator {
        display: none;
    }
    
    .criminal, .civil, .corporate, .property, .consumer, .rera, .drt, .nclt {
        font-size: 14px;
        margin: 3px 0;
    }
    
    .service-tagline {
        text-align: center;
        padding-left: 0;
    }
    
    .service-tagline:after {
        display: none;
    }
}

/* CSS for text links in descriptions */
.text-link {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.text-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.text-link:hover {
    color: var(--gold-light);
}

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