/* --- Global Styles & Fonts --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* --- Professional Header --- */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

/* Center the logo in its new position and add spacing */
.logo {
    text-align: center;

    /* Use margin to create space OUTSIDE the logo's container */
    margin-top: 0px;
    /* Pushes the logo DOWN from the header */
    margin-bottom: -10px;
    /* Pushes the main text DOWN from the logo */
}

/* Remove text-specific styles from the logo link */
.logo a {
    font-size: 1rem;
    /* Reset font size */
    text-decoration: none;
}

/* Style for the header logo image */
.header-logo {
    height: 100px;
    /* You can make the logo bigger now, adjust as needed */
    width: auto;

    /* We don't need the old positioning rules anymore */
    position: static;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-left: 35px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #3f51b5;
}

.popup-login-btn {
    background-color: #3f51b5;
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.popup-login-btn:hover {
    background-color: #31409b;
}

/* --- Hero Section (Side-by-Side Layout) --- */
.hero-section {
    padding: 80px 0;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5em;
    color: #3f51b5;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1em;
    color: #666;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    position: relative;
    z-index: 2;
}

.decorative-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #eef2f7;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* --- Features Section --- */
.features-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    color: #3f51b5;
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-card .read-more {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* --- FINAL UI-Inspired Pop-up Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 40, 60, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fdfdff;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    opacity: 0;
    text-align: left;
    border: 1px solid #eef;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f5;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    line-height: 30px;
    text-align: center;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e1e1e9;
    color: #333;
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #5c67e0, #4a90e2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.modal-header p {
    color: #778;
    margin: 0;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
    flex-grow: 1;
    /* This ensures it fills the space */
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #99a;
}

.toggle-password svg {
    stroke: #99a;
    transition: stroke 0.2s ease;
}

.toggle-password:hover svg {
    stroke: #333;
}

.forgot-link {
    display: block;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-content .btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-content .btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.error-message {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

/* --- NEW Professional Trusted By Section Styles --- */
.trusted-by-section {
    padding: 35px 0;
    background-color: #fff;
    /* Or #f8f9fa for a light grey background */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #e9ecef;
    /* Top border for the grid */
    border-left: 1px solid #e9ecef;
    /* Left border for the grid */
}

.logo-item {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    /* Bottom border for each item */
    border-right: 1px solid #e9ecef;
    /* Right border for each item */
}

.logo-item img {
    max-width: 120px;
    height: 80px;
    /* Give a fixed height for alignment */
    object-fit: contain;
    /* Ensures logo fits without distortion */
    margin: 0 auto;
    filter: grayscale(5%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1