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

@font-face {
    font-family: 'GeistSans';
    src: url('../fonts/Geist-Regular.woff2') format('woff2'),
         url('../fonts/Geist-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GeistSans';
    src: url('../fonts/Geist-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'GeistSans', sans-serif;
    font-weight: 400;
    background-color: #FFFFFF;
    min-height: 100vh;
}

.dark body {
    background-color: #0B0B0B;
}

.page-content {
    width: 700px;
    margin: 0 auto;
    padding: 80px 24px 175px;
}

.section-grid {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 32px;
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 16px;
    line-height: 24px;
    color: #646464;
    height: 100%;
    display: flex;
    align-items: flex-start;
    font-weight: 400;
}

.section-content {
    width: auto;
}

.section-text {
    color: #202020;
    line-height: 26px;
    font-size: 16px;
    margin-bottom: 24px;
}

.about-header {
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    color: #202020;
    margin-bottom: 12px;
}

.about-subheader {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #646464;
    margin-bottom: 24px;
}

.profile-image {
    border-radius: 8px;
    margin: 0 auto 32px;
    max-width: 680px;
    width: 100%;
    height: auto;
    display: none;
}

.profile-image[data-light] {
    display: block;
}

.profile-image[data-dark] {
    display: none;
}

.dark .profile-image[data-light] {
    display: none;
}

.dark .profile-image[data-dark] {
    display: block;
}

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

.connect-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(32, 32, 32, 0.05);
    color: #202020;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1;
}

.connect-grid:hover .connect-button:not(:hover) {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.connect-button:hover {
    opacity: 1 !important;
}

.connect-icon, .connect-arrow {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s;
}

.connect-arrow {
    margin-left: auto;
}

.work-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-timeline:hover .work-item:not(:hover) {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(32, 32, 32, 0.1);
    opacity: 1;
}

.work-item:hover {
    background-color: rgba(32, 32, 32, 0.03);
    opacity: 1 !important;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(32, 32, 32, 0.1);
}

.work-info {
    flex-grow: 1;
}

.company {
    font-weight: 400;
    color: #202020;
}

.position {
    color: #666;
}

.date {
    text-align: right;
    min-width: 120px;
    color: #666;
}

.dark .section-title {
    color: #b4b4b4;
}

.dark .section-text {
    color: #EEEEEE;
}

.dark .about-header {
    color: #EEEEEE;
}

.dark .about-subheader {
    color: #b4b4b4;
}

.dark .connect-button {
    background: #191919;
    color: #EEEEEE;
}

.dark .work-item {
    border-color: rgba(238, 238, 238, 0.1);
}

.dark .work-item:hover {
    background-color: rgba(238, 238, 238, 0.03);
}

.dark .company-logo {
    border-color: rgba(238, 238, 238, 0.1);
}

.dark .company {
    color: #EEEEEE;
}

.dark .position,
.dark .date {
    color: #b4b4b4;
}

.dark .connect-icon[data-light],
.dark .connect-arrow[data-light] {
    display: none;
}

.dark .connect-icon[data-dark],
.dark .connect-arrow[data-dark] {
    display: inline-block;
}

.profile-photos {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 40px 0;
}

.photo {
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-3 {
    width: 320px;
    height: 250px;
    margin-left: -35px;
    margin-top: 20px;
    z-index: 1; 
}

.photo-1, .photo-3 {
    transform: rotate(-6deg);
}
  
.photo-2, .photo-4 {
    transform: rotate(6deg);
}

.photo-2,
.photo-4 {
    margin-left: -40px;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-content {
        width: 100%;
        padding: 80px 16px 40px;
    }

    .section-grid {
        display: block;
        margin-bottom: 40px;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .connect-grid {
        grid-template-columns: 1fr;
    }

    .connect-button {
        padding: 16px;
    }

    .photo-2,
    .photo-3 {
        display: none;
    }

    .photo {
        width: 160px;
    }

  .photo-1 {
    width: 200px;
    height: 220px;
    transform: rotate(-8deg);
    margin-left: 0;
  }
  .photo-4 {
    transform: rotate(8deg);
    margin-left: -40px;
    margin-top: 15px;
  }

    .work-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }

    .date {
        text-align: left;
        width: 100%;
    }
}