/* Global Styles */
:root {
    --primary-blue: #0a192f;
    --secondary-gray: #1e1e1e;
    --accent-orange: #ff8c00;
    --accent-yellow: #ffd700;
    --text-light: #e6f1ff;
    --text-gray: #8892b0;
    --bg-dark: #020c1b;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navbar Content */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #e07b00;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('assets/hero.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2, 12, 27, 0.7) 0%, rgba(2, 12, 27, 0.4) 50%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-cta:hover {
    background-color: #e07b00;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 15px auto 0;
}

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

.feature-card {
    background-color: var(--secondary-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-orange);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-orange);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Client Portal Mockup Section */
.client-portal {
    padding: 100px 0;
    background-color: var(--secondary-gray);
    /* Contrast bg */
    text-align: center;
}

.portal-intro {
    margin-bottom: 50px;
}

.portal-mockup {
    background-color: var(--bg-dark);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.portal-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.portal-header span {
    font-weight: 600;
    font-size: 1.1rem;
}

.status-badge {
    background-color: rgba(255, 140, 0, 0.2);
    color: var(--accent-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

.step.completed .circle {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    border-color: var(--accent-orange);
}

.step.active .circle {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.step.active span {
    color: var(--accent-orange);
    font-weight: 700;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--text-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    background-color: var(--bg-dark);
    font-weight: bold;
    transition: 0.3s ease;
}

.line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--text-gray);
    margin: 0 10px;
    position: relative;
    top: -15px;
    /* Adjust based on circle height and label */
    z-index: 0;
}

.line.completed,
.line.active {
    background-color: var(--accent-orange);
}

.portal-details {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-box h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-box p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.why-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-image {
    flex: 1;
}

.why-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Deep shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.why-image img:hover {
    transform: scale(1.02);
}

.why-content {
    flex: 1;
    text-align: left;
}

.why-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.why-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-style: italic;
    border-left: 4px solid var(--accent-orange);
    padding-left: 20px;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
}

/* Footer */
footer {
    padding: 20px 0;
    background-color: #020c1b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        /* Increased padding for better mobile view */
    }

    .hero {
        height: auto;
        min-height: 100vh;
        /* Ensure content isn't hidden behind fixed navbar */
        padding-top: 80px;
        padding-bottom: 60px;
        align-items: center;
        /* Keep centering but allow vertical expansion */
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .navbar {
        padding: 15px 0;
    }

    .portal-mockup {
        padding: 20px;
    }

    .progress-container {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-left: 0;
        /* Reset margins */
        margin-left: 10px;
    }

    /* Vertical Line */
    .progress-container::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        /* Center of the 40px circle */
        width: 2px;
        height: calc(100% - 40px);
        background-color: var(--text-gray);
        z-index: 0;
        opacity: 0.3;
    }

    .step {
        flex-direction: row;
        align-items: center;
        margin-bottom: 30px;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .step:last-child {
        margin-bottom: 0;
    }

    .circle {
        margin-right: 20px;
        margin-bottom: 0;
        background-color: var(--bg-dark);
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        /* Ensure circle is circular and centered content */
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid var(--text-gray);
        /* Match default border */
    }

    /* State styling overrides for mobile if needed, but defaults should work */
    .step.completed .circle {
        border-color: var(--accent-orange);
        background-color: var(--accent-orange);
    }

    .step.active .circle {
        border-color: var(--accent-orange);
        background-color: var(--bg-dark);
        /* Keep bg dark for active to show border */
    }

    .line {
        display: none;
    }

    .portal-details {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }
}

/* Mobile Phones (< 480px) */
@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.1rem;
    }

    .navbar .btn-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Adjust progress line for smaller margin if needed */
    .progress-container::before {
        left: 20px;
    }
}

/* Responsive for Why Us */
@media (max-width: 900px) {
    .why-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .why-content {
        text-align: center;
        padding: 0 10px;
    }

    .why-content p {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--accent-orange);
        padding-top: 20px;
    }

    .why-image img {
        max-width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--secondary-gray);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-gray);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--accent-orange);
}

.modal-content h2 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 2rem;
}

.modal-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
    background-color: #e07b00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Button styles for consistency */
.btn-cta,
.btn-primary,
.btn-secondary {
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-cta:hover,
.btn-primary:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content h2 {
        font-size: 1.6rem;
    }

    .close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
}

/* Chat Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ff6b00);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: all 0.3s ease;
}

.chat-toggle .chat-icon {
    display: block;
}

.chat-toggle .close-icon {
    display: none;
    position: absolute;
}

.chat-toggle.active .chat-icon {
    display: none;
}

.chat-toggle.active .close-icon {
    display: block;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background-color: var(--secondary-gray);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-blue), #0d2847);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-light);
}

.chat-status {
    font-size: 0.75rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-minimize {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: 0.3s ease;
}

.chat-minimize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--secondary-gray);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 3px;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.message-content p+p {
    margin-top: 8px;
}

.bot-message .message-content {
    background-color: var(--secondary-gray);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    align-items: flex-end;
}

.user-message .message-content {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-gray);
    padding: 0 5px;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background-color: var(--secondary-gray);
    color: var(--text-light);
    border: 1px solid rgba(255, 140, 0, 0.3);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}

.quick-reply:hover {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: var(--secondary-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.chat-input::placeholder {
    color: var(--text-gray);
}

.chat-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    background-color: #e07b00;
    transform: scale(1.05);
}

.chat-send svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: var(--secondary-gray);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-gray);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive for Chatbot */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 140px);
        bottom: 80px;
        right: 0;
        left: 20px;
    }

    .chatbot-container {
        right: 20px;
        left: auto;
    }

    .quick-replies {
        flex-direction: column;
    }

    .quick-reply {
        width: 100%;
        text-align: left;
    }
}