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

:root {
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #0066cc;
    --border-radius: 20px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    overflow-x: hidden;
}

.scroll-container {
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.card-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
}

/* Bio Card Styles */
.bio-card {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-card h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.last-updated {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    max-width: 660px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-out;
    cursor: grab;
    touch-action: pan-y;
}

.carousel-track:active {
    cursor: grabbing;
}

/* Outer slot: transparent, with padding to give the inner card's shadow room to render */
.carousel-card {
    min-width: 100%;
    flex-shrink: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 30px;
    display: flex;
}

/* Inner element: the actual visible card */
.card-inner {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 60px 40px;
    flex: 1;
    box-sizing: border-box;
}

.title-card {
    align-items: center;
}

.title-card .card-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.title-card h2 {
    font-size: 3rem;
    color: var(--text-primary);
}

.content-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.content-card ul {
    list-style-position: outside;
    padding-left: 1.25em;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-card ul li {
    padding-left: 0.25em;
}

.content-card .company {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-diagram {
    width: 100%;
    height: 200px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
    overflow: hidden;
}

.card-diagram img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-diagram.card-diagram--wide {
    height: auto;
}

.card-diagram.card-diagram--wide img {
    width: 100%;
    height: auto;
    max-height: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 40px 30px;
    }
    
    .bio-card h1 {
        font-size: 2rem;
    }
    
    .title-card h2 {
        font-size: 2.5rem;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
}
