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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #A999D4;
    color: #1a1a1a;
    overflow-x: hidden;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Left Side - Transitions */
.left-side {
    flex: 1;
    position: relative;
    padding: 40px;
}

.top-left-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    opacity: 0;
    transform: translate(-50px, 50px) scale(0.3);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.top-left-profile.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.cover-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cover-content.fade-out {
    opacity: 0;
}

.cover-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.cover-profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    background-color: white;
}

.cover-name {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    text-align: center;
}

.cover-email {
    font-size: 16px;
    color: #000;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* Right Side - Boxes (Always Visible) */
.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.menu-box {
    width: 100%;
    max-width: 560px;
    background-color: #000;
    color: #8F89C4;
    padding: 22px 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.menu-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-title {
    font-size: 22px;
    font-weight: 600;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch-track {
    width: 100%;
    height: 100%;
    background-color: rgba(143, 137, 196, 0.3);
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-switch-knob {
    width: 18px;
    height: 18px;
    background-color: #8F89C4;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.expanded-philosophy-box.expanded .toggle-switch-track,
.framework-box.expanded .toggle-switch-track,
.projects-box.expanded .toggle-switch-track {
    background-color: rgba(143, 137, 196, 0.5);
    transition: background-color 0.3s ease;
}

.expanded-philosophy-box.expanded .toggle-switch-knob,
.framework-box.expanded .toggle-switch-knob,
.projects-box.expanded .toggle-switch-knob {
    transform: translateX(20px);
}

/* Philosophy Content Left */
.philosophy-content-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    justify-content: center;
}

.philosophy-content-left.visible {
    opacity: 1;
}

/* Framework Content Left */
.framework-content-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    justify-content: center;
}

.framework-content-left.visible {
    opacity: 1;
}

.framework-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.framework-diagram.visible {
    opacity: 1;
}

.framework-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.framework-image {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: contain;
}

.framework-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #A999D4;
    transform: translateY(0);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.framework-diagram.visible .framework-reveal-overlay {
    transition-delay: 0.5s;
    transform: translateY(100%);
}

.small-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: white;
}

.name-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.small-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.email-icon-link,
.linkedin-icon-link {
    display: flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.email-icon-link:hover,
.linkedin-icon-link:hover {
    opacity: 0.7;
}

.email-icon,
.linkedin-icon {
    width: 20px;
    height: 20px;
}

.evolution-diagram {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 40px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.evolution-diagram.visible {
    opacity: 1;
    transform: translateX(0);
}

.evolution-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.evolution-image-container {
    position: relative;
    width: 100%;
}

.evolution-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.evolution-part {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 33.33%;
    overflow: hidden;
}

.evolution-part.part-1 {
    left: 0;
}

.evolution-part.part-2 {
    left: 33.33%;
}

.evolution-part.part-3 {
    left: 66.66%;
}

.part-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #A999D4;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.part-1.visible .part-overlay {
    transition-delay: 0.3s;
    transform: translateX(100%);
}

.part-2.visible .part-overlay {
    transition-delay: 0.6s;
    transform: translateX(100%);
}

.part-3.visible .part-overlay {
    transition-delay: 0.9s;
    transform: translateX(100%);
}

.evolution-labels {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 0;
    position: relative;
}

.evolution-label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.evolution-label.label-1 {
    flex: 0 0 33.33%;
}

.evolution-label.label-1.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.evolution-label.label-2 {
    flex: 0 0 33.33%;
}

.evolution-label.label-2.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.6s;
}

.evolution-label.label-3 {
    flex: 0 0 33.33%;
    margin-left: 2%;
}

.evolution-label.label-3.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.9s;
}


.expanded-philosophy-box {
    width: 100%;
    max-width: 560px;
    background-color: #000;
    color: #8F89C4;
    padding: 22px 35px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expanded-philosophy-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.expanded-philosophy-box .box-header {
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.expanded-philosophy-box.expanded .box-header {
    margin-bottom: 18px;
}

.philosophy-content {
    font-size: 15px;
    line-height: 1.75;
    color: #8F89C4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.expanded-philosophy-box.expanded .philosophy-content {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.15s;
}

.philosophy-content p {
    margin: 0 0 12px 0;
}

.philosophy-content p:last-child {
    margin-bottom: 0;
}

.framework-box-content {
    font-size: 15px;
    line-height: 1.75;
    color: #8F89C4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    margin-top: 0;
}

.framework-box.expanded .framework-box-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 18px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.15s;
}

/* Projects Content Left */
.projects-content-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    justify-content: center;
    padding-top: 80px;
}

.projects-content-left.visible {
    opacity: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px 14px;
    padding: 0 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 140px;
    max-height: 170px;
    justify-content: center;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.genkle-card {
    background-color: #FF6B35;
}

.trachemy-card {
    background-color: #FFD23F;
}

.ftja-card {
    background-color: #4ECDC4;
}

.cretok-card {
    background-color: #FFD23F;
}

.places-card {
    background-color: #FF4757;
}

.project-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.project-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin: 0;
}

.project-description {
    font-size: 11px;
    color: #000;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 0;
}

.tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #000;
}

.genkle-tags .tag {
    background-color: #FF6B35;
}

.trachemy-tags .tag {
    background-color: #FFD23F;
}

.ftja-tags .tag {
    background-color: #4ECDC4;
}

.cretok-tags .tag {
    background-color: #FFD23F;
}

.places-tags .tag {
    background-color: #FF4757;
}

.projects-box-content {
    font-size: 15px;
    line-height: 1.75;
    color: #8F89C4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    margin-top: 0;
}

.projects-box.expanded .projects-box-content {
    max-height: 800px;
    opacity: 1;
    margin-top: 18px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.15s;
}

.projects-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.projects-list li {
    margin-bottom: 12px;
    padding-left: 0;
}

.projects-list li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .cover-profile-img {
        width: 150px;
        height: 150px;
    }

    .cover-name {
        font-size: 28px;
    }

    .evolution-diagram {
        margin-top: 40px;
        padding-left: 20px;
    }
    
    .evolution-image {
        max-width: 90%;
    }
    
    .menu-box,
    .expanded-philosophy-box {
        max-width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 0 20px;
    }
    
    .projects-content-left {
        padding-top: 60px;
    }
}

