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

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Navigation */
.header {
    background: linear-gradient(90deg, #9BAFD9 0%, #B8C5E0 25%, #ffffff 50%, #B8C5E0 75%, #9BAFD9 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Service Section */
.service-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5670 100%);
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.3);
}

.section-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse > * {
    direction: ltr;
}

.service-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-description {
    padding: 20px;
}

.service-description p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.highlight-text {
    color: #2d5670;
    font-weight: 500;
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding: 0 30px;
}

.tag {
    background: linear-gradient(135deg, #9BAFD9 0%, #B8C5E0 100%);
    color: #2C3E50;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(155, 175, 217, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 175, 217, 0.5);
}

/* CTA Button */
.cta-button-container {
    text-align: center;
    margin: 60px 0 40px 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1a8b7e 0%, #22a89a 100%);
    color: white;
    padding: 15px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(26, 139, 126, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(26, 139, 126, 0.6);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5670 100%);
    color: white;
    padding: 50px 20px 30px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.footer-logo h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 16px;
    color: #B8C5E0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #B8C5E0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #9BAFD9;
}

.footer-social {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    line-height: 40px;
    text-align: center;
    margin: 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-items {
        gap: 20px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .logo {
        grid-column: 1 / -1;
        justify-self: center;
        margin-bottom: 8px;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 14px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .service-tags {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-column {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-items {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    
    .nav-items::-webkit-scrollbar {
        display: none;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
        margin: 0;
    }
    
    .logo img {
        width: 38px;
        height: 38px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
        width: auto;
    }
    
    .service-description p {
        font-size: 14px;
    }
    
    .tag {
        font-size: 12px;
        padding: 8px 15px;
    }
}

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

.modal[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, #9BAFD9 0%, #B8C5E0 100%) !important;
    padding: 50px 60px !important;
    border-radius: 30px !important;
    max-width: 600px !important;
    width: 90% !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    animation: slideDown 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #1a3a52;
    transform: rotate(90deg);
}

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

.login-form {
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.form-group label {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    min-width: 80px;
    text-align: left;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    background: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.2);
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.btn-login,
.btn-register {
    padding: 15px 50px;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #5a6b7f;
}

.btn-login {
    min-width: 150px;
}

.btn-register {
    min-width: 120px;
    color: #1a3a52;
}

.btn-login:hover,
.btn-register:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.business-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.btn-business {
    padding: 12px 30px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: #1a3a52;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-business:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 40px 30px !important;
        width: 95% !important;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .form-group label {
        min-width: auto;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-login,
    .btn-register {
        width: 100%;
    }
    
    .business-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-business {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px !important;
    }
    
    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 30px;
    }
    
    .form-group label {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn-login,
    .btn-register {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .btn-business {
        padding: 10px 20px;
        font-size: 14px;
    }
}