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

:root {
    --surface: #141518;
    --grey-50: #F7F7F8;
    --grey-300: #A9A9BD;
    --grey-400: #8A8AA3;
    --grey-600: #55556D;
    --grey-800: #282833;
    --grey-850: #191A1D;
    --blue-50: #85A7FF;
    --blue-100: #507FF7;
    --blue-600: #1F3260;
    --blue-700: #1A2542;
    --primary-gradient: linear-gradient(149deg, #6B93F7 0%, #124AD8 100%);
    --accent-blue: #3D71F3;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    color: var(--grey-50);
    line-height: 1.6;
}

.container {
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--surface);
    overflow: hidden;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 48px;
    border-bottom: 1px solid var(--grey-800);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 96px;
}

.logo-text {
    color: white;
    font-size: 21px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
}

.nav-buttons {
    display: flex;
    gap: 4px;
}

.nav-button {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--grey-300);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-button {
    padding: 8px 16px;
    background: var(--primary-gradient);
    border-radius: 360px;
    color: var(--grey-50);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 120px 48px;
    text-align: center;
    border-bottom: 1px solid var(--grey-800);
}

.hero-badge {
    padding: 10px 20px;
    background: var(--blue-700);
    border-radius: 360px;
    outline: 1px solid var(--blue-600);
    color: var(--blue-50);
    font-size: 14px;
    font-weight: 500;
}

.hero-title {
    font-size: 80px;
    font-weight: 600;
    line-height: 1;
}

.hero-description {
    max-width: 696px;
    color: var(--grey-400);
    font-size: 16px;
    line-height: 1.5;
}

.cta-button-sm {
    padding: 6px 14px;
    font-size: 14px;
}

/* General Section Styles */
.section {
    border-bottom: 1px solid var(--grey-800);
}

.section-content {
    padding: 64px;
}

.section-icon {
    margin-bottom: 12px;
}

.section-title {
    font-size: 62px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-text {
    color: var(--grey-400);
    font-size: 16px;
}

/* Two Column Layout */
.two-column {
    display: flex;
}

.two-column-reverse {
    flex-direction: row-reverse;
}

.column {
    flex: 1;
}

.column-content {
    padding: 64px;
}

.column-dark {
    background: var(--grey-850);
}

.column-border-right {
    border-right: 1px solid var(--grey-800);
}

.column-border-left {
    border-left: 1px solid var(--grey-800);
}

/* Visualization Container */
.visualization-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 64px;
}

.visualization-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Ship Visualization */
.visualization-section {
    background-color: var(--grey-850);
    padding: 0px 0;
    border-top: 1px solid var(--grey-800);
    border-bottom: 1px solid var(--grey-800);
    position: relative;
}

.visualization-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ship-visualization-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Expertise Insights Section */
.expertise-insights-section {
    padding: 80px 48px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--grey-800);
}

.expertise-insights-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.expertise-insight-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    padding: 20px 40px 20px 0;
}

.expertise-insight-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--blue-100);
}

.expertise-insight-card .section-title {
    font-size: 24px;
    margin: 12px 0;
    color: var(--grey-50);
}

.expertise-insight-card .section-text {
    color: var(--grey-400);
    font-size: 16px;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 40px 64px 96px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-image {
    height: 300px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(165deg, var(--blue-700) 0%, var(--surface) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Add unique gradients for each feature card */
.features-grid .feature-card:nth-child(1) .feature-image {
    background: linear-gradient(165deg, #1F3260 0%, #141518 70%);
}

.features-grid .feature-card:nth-child(2) .feature-image {
    background: linear-gradient(165deg, #1A2542 0%, #141518 70%);
}

.features-grid .feature-card:nth-child(3) .feature-image {
    background: linear-gradient(165deg, #1F3260 0%, #141518 70%);
}


.feature-title {
    font-size: 22px;
    font-weight: 600;
}

.feature-description {
    color: var(--grey-400);
    font-size: 14px;
}

/* Offer Section */
.offer-section .section-content {
    position: relative;
    overflow: hidden;
}

.cta-button-offer {
    display: inline-block;
    margin-top: 20px;
}

/* Contact Section */
.contact-section {
    display: flex;
}

.contact-form-container {
    flex: 1;
    padding: 42px 64px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

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

.form-label {
    font-size: 16px;
    font-weight: 500;
}

.form-input {
    padding: 12px;
    background: var(--grey-850);
    border-radius: 8px;
    border: 1px solid var(--grey-800);
    color: var(--grey-50);
    font-family: inherit;
    font-size: 16px;
}

.form-input::placeholder {
    color: var(--grey-600);
}

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

.cta-button-form {
    align-self: stretch;
    text-align: center;
}

/* Form Status Messages */
.form-status {
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background-color: #1A423A; /* Dark green */
    color: #6EE7B7; /* Light green */
}

.form-status.error {
    background-color: #42202A; /* Dark red */
    color: #F87171; /* Light red */
}

.form-status.pending {
    background-color: #1F3260; /* Dark blue */
    color: #85A7FF; /* Light blue */
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    border-top: 1px solid var(--grey-800);
}

.footer-links, .footer-links-right {
    display: flex;
    gap: 20px;
}

/* Gradients */
.hero-gradient {
    position: absolute;
    width: 332px;
    height: 332px;
    background: var(--accent-blue);
    border-radius: 9999px;
    filter: blur(172px);
    z-index: -1;
}

.hero-gradient-1 {
    right: 0;
    bottom: 0;
}

.hero-gradient-2 {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 370px;
    height: 332px;
    background: var(--accent-blue);
    border-radius: 9999px;
    filter: blur(172px);
}

/* Chat Mockup Styles */
.chat-mockup {
    background-color: #1E1F22;
    border-radius: 16px;
    padding: 20px;
    margin: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
}

.chat-mockup-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-mockup-logo-icon {
    width: 28px;
    height: 28px;
    background-image: url('/images/logo.ico');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    border-radius: 50%;
}

.chat-mockup-title {
    color: var(--grey-50);
    font-weight: 500;
    font-size: 15px;
    flex-grow: 1;
}

.chat-mockup-close-button {
    background: none;
    border: none;
    color: var(--grey-400);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.chat-mockup-close-button:hover {
    opacity: 1;
}

.chat-mockup-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-mockup-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
}

.chat-mockup-message p {
    padding: 12px 16px;
    border-radius: 20px;
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

.chat-mockup-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-mockup-message-user p {
    background-color: #4A7BF7;
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-mockup-message-bot {
    align-self: flex-start;
}

.chat-mockup-message-bot p {
    background-color: rgba(255, 255, 255, 0.08);
    color: #C5C5D2;
    border-bottom-left-radius: 6px;
}

.chat-mockup-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--grey-600);
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.chat-mockup-avatar-user {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z' fill='white'/%3E%3C/svg%3E%0A");
    background-color: rgba(255, 255, 255, 0.15);
}

.chat-mockup-avatar-bot {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.34 11.94C3.15 11.54 3 11.1 3 10.64C3 8.75 4.18 7.21 5.81 6.55L6.5 6.25L6.25 5.5C5.71 4.03 6.91 2.5 8.43 2.5H15.57C17.09 2.5 18.29 4.03 17.75 5.5L17.5 6.25L18.19 6.55C19.82 7.21 21 8.75 21 10.64C21 11.1 20.85 11.54 20.66 11.94L19.5 14.23L18.81 16.32C18.42 17.73 17.16 18.75 15.68 18.75H8.32C6.84 18.75 5.58 17.73 5.19 16.32L4.5 14.23L3.34 11.94ZM12 15.5C12.83 15.5 13.5 14.83 13.5 14C13.5 13.17 12.83 12.5 12 12.5C11.17 12.5 10.5 13.17 10.5 14C10.5 14.83 11.17 15.5 12 15.5ZM10 10.5C10.55 10.5 11 10.05 11 9.5C11 8.95 10.55 8.5 10 8.5C9.45 8.5 9 8.95 9 9.5C9 10.05 9.45 10.5 10 10.5ZM14 10.5C14.55 10.5 15 10.05 15 9.5C15 8.95 14.55 8.5 14 8.5C13.45 8.5 13 8.95 13 9.5C13 10.05 13.45 10.5 14 10.5Z' fill='white'/%3E%3C/svg%3E%0A");
    background-color: #4A7BF7;
}

/* Chat Widget Styles */
.chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-toggle-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.chat-toggle-button:hover {
    transform: scale(1.1);
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--surface);
    border: 1px solid var(--grey-800);
    border-radius: 16px;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--grey-850);
    border-bottom: 1px solid var(--grey-800);
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
}

.chat-close-button {
    background: none;
    border: none;
    color: var(--grey-300);
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message.user {
    background: var(--blue-700);
    color: var(--grey-50);
    align-self: flex-end;
}

.chat-message.bot {
    background: var(--grey-800);
    color: var(--grey-300);
    align-self: flex-start;
}

.chat-message-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 90%;
}

.user-message-container {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message-container {
    align-self: flex-start;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--grey-600);
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.user-avatar {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z' fill='white'/%3E%3C/svg%3E%0A");
}

.bot-avatar {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.34 11.94C3.15 11.54 3 11.1 3 10.64C3 8.75 4.18 7.21 5.81 6.55L6.5 6.25L6.25 5.5C5.71 4.03 6.91 2.5 8.43 2.5H15.57C17.09 2.5 18.29 4.03 17.75 5.5L17.5 6.25L18.19 6.55C19.82 7.21 21 8.75 21 10.64C21 11.1 20.85 11.54 20.66 11.94L19.5 14.23L18.81 16.32C18.42 17.73 17.16 18.75 15.68 18.75H8.32C6.84 18.75 5.58 17.73 5.19 16.32L4.5 14.23L3.34 11.94ZM12 15.5C12.83 15.5 13.5 14.83 13.5 14C13.5 13.17 12.83 12.5 12 12.5C11.17 12.5 10.5 13.17 10.5 14C10.5 14.83 11.17 15.5 12 15.5ZM10 10.5C10.55 10.5 11 10.05 11 9.5C11 8.95 10.55 8.5 10 8.5C9.45 8.5 9 8.95 9 9.5C9 10.05 9.45 10.5 10 10.5ZM14 10.5C14.55 10.5 15 10.05 15 9.5C15 8.95 14.55 8.5 14 8.5C13.45 8.5 13 8.95 13 9.5C13 10.05 13.45 10.5 14 10.5Z' fill='white'/%3E%3C/svg%3E%0A");
    background-color: var(--blue-700);
}

.chat-input-container {
    display: flex;
    padding: 16px;
    border-top: 1px solid var(--grey-800);
}

.chat-input {
    flex: 1;
    padding: 10px;
    background: var(--grey-850);
    border: 1px solid var(--grey-600);
    border-radius: 8px;
    color: var(--grey-50);
    font-family: inherit;
    margin-right: 8px;
}

.chat-send-button {
    padding: 10px 16px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 60px;
    }

    .section-title {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 16px;
    }

    .nav-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
        gap: 8px;
    }

    .hero {
        padding: 40px 24px;
        text-align: center;
    }

    .section {
        padding: 40px 24px;
    }

    .two-column {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }

    .column-content {
        padding: 40px 24px;
    }

    .column-border-right, .column-border-left {
        border: none;
        border-bottom: 1px solid var(--grey-800);
    }

    .chat-mockup {
        margin-top: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 24px 60px;
    }
    
    .feature-image {
        height: auto;
        min-height: 220px;
    }
    
    .feature-image img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 220px;
    }

    .contact-section {
        flex-direction: column;
    }

    .contact-form-container {
        width: 100%;
    }

    /* Mobile ship visualization */
    .visualization-section {
        padding: 20px 0;
    }

    .visualization-container {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ship-visualization-img {
        width: 800px; /* Set a fixed width for mobile */
        max-width: none;
    }
    
    /* Mobile expertise insights */
    .expertise-insights-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .feature-title {
        font-size: 20px;
    }
    
    /* Smaller mobile ship visualization */
    .visualization-section {
        padding: 20px 0;
    }
    
    .ship-visualization-img {
        width: 600px; /* Slightly smaller for very small screens but maintains aspect ratio */
    }
    
    /* Feature card images on small screens */
    .features-grid {
        padding: 30px 16px 40px;
    }
    
    .feature-image {
        min-height: 180px;
    }
    
    .feature-image img {
        max-height: 180px;
    }
}