/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
    transition: transform 0.4s ease-in-out;
}

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

.section {
    padding: 80px 0;
}

.section:nth-of-type(odd) {
    background-color: #ffffff;
}

.section:nth-of-type(even) {
    background-color: #f9f9f9;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    color: #333;
}

h2 {
    font-size: 2em;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* Header and Navigation */
header {
    background-color: #171c35;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

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

.main-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav .nav-links a:hover {
    color: #b0a1f9;
}

.portal-button {
    background-color: #b0a1f9;
    border-radius: 5px;
    padding: 10px 20px;
    color: #171c35 !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.portal-button:hover {
    background-color: #9c8ce8;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Sections */
#home {
    background-color: #171c35;
    color: #fff;
    text-align: center;
    padding: 150px 0;
}

#home h1 {
    color: #fff;
}

#home p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Services Section */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #b0a1f9;
    text-decoration: none;
    font-weight: bold;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Contact Section Styles - New */
.contact-page-section {
    background-color: grey;
    padding: 80px 0;
    text-align: center;
}

.contact-main-heading {
    color: black;
    font-size: 44px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-sub-heading {
    color: #a0aec0;
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card .icon-placeholder {
    width: 48px;
    height: 48px;
    background-color: #e0e7ff;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4c51bf;
}

.contact-card h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.contact-card-link {
    color: #4c51bf;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-card-link:hover {
    color: #3b3f9d;
}

.contact-card .fas {
    font-size: 24px;
    color: #4c51bf;
}


/* Footer */
footer {
    background-color: #171c35;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        background-color: #171c35;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .main-nav .nav-links.active {
        transform: translateY(0);
    }

    .main-nav .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .main-nav .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #2a2f4c;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 50px;
    width: 50px;
    color: #fff;
    background: #b0a1f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.chatbot-toggler:hover {
    background: #9c8ce8;
    transform: scale(1.05);
}

.chatbot {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 420px;
    height: 550px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1002;
}

.show-chatbot .chatbot {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background: #171c35;
    color: #fff;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header .bot-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #fff;
    padding: 5px;
}

.chatbot-header .header-text {
    flex-grow: 1;
}

.chatbot-header .header-text h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-header .header-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chatbot-header .close-btn {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.chatbot-header .close-btn:hover {
    transform: rotate(90deg);
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeIn 0.5s ease-in-out;
}

.message-text {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    position: relative;
    font-size: 1em;
    line-height: 1.5;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-text {
    background-color: #b0a1f9;
    color: #171c35;
    border-bottom-right-radius: 5px;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-text {
    background-color: #e2e2e2;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chat-form {
    display: flex;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.chat-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 16px;
}

.chat-form button {
    background-color: #b0a1f9;
    border: none;
    color: #171c35;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-form button:hover {
    background-color: #9c8ce8;
}

.email-form-container {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.email-form-container input,
.email-form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.email-form-container button {
    background-color: #b0a1f9;
    color: #171c35;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.email-form-container button:hover {
    background-color: #9c8ce8;
}

/* --- Welcome Message Pop-up --- */
.welcome-message {
    position: fixed;
    bottom: 90px;
    right: 90px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: 250px;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.welcome-message.show {
    opacity: 1;
    pointer-events: auto;
}

.close-welcome-btn {
    cursor: pointer;
    font-size: 1rem;
    color: #666;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .chatbot {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chatbot-toggler {
        bottom: 20px;
        right: 20px;
    }

    .welcome-message {
        bottom: 80px;
        right: 80px;
    }
}
