/**
 * Main Stylesheet
 */

/* Bootstrap Icons Import - Move to top */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Header Styles */
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.navbar-brand img.logo {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: #0d6efd;
}

/* Top Bar Styles */
.top-bar {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.875rem;
}

.contact-info .info-item {
    margin-right: 1.5rem;
    color: #6c757d;
}

.contact-info .info-item:last-child {
    margin-right: 0;
}

.contact-info .info-item i {
    margin-right: 0.25rem;
}

.social-links .social-link {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: rgba(0,0,0,0.1);
    border-radius: 50%;
    margin-left: 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    background-color: #0d6efd;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Main Content Styles */
.site-content {
    min-height: 500px;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Page Styles */
.jumbotron {
    background-color: #f1f8ff;
    padding: 3rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.jumbotron h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Footer Styles */
.site-footer {
    padding: 3rem 0;
    color: #fff;
    background-color: #343a40;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding-left: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom .social-links {
    margin-top: 1rem;
}

.footer-bottom .social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-bottom .social-link:hover {
    background-color: #0d6efd;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Contact Page Styles */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form Styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a53be;
    transform: translateY(-1px);
}

/* Enhanced styling for negative margin controls */
.preview-container {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    border-radius: 8px;
}

#margin-preview-box {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2;
    transition: margin 0.3s ease;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    padding: 8px;
}

/* Button styling */
.btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
}

/* Input styling for negative values */
.form-text.text-muted strong {
    color: #dc3545;
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   ============================================ */

.testimonials-section {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
    padding: 5rem 0;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.section-title {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Design 1 - Card Style */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 10px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    font-size: 1rem;
    margin-right: 2px;
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.1);
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    align-items: center;
}

.testimonial-avatar {
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-author h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.testimonial-author small {
    color: #6c757d;
    font-weight: 500;
}

/* Design 2 - Quote Style */
.testimonial-quote {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonial-quote:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.quote-icon {
    opacity: 0.1;
    margin-bottom: 1rem;
}

.testimonial-quote .testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
}

.testimonial-quote .testimonial-avatar {
    margin: 0 auto 1rem;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.testimonial-position {
    color: #6c757d;
    font-weight: 500;
}

/* Design 3 - Carousel Style */
.testimonial-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.testimonial-slide {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.testimonial-carousel .testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-carousel .testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #495057;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-carousel .testimonial-avatar {
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 0 auto 2rem;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
    opacity: 1;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    background-color: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.testimonial-carousel .carousel-indicators {
    bottom: 20px;
}

.testimonial-carousel .carousel-indicators button {
    background-color: rgba(102, 126, 234, 0.5);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
}

.testimonial-carousel .carousel-indicators .active {
    background-color: #667eea;
}

/* Design 4 - Modern Grid */
.testimonial-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.testimonial-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.testimonial-modern .testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.testimonial-modern .testimonial-rating i {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.testimonial-modern .testimonial-content p {
    color: white;
    font-weight: 400;
    line-height: 1.7;
}

.testimonial-modern .testimonial-author h6 {
    color: white;
    font-weight: 600;
}

.testimonial-modern .testimonial-avatar {
    border: 3px solid rgba(255,255,255,0.3);
}

/* View All Button */
.testimonials-section .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonials-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.testimonials-section .btn:hover::before {
    left: 100%;
}

.testimonials-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Featured Badge */
.featured-badge {
    z-index: 10;
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.testimonial-card,
.testimonial-quote,
.testimonial-modern {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991.98px) {
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonial-carousel .testimonial-content p {
        font-size: 1.1rem;
    }
    
    .testimonial-slide {
        min-height: 350px;
        padding: 2rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .jumbotron {
        padding: 2rem;
    }
    
    .site-content {
        min-height: 300px;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-quote {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-carousel .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonial-slide {
        min-height: 300px;
        padding: 1.5rem 1rem;
    }
    
    .testimonial-carousel .carousel-control-prev-icon,
    .testimonial-carousel .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile social links adjustment */
    .contact-info .info-item {
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .social-links .social-link {
        width: 28px;
        height: 28px;
        line-height: 28px;
        margin-left: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .testimonials-section .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    .testimonial-content::before {
        font-size: 2rem;
        top: -5px;
        left: -3px;
    }
    
    .testimonial-avatar,
    .testimonial-carousel .testimonial-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Mobile contact info stack */
    .contact-info .info-item {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .top-bar .container > .row > div {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .top-bar .container > .row > div:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   ADDITIONAL UTILITY CLASSES
   ============================================ */

.bg-light-gray {
    background-color: #f8f9fa;
}

.rounded-custom {
    border-radius: 1rem;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.text-highlight {
    color: #0d6efd;
}

/* Print Styles */
@media print {
    .testimonials-section {
        background: white !important;
        color: black !important;
    }
    
    .testimonial-modern {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
    
    .testimonial-modern .testimonial-content p,
    .testimonial-modern .testimonial-author h6 {
        color: black !important;
    }
    
    .testimonials-section .btn {
        display: none;
    }
    
    .top-bar,
    .social-links {
        display: none;
    }
}