/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}
a {
	text-decoration:none;
	color:#000;
}
/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(141, 169, 196, 0.95), rgba(39, 133, 195, 0.95));
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: inherit;
}


.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* New stacked logo text styles */
.logo-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 650;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.logo-subtitle {
    font-size: 1.2rem;
    font-weight: 650;
    color: #000000;
    position: absolute;
    right: 0;
    top: 2rem;
    font-family: monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Dropdown */
.nav-menu li {
    position: relative;
}

.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    color: #333;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #f3f6fb;
    color: #0a67be;
}

/* Highlight Services parent on hover for clarity */
.dropdown:hover > a {
    color: #d4af37;
}

.nav-menu .get-advice-btn {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Active nav state */
.nav-menu a.active {
    color: #d4af37;
}
.nav-menu a.active::after {
    width: 100%;
}

.dropdown-menu a.active {
    background: #f3f6fb;
    color: #0a67be;
}

.get-advice-btn {
    background: #ffffff;
    color: black;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.get-advice-btn:hover {
    background: #9634a5;
    color: white;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(1) {
    background-image: url('../images/court.png');
    background-color: #d2dfed;
}

.hero-slide:nth-child(2) {
    background-image: url('../images/court-room.png');
    background-color: #d2dfed;
}

.hero-slide:nth-child(3) {
    background-image: url('../images/law-order.png');
    background-color: #d2dfed;
}

.hero-slide:nth-child(4) {
    background-image: url('../images/judgement.png');
    background-color: #d2dfed;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Manual slideshow control - no CSS animations needed */

.hero-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
}

.hero-left h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-left p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-right {
    flex: 1;
    text-align: right;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.statistics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.stat-item:last-child {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
}

.get-started-btn {
    display: inline-block;
    background: #d4af37;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.get-started-btn:hover {
    background: #7d3c98;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: white;
    color: #333;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
    z-index: 3;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-nav.prev {
    left: 2rem;
}

.carousel-nav.next {
    right: 2rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 2rem;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* Contact section single line styling */
.section:first-of-type p {
    white-space: normal;
    overflow: visible;
    text-align: start;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: linear-gradient(135deg,
     rgba(10, 103, 190, 0.95) 0%,
      rgba(120, 189, 203, 0.95) 100%
      ); 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgb(29, 127, 239), 
                0 0 30px rgb(103, 136, 175),
                0 0 20px rgb(10, 157, 255);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.service-card h3 {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.submit-btn {
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #c0392b;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .hero-left p {
        font-size: 1.2rem;
    }
    
    .hero-right {
        text-align: center;
    }
    
    .statistics {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        flex: 1;
        min-width: 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
