/* Color Palette */
:root {
    --primary: #3457D5;       /* Bright Blue - innovation, trust */
    --primary-light: #5E7AE9; /* Lighter Blue for hover states */
    --secondary: #FF7F50;     /* Coral Orange - warmth, approachability */
    --dark: #1E293B;          /* Dark Blue-Gray - professionalism */
    --light: #F8FAFC;         /* Off-White - clean, modern */
    --gray: #64748B;          /* Neutral Gray for text */
    --success: #10B981;       /* Green for success indicators */
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #ff936a;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    margin-left: 30px;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-subheadline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Problems Section */
.problems {
    background-color: white;
}

.problems-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problems-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.problem-item {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.problem-icon {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Solutions Section */
.solutions {
    background-color: var(--light);
}

.solutions-intro {
    max-width: 800px;
    margin: 0 auto 60px;
}

.solutions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-item {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

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

.solution-icon {
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* Benefits Section */
.benefits {
    background-color: white;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    background-color: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Use Cases Section */
.use-cases {
    background-color: var(--light);
}

.use-cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.use-case-item {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.use-case-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.use-case-result {
    color: var(--success);
    font-weight: 500;
    margin-top: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 15px;
}

.testimonial-info {
    line-height: 1.4;
}

.testimonial-name {
    font-weight: 500;
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--gray);
}

/* CTA Section */
.cta {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h2, .cta p {
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons {
    margin-top: 40px;
}

.btn-cta {
    background-color: white;
    color: var(--primary);
    font-weight: 700;
}

.btn-cta:hover {
    background-color: var(--secondary);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-about {
    max-width: 300px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer-link a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        flex: none;
        max-width: 100%;
    }
}

/* Modal Styles - Add these to your styles.css file */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    max-height: 90vh; /* Limit height to viewport height */
    overflow-y: auto; /* Enable scrolling within the modal content */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-close {
    color: var(--gray);
    position: fixed; /* Change to fixed positioning */
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1010; /* Ensure it's above other elements */
    background-color: white; /* Add background to make visible */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-close:hover {
    color: var(--dark);
    transform: scale(1.1);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    padding-right: 30px;
    position: relative;
    z-index: 5;
}

/* Iframe specific styles */
#bookingIframe, 
iframe[src*="leadconnectorhq.com"] {
    width: 100% !important;
    height: 700px !important;
    border: none !important;
    margin-top: 10px;
    overflow: auto !important; /* Allow scrolling within iframe */
}

@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    #bookingIframe, 
    iframe[src*="leadconnectorhq.com"] {
        height: 600px !important;
        transform: scale(0.98);
        transform-origin: top center;
        overflow: auto !important;
    }
    
    .modal h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}