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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #E8E4D8;
    color: #333333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: #E8E4D8;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #333333;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-link {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lang-link.active {
    opacity: 1;
}

.login-btn {
    padding: 8px 20px;
    border: 1px solid #333333;
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: #333333;
    color: #E8E4D8;
}

/* Hero */
.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #666666;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: transparent;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px 10px 10px 0;
    background: transparent;
    border: 1px solid #333333;
    color: #333333;
    text-decoration: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #333333;
    color: #E8E4D8;
}

.btn-outline {
    background: transparent;
    border: 1px solid #333333;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.product-card {
    padding: 30px;
    background-color: #e8e6df;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    margin-bottom: 10px;
    font-weight: 400;
}

.product-card p {
    color: #666666;
    font-size: 15px;
}

/* Family Map */
.map-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.base-map {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.country-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.country-overlay.active {
    opacity: 1;
}

/* News Grid */
.news-grid-wrapper {
    max-width: 1176px;
    margin: 40px auto;
    padding: 0 20px;
}

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

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #F6F4EE;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-card h3 {
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.news-date {
    color: #999999;
    font-size: 14px;
    margin-bottom: 12px;
}

.news-card p {
    font-size: 15px;
    color: #666666;
    margin-bottom: 15px;
}

.news-source {
    font-size: 13px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card a {
    color: inherit;
    text-decoration: none;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 30px auto;
    max-width: 1200px;
}

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

.contact-info {
    padding: 30px;
    background-color: rgba(232, 230, 223, 0.3);
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.info-section {
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-section p {
    margin: 0;
    color: #333;
}

.info-section strong {
    color: #333;
    font-weight: 600;
}

.info-section a {
    color: #4A90E2;
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0077B5;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.linkedin-link:hover {
    background-color: #006399;
    text-decoration: none !important;
}

.linkedin-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input,
.textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(51, 51, 51, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    background: white;
}

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

/* AI Chat Widget */
.ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.ai-widget-btn {
    width: 120px;
    height: 120px;
    background-image: url('images/ione/Roboicon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-widget-btn:hover {
    transform: scale(1.1);
}

.ai-chat {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #E8E4D8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-direction: column;
}

.ai-chat.active {
    display: flex;
    flex-direction: column;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.bot-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 5px;
}

.ai-chat-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333333;
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.ai-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    line-height: 1.5;
    font-size: 14px;
}

.ai-message.user {
    background: rgba(51, 51, 51, 0.1);
    margin-left: 20px;
    text-align: right;
}

.ai-message.bot {
    background: rgba(51, 51, 51, 0.05);
    margin-right: 20px;
}

.ai-chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.ai-chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(51, 51, 51, 0.2);
    border-radius: 4px;
    font-family: inherit;
}

.ai-chat-input button {
    margin-left: 10px;
    padding: 8px 15px;
    background: transparent;
    color: #333333;
    border: 1px solid #333333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-chat-input button:hover {
    background-color: #333333;
    color: #E8E4D8;
}

/* Typing indicator animation */
.ai-message.typing {
    display: flex;
    align-items: center;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #E8E4D8;
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 30px;
    font-weight: 400;
}

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.modal-tab {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #333333;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    color: #333333;
    transition: all 0.3s;
}

.modal-tab.active {
    background: #333333;
    color: #E8E4D8;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333333;
}

/* Philosophy Section */
.philosophy-section {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
}

.philosophy-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    border-left: 3px solid #333333;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.philosophy-signature {
    text-align: left;
    font-size: 32px;
    font-weight: 300;
    opacity: 0;
    animation: breathe 3s ease-in-out infinite;
    margin-bottom: 30px;
}

.engineer-corner-btn {
    display: inline-block;
    margin-top: 20px;
    font-size: 16px;
}

@keyframes breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* iONE Products Section */
.ione-section {
    padding: 80px 0;
    background-color: #E8E4D8;
}

.ione-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #e8e6df;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    background: #e8e6df;
    overflow: hidden;
}

.product-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    padding: 20px;
}

.product-image-slider img.active {
    display: block;
}

.product-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #333333;
    padding: 0;
}

.product-slider-arrow:hover {
    color: #000000;
    transform: translateY(-50%) scale(1.2);
}

.product-slider-arrow.prev {
    left: 0px;
}

.product-slider-arrow.next {
    right: 0px;
}

.product-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    background: #e8e6df;
}

.product-dot {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background-color: rgba(51, 51, 51, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.product-dot.active {
    background-color: #333333;
    width: 50px;
}

.product-dot:hover {
    background-color: rgba(51, 51, 51, 0.5);
}

.product-content {
    padding: 25px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 400;
}

.product-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.product-card .btn-ione {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: transparent;
    color: #333333;
    border: 1px solid #333333;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
}

.product-card .btn-ione:hover {
    background: #333333;
    color: #E8E4D8;
    transform: translateY(-2px);
}


/* Partnership Page */
.partnership-page {
    padding-top: 120px;
}

.page-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.3;
}

.partnership-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.partnership-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #666666;
}

.section-subtitle {
    font-size: 28px;
    margin: 60px 0 40px;
    font-weight: 400;
}

.partnership-step {
    max-width: 800px;
    margin: 0 auto 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.partnership-step:last-of-type {
    border-bottom: none;
}

.partnership-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
}

.partnership-step p {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
}

.partnership-benefits {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    padding: 25px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
}

.partnership-cta {
    text-align: center;
    margin-top: 60px;
}

/* Documents Section */
.documents-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.documents-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
}

.documents-list {
    max-width: 900px;
    margin: 0 auto;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.document-info p {
    font-size: 14px;
    color: #999999;
}

.document-actions {
    display: flex;
    gap: 15px;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333333;
    border: 1px solid rgba(51, 51, 51, 0.2);
    border-radius: 4px;
    transition: all 0.3s;
}

.doc-link:hover {
    background: #333333;
    color: white;
    border-color: #333333;
}

.doc-link:before {
    content: '';
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
}

.doc-link.view:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.doc-link.download:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.demo-link-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background-color: rgba(51, 51, 51, 0.03);
    border-radius: 8px;
    text-align: center;
}

.demo-link-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.demo-note {
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

/* Partnership Form */
.application-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.application-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
}

.partnership-form {
    max-width: 700px;
    margin: 0 auto;
}

.partnership-form .form-group {
    margin-bottom: 25px;
}

.partnership-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    color: #333333;
    border: 1px solid #333333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #333333;
    color: #E8E4D8;
}

.application-note {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(51, 51, 51, 0.03);
    border-radius: 8px;
}

.application-note h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.application-note ul {
    list-style: none;
    padding: 0;
}

.application-note li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.6;
}

.application-note li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
}

/* Principles Section */
.principles-section {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 60px 0;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.principles-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
}

.principles-section p:last-child {
    margin-top: 15px;
    display: inline-flex;
    gap: 8px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #333333;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }

    .logo {
        font-size: 20px;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }

    /* Hide nav by default on mobile */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #E8E4D8;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* Show nav when active */
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(51, 51, 51, 0.1);
        font-size: 16px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .lang-switcher {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    }

    .login-btn {
        margin-top: 10px;
        text-align: center;
        display: inline-block;
        width: auto;
    }

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

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

    .news-grid,
    .ione-section .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image-slider {
        height: 300px;
    }

    .product-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .container {
        padding: 0 15px;
    }
}
