/* assets/css/about.css */

html {
    scroll-behavior: smooth;
}

/* About Hero Section */
.about-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 0;
    scroll-snap-align: start;
    margin-top: 40px;
}

.about-hero h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.about-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

/* Founders Section */
.founders {
    padding: 80px 0;
    background-color: white;
    scroll-snap-align: start;
}

.founders h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 60px;
    color: #333;
}

.founder-card {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.founder-image {
    flex: 0 0 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.founder-image img {
    width: 100%;
    height: auto;
    display: block;
}

.founder-info {
    flex: 1;
}

.founder-info h3 {
    font-size: 2em;
    color: #084683;
    margin-bottom: 10px;
}

.founder-info h4 {
    font-size: 1.2em;
    color: #0066cc;
    margin-bottom: 30px;
    font-weight: 500;
}

.founder-description p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* 首字符下沉效果 */
.dropcap {
    float: left;
    font-size: 3.5em;
    padding: 0.1em 0.1em 0 0;
    line-height: 0.8;
    color: #0066cc;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
    .founder-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .founder-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .dropcap {
        float: none;
        font-size: 2em;
        padding: 0;
        color: #0066cc;
    }

    .founders {
        padding: 60px 20px;
    }
}

/* Services Section */
.services {
    padding: 40px 0;
}

/* Scroll Snapping */
body {
    scroll-snap-type: y mandatory;
}

.services h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #333;
}

/* Service Items */
.service-item {
    min-height: 20vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Layout for alternating content */
.service-item.left {
    flex-direction: row;
}

.service-item.right {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    padding: 0 40px;
}

.service-content h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #0066cc;
}

.service-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
}

/* Animation Canvas */
.service-animation {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-canvas {
    width: 100%;
    height: 100%;
}

/* Scroll Snapping */
main {
    scroll-snap-type: y mandatory;
}

/* Company Name Highlight */
.company-name {
    color: #0066cc;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero {
        padding: 60px 20px;
    }

    .service-item {
        flex-direction: column !important; /* Override left/right layouts */
        text-align: center;
        padding: 20px;
    }

    .service-content {
        padding: 20px 0;
    }

    .service-animation {
        height: 100px;
        margin: 20px 0;
    }

    .about-hero h1 {
        font-size: 2em;
    }

    .service-content h3 {
        font-size: 1.5em;
    }
}

/* Animation Hover Effects */
.service-content:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Section Transitions */
.about-hero,
.service-item {
    transition: background-color 0.3s ease;
}