/* Custom Properties for Colors */
:root {
    --primary-blue: #007bff; /* A standard blue, adjust if needed */
    --accent-orange: #ff7f00; /* Orange from mockup */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8; /* Light background for sections */
    --card-bg: #fff;
    --border-light: #eee;
}

/* Basic Reset & Body Styling */
body {
    font-family: 'Arial', sans-serif; /* Use a common sans-serif font */
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on small screens */
}

/* Utility Class for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* For anchor tags styled as buttons */
    display: inline-block; /* For anchor tags styled as buttons */
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #e67300; /* Darker orange */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    padding: 10px 25px; /* Slightly different padding for secondary */
}

.btn-secondary:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
}

/* Header Styling */
.main-header {
    background-color: var(--card-bg); /* White background for header */
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
}

.compcoach-logo {
    height: 30px; /* Adjust as per your logo size */
    margin-right: 10px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--text-dark);
}


/* Hero Section */
.hero-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Matches the mockup's background */
    text-align: left; /* Align text to left as per mockup */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Space between text and image */
}

.hero-text {
    flex: 2;
    max-width: 60%; /* Adjust as needed */
}

.hero-text h1 {
    font-size: 3.5em; /* Larger, bolder text */
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text .tagline {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    max-width: 40%; /* Adjust as needed */
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    /* Example: Limit height to make it feel smaller visually, without stretching */
    max-height: 400px; /* Adjust this value (e.g., 350px, 450px) */
    display: block;
    object-fit: contain; /* Ensures the image fits within the bounds without cropping or distorting */
}
}

/* General Section Headings & Descriptions */
h2 {
    font-size: 2.5em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* White background for this section */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px;
    justify-content: center; /* Center items if they don't fill the row */
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.icon-placeholder {
    font-size: 3em; /* Larger icons */
    color: var(--primary-blue); /* Blue for icons */
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3em;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Why It Matters Section */
.why-it-matters-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.stat-item {
    font-size: 1.2em;
    color: var(--text-dark);
    max-width: 250px; /* Limit width of each stat */
}

.stat-item .icon-placeholder {
    font-size: 2.5em; /* Smaller icon for stats */
    margin-bottom: 10px;
}

.stat-item strong {
    font-size: 1.5em;
    color: var(--primary-blue);
    display: block; /* Make the number a block for spacing */
    margin-bottom: 5px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
}

.testimonial-card p:first-of-type {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-dark); /* Testimonial text itself is darker */
}

.testimonial-author {
    font-size: 1.1em;
    font-style: normal;
    font-weight: bold;
    color: var(--accent-orange);
}


/* CompBot Preview Section (Static, for now) */
.compbot-preview-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    text-align: center;
}

.compbot-box {
    background-color: #e0f7fa; /* Light blue background for chatbox */
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.compbot-box p:first-child {
    background-color: #d1ecf1; /* User query bubble */
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    margin-bottom: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: 0;
    color: var(--text-dark);
}

.compbot-response {
    background-color: var(--primary-blue); /* AI response bubble */
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    margin-bottom: 20px;
    max-width: 80%;
}

.compbot-input {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    margin-top: 20px;
}

.compbot-input input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 0.9em;
}

.compbot-input .send-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.compbot-input .send-btn:hover {
    background-color: #0056b3; /* Darker blue */
}


/* Newsletter Section */
.newsletter-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.newsletter-section h2 {
    margin-bottom: 10px;
}

.newsletter-section p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px; /* Ensure padding on edges */
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-size: 1em;
    max-width: 400px; /* Limit input width */
}

.newsletter-form .btn-primary {
    padding: 12px 25px; /* Match other button padding */
}

/* Footer Styling */
.main-footer {
    background-color: var(--text-dark); /* Dark background for footer */
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image {
        max-width: 100%;
    }

    .hero-image {
        order: -1; /* Puts image above text on mobile */
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2.8em;
    }

    .hero-text .tagline {
        font-size: 1.3em;
    }

    .main-nav ul li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .main-header .btn {
        width: 80%; /* Make button wider */
        max-width: 200px;
    }

    h2 {
        font-size: 2em;
    }

    .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
        max-width: 400px; /* Max width for single column cards */
        margin: 0 auto;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        width: 90%;
        margin-bottom: 15px;
        max-width: unset;
    }

    .newsletter-form .btn-primary {
        width: 90%;
        max-width: 250px;
    }

    .compbot-box {
        padding: 20px;
    }
}