/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #1a365d;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    color: #2d3748;
}

h4 {
    font-size: 1.4rem;
    color: #2d3748;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #2c5282;
    border-left: 4px solid #c6a96b;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    background: #f7fafc;
    padding: 1rem 1rem 1rem 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 80px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a365d;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #c6a96b;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c6a96b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2d3748;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #c6a96b;
    color: white;
    border-color: #c6a96b;
}

.btn-primary:hover {
    background-color: #b8985a;
    border-color: #b8985a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 169, 107, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #c6a96b;
    border-color: #c6a96b;
}

.btn-secondary:hover {
    background-color: #c6a96b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 169, 107, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #2d3748;
    border-color: #2d3748;
}

.btn-outline:hover {
    background-color: #2d3748;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 55, 72, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(45, 55, 72, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: white;
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    font-weight: 500;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 80px 0;
}

.who-we-are {
    background-color: #f7fafc;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Services Preview */
.services-preview {
    background-color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: #c6a96b;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #1a365d;
}

.service-link {
    color: #c6a96b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #b8985a;
}

/* About Section */
.about {
    background-color: #f7fafc;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy {
    margin-bottom: 4rem;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.philosophy-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.how-we-operate {
    margin-bottom: 4rem;
}

.operate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.operate-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.operate-item h4 {
    color: #c6a96b;
    margin-bottom: 1rem;
}

.operate-conclusion {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a365d;
    margin-top: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #c6a96b;
}

.team-member h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #c6a96b;
    font-weight: 500;
}

/* Services Section */
.services {
    background-color: white;
}

.services-detailed {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.service-detail {
    background: #f7fafc;
    padding: 3rem;
    border-radius: 15px;
    border-left: 5px solid #c6a96b;
}

.service-detail h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-features, .service-approach, .service-advantages {
    margin: 2rem 0;
}

.service-features h4, .service-approach h4, .service-advantages h4 {
    color: #c6a96b;
    margin-bottom: 1rem;
}

.service-features ul, .service-approach ul, .service-advantages ul {
    list-style: none;
    padding-left: 0;
}

.service-features li, .service-approach li, .service-advantages li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before, .service-approach li::before, .service-advantages li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c6a96b;
    font-weight: bold;
}

/* Why Trust Section */
.why-trust {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    color: white;
}

.why-trust h2, .why-trust h3, .why-trust h4, .why-trust h5 {
    color: white;
}

.why-trust p {
    color: #e2e8f0;
}

.trust-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.trust-intro blockquote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #c6a96b;
    color: #e2e8f0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #c6a96b;
    margin-bottom: 1rem;
}

.benefit-item h5 {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.benefit-item p {
    color: #cbd5e0;
    font-size: 0.9rem;
}

.trust-cta {
    text-align: center;
    margin: 3rem 0;
}

.jurisdictional-confidence {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.hk-benefits ul {
    list-style: none;
    padding-left: 0;
}

.hk-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.hk-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c6a96b;
    font-weight: bold;
}

/* Insights Section */
.insights {
    background-color: #f7fafc;
}

.insights-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.insight-article {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.insight-article h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
}

.insight-article h4 {
    color: #c6a96b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.insight-article ul {
    list-style: none;
    padding-left: 0;
}

.insight-article li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.insight-article li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c6a96b;
    font-weight: bold;
}

.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background-color: #1a365d;
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.offshore-benefits {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit h5 {
    color: #c6a96b;
    margin-bottom: 0.5rem;
}

.insights-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #2d3748, #1a365d);
    color: white;
}

.contact h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3 {
    color: #c6a96b;
    margin-bottom: 2rem;
}

.contact-item p {
    color: #e2e8f0;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #c6a96b;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-item a {
    color: #e2e8f0;
    text-decoration: none;
}

.contact-item a:hover {
    color: #c6a96b;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group select {
    color: white;
}

.form-group select option {
    background: #2d3748;
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Legal Section */
.legal {
    background-color: #1a365d;
    color: white;
    padding: 60px 0;
}

.legal h2 {
    color: white;
    margin-bottom: 2rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-disclaimer h3 {
    color: #c6a96b;
    margin-bottom: 1rem;
}

.legal p {
    color: #e2e8f0;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    color: #a0aec0;
    margin: 0;
}

.footer a {
    color: #c6a96b;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
    text-align: left;
}

.modal-close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #c6a96b;
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h3 {
    color: #1a365d;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-body h4 {
    color: #c6a96b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.modal-body a {
    color: #c6a96b;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body strong {
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .philosophy-image {
        order: -1;
    }

    .operate-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        gap: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Modal Responsive */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(85vh - 100px);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-close {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-text {
        display: none;
    }

    .service-card, .operate-item, .team-member {
        padding: 1.5rem;
    }

    .service-detail, .insight-article {
        padding: 2rem;
    }

    .philosophy-image img {
        height: 250px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th, .comparison-table td {
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .operate-item, .team-member, .benefit-item, .insight-article {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c6a96b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8985a;
}
