/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

section {
    position: relative;
}

/* Navbar styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1.2rem 0;
    z-index: 1000;
    background-color: transparent;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-scrolled {
    background-color: #0d6efd !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

/* Hero Section */
.hero {
    /* Replace the single background image with a dynamic choice using @supports */
    background-image: url('hero.jpg'); /* Default fallback for all browsers */
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 600px;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* WebP support detection for hero image */
@supports (background-image: url('hero.webp')) {
    .hero {
        background-image: url('hero.webp'); /* Modern browsers that support WebP */
    }
}

/* AVIF support detection for hero image - highest quality, best compression */
@supports (background-image: url('hero.avif')) {
    .hero {
        background-image: url('hero.avif'); /* Most modern browsers with AVIF support */
    }
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Contact form styles */
.card {
    border-radius: 10px;
    border: none;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-check-label {
    font-size: 0.9rem;
}

.cta-box {
    background-color: #fff;
    border-left: 5px solid #0d6efd;
    margin-top: 30px;
}

.cta-box h4 {
    color: #333;
    margin-bottom: 15px;
}

/* Section styles */
.section {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.content {
    width: 66%;
    max-width: 1200px; /* Control maximum width for larger screens */
    display: flex;
    gap: 20px; /* Adds space between image and text */
    align-items: center;
    justify-content: space-between;
}

.section-img {
    flex: 1; /* Allows image to take up only necessary space */
    max-width: 33%;
}

.section-text {
    flex: 2; /* Gives text area more space */
    text-align: left; /* Ensures consistency */
}

.section:nth-child(even) .section-img {
    order: 2;
    margin-left: 2%;
}

.section:nth-child(even) .section-text {
    text-align: left; /* Adjust if necessary but keeping consistent for readability */
}

.section-heading {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0d6efd;
}

/* Feature styles */
.feature-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 5px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    font-size: 1.25rem;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

/* Testimonial styles */
.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

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

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before, .testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: rgba(13, 110, 253, 0.2);
    position: absolute;
}

.testimonial-text::before {
    top: -10px;
    left: -15px;
}

.testimonial-text::after {
    bottom: -20px;
    right: -15px;
}

.testimonial-author .author-name {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-author .author-title {
    font-size: 0.9rem;
    color: #888;
}

/* Pricing info */
.pricing-info {
    display: flex;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d6efd;
}

/* Footer styles */
.footer {
    background-color: #222;
    color: #fff;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}

address p {
    margin-bottom: 10px;
}

address a {
    color: #fff;
    text-decoration: none;
}

address i {
    color: #0d6efd;
}

/* Create a new form submission success page styles */
.success-message {
    text-align: center;
    padding: 80px 0;
}

.success-message i {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .navbar {
        background-color: #0d6efd;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
}

/* Additional tweaks for spacing and readability */
p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

h2 i {
    margin-right: 10px;
}
