/* Additional CSS for enhanced layout and navigation */

/* Custom Styles for Layout Enhancement */
:root {
    --header-height: 80px;
    --footer-height: 300px;
    --primary-gradient: linear-gradient(135deg, #2e8b57, #3a9c68);
    --secondary-gradient: linear-gradient(135deg, #4682b4, #5a94c5);
}

/* Enhanced Header */
header {
    height: var(--header-height);
    background: var(--primary-gradient);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo h1, .logo p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Navigation */
nav ul {
    height: 100%;
    align-items: center;
}

nav ul li a {
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
    }
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    display: flex;
    align-items: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.18), rgba(70, 130, 180, 0.18));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    animation: fadeInUp 1s ease;
}

.cta-buttons {
    animation: fadeIn 1.5s ease;
}

.cta-buttons .btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced Service Cards */
.service-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    z-index: -1;
}

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

.service-card i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
}

.service-card .btn {
    margin-top: 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Testimonial Slider */
.testimonial-slider {
    position: relative;
    padding: 20px 0 50px;
}

.testimonial {
    position: relative;
    border-radius: 15px;
    padding: 40px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(46, 139, 87, 0.2);
    font-family: Georgia, serif;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Enhanced Contact Form Preview */
.contact-form-preview {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-preview .btn {
    width: 100%;
    border-radius: 30px;
    padding: 12px;
    margin-top: 15px;
}

/* Enhanced Footer */
footer {
    position: relative;
    background: linear-gradient(to right, #222, #333);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.page-transition.active {
    transform: translateY(0);
}

/* Breadcrumbs Navigation */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs ul li {
    display: flex;
    align-items: center;
}

.breadcrumbs ul li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #ccc;
}

.breadcrumbs ul li a {
    color: var(--primary-color);
}

.breadcrumbs ul li:last-child a {
    color: var(--text-color);
    pointer-events: none;
}

/* Enhanced Why Us Section */
.why-us {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.feature {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Areas Section */
.area {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.area:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.area h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.area h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #236b43;
}

/* Service Description Section Layout */
.service-description .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .service-description .container {
        flex-direction: row;
        align-items: flex-start; /* Align items to the top */
    }
}

.service-content {
    flex-grow: 1; /* Allow content to take available space */
    max-width: 100%; /* Ensure it doesn't overflow on mobile */
}

@media (min-width: 992px) {
    .service-content {
        max-width: calc(100% - 320px); /* Adjust based on sidebar width */
    }
}

/* Sidebar Styling */
.service-sidebar {
    background-color: #f8f9fa; /* Light background for contrast */
    border-radius: 8px;
    padding: 25px;
    width: 100%; /* Full width on mobile */
    max-width: 300px; /* Fixed width on desktop */
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    align-self: flex-start; /* Keep sidebar aligned to top */
    position: sticky;
    top: 100px; /* Adjust based on header height + desired spacing */
}

@media (min-width: 992px) {
    .service-sidebar {
        width: 300px; /* Fixed width */
    }
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    color: var(--primary-color, #2e8b57);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #2e8b57);
    display: inline-block; /* Make border fit content */
}

.sidebar-widget p,
.sidebar-widget ul li {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.sidebar-widget p i {
    color: var(--primary-color, #2e8b57);
    margin-right: 8px;
    width: 20px; /* Ensure alignment */
    text-align: center;
}

.sidebar-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: var(--primary-color, #2e8b57);
    text-decoration: underline;
}

.sidebar-widget ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-widget ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.sidebar-widget ul li:last-child a {
    border-bottom: none;
}

.sidebar-widget ul li.active a {
    color: var(--primary-color, #2e8b57);
    font-weight: bold;
}

/* Testimonial Widget Specific Styles */
.testimonial-widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-widget h3 {
    border-bottom: none; /* Remove border for this specific heading */
    margin-bottom: 10px;
}

.sidebar-testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    color: #666;
}

.sidebar-testimonial h4 {
    font-size: 0.9rem;
    color: var(--primary-color, #2e8b57);
    text-align: right;
    margin-top: 10px;
}

/* Scrollbar styles (optional, keep if desired) */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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