/* Base Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #003d80;
    --accent-color: #00a8ff;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;
    --font-primary: 'Montserrat', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-color);
}

/* Hero Section - Simple Custom Layout */
.hero-simple {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 120px 0;
}

.container-simple {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Left Column */
.left-simple {
    flex: 1;
    min-width: 280px;
    max-width: 440px;
}

.left-simple h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.left-simple p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-simple {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #0074d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-simple:hover {
    background-color: #0056a3;
}

/* Right Column */
.right-simple {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.form-box-simple {
    background-color: #666;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.form-title-simple {
    background-color: #0074d9;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    margin: -25px -25px 20px -25px;
}

.url-input-simple {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: #888;
    color: #fff;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.url-input-simple::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#check-speed-btn-simple {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #004b91;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#check-speed-btn-simple:hover {
    background-color: #003b73;
}

/* Media queries for hero section responsiveness */
@media (max-width: 768px) {
    .container-simple {
        flex-direction: column;
        text-align: center;
    }
    
    .left-simple,
    .right-simple {
        max-width: 100%;
    }
    
    .left-simple {
        margin-bottom: 30px;
    }
}

/* Common styles for all hero sections */
 .services-hero p, .contact-hero p, .about-hero p, .pricing-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Improve visibility for section headers in colored backgrounds */
.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

 
.services-hero .section-header p, 
.contact-hero .section-header p,
.about-hero .section-header p,
.pricing-hero .section-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.benefits {
    background-color: var(--light-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--gray-color);
}

/* Testimonials Section */
.testimonials {
    background-color: #fff;
    padding: 80px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Minimum height to avoid jumps */
}

.testimonial-slide {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin: 0 10px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
}

.quote p {
    font-size: 1.1rem;
    position: relative;
    padding: 0 30px;
}

.quote p::before,
.quote p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.quote p::before {
    left: 0;
    top: -15px;
}

.quote p::after {
    right: 0;
    bottom: -15px;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-gray-color);
    margin-right: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.client-details h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.client-details p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 5;
}

.prev-btn,
.next-btn {
    background-color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark-color);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.slider-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--light-gray-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Clients Section */
.clients {
    background-color: var(--light-color);
    padding: 60px 0;
}

.client-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.logo-item {
    width: 180px;
    height: 100px;
    background-color: #fff;
    border-radius: 8px;
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
    box-shadow: var(--box-shadow);
}

.logo-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* Agency Services Section */
.agency-services {
    background-color: var(--light-color);
    padding: 80px 0;
}

.agency-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

.agency-image {
    flex: 1 1 400px;
    min-width: 280px;
    margin-bottom: -20px;
}

.agency-image .image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background-color: var(--primary-color);
    border-radius: 8px;
    color: #fff;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.agency-image .image-placeholder i {
    font-size: 5rem;
    transition: font-size 0.3s ease;
}

.agency-text {
    flex: 1 1 400px;
    padding: 0 20px;
    min-width: 280px;
}

.agency-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.agency-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.agency-features {
    margin-bottom: 30px;
}

.agency-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.agency-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Agency Partners Section */
.agency-partners {
    margin-top: 60px;
    text-align: center;
}

.agency-partners h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.results-caption {
    margin-top: 20px;
    color: var(--gray-color);
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partner-logo {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.partner-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.partner-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo:hover img {
    transform: scale(1.05);
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.partner-logo:hover .partner-overlay {
    transform: translateY(0);
}

.partner-overlay span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Custom Hover Effect for Expert Help Button */

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget.about p {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    color: #fff;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Fix for duplicate speed test widgets in the footer */

/* Ensure only hero section widget is shown */

/* Responsive Styles */
@media (max-width: 991px) {
    
    .agency-content {
        gap: 20px;
    }
    
    .agency-image .image-placeholder {
        height: 250px;
    }
    
    .agency-image .image-placeholder i {
        font-size: 4rem;
    }
    
    .agency-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .agency-services {
        padding: 60px 0;
    }
    
    .agency-content {
        margin-top: 10px;
        gap: 10px;
    }
    
    .agency-image {
        margin-bottom: -10px;
    }
    
    .agency-image .image-placeholder {
        height: 200px;
        margin-bottom: 10px;
    }
    
    .agency-text {
        padding: 10px 0;
    }
    
    .agency-features {
        display: inline-block;
        text-align: left;
        margin: 0 auto 30px;
    }
}

@media (max-width: 576px) {
    
    .testimonial-slide {
        padding: 30px 20px;
    }
    
    .quote p {
        padding: 0 15px;
        font-size: 1rem;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .agency-image .image-placeholder {
        height: 180px;
        margin-bottom: 5px;
    }
    
    .agency-image {
        margin-bottom: -5px;
    }
    
    .agency-text h3 {
        font-size: 1.6rem;
    }
    
    .agency-text p {
        font-size: 1rem;
    }
    
    .agency-features li {
        font-size: 1rem;
    }
}

/* Fix for duplicate testimonials and exposed PHP syntax */
.testimonials .section-header p + p,
.testimonials .section-header h2 + h2 {
    display: none !important;
}

/* Hide any exposed PHP syntax */
 code {
    display: none !important;
}

/* Utility Classes */
.text-center {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* Recommendations Section */

/* Responsive adjustments */ 