/* Basic menu styling */
.menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    margin: 0;
    flex-wrap: nowrap;
}

.menu a {
    transition: transform 0.2s;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 3px 3px 7px #d9d9d9, -3px -3px 7px #ffffff;
    text-decoration: none;
    color: var(--primary);
    white-space: nowrap;
}

.menu a:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

/* Profile image styling */
.profile-image {
    border-radius: 50%;
    border: 4px solid #3273dc;
    box-shadow: 0 0 20px rgba(50, 115, 220, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Profile content styling */
.profile-mode-subtitle {
    line-height: 1.6;  /* Further reduced */
    position: relative;
    z-index: 1;
    text-align: left;
    padding-right: 20%;
    font-size: 1rem;  /* Reduced from 1.1rem */
}

/* Title size */
.profile-mode-title {
    font-size: 2.2rem !important;  /* Reduced from 2.5rem */
    margin-bottom: 1.2rem;
    font-weight: 700;
}

/* Section headings */
.profile-mode-subtitle strong {
    font-size: 1.3rem;  /* Reduced from 1.5rem */
    display: block;
    margin: 1.2rem 0 0.8rem;
    font-weight: 600;
}

/* Text content */
.profile-mode-subtitle p,
.profile-mode-subtitle ul {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;  /* Reduced padding */
    margin: 10px 0;
    border-radius: 8px;
    text-align: left;
    display: inline-block;
    font-size: 1rem;  /* Reduced from 1.1rem */
}

/* List items */
.profile-mode-subtitle ul {
    padding-left: 2em;  /* Reduced from 2.5em */
    margin-left: 0;
}

.profile-mode-subtitle ul li {
    margin: 0.6em 0;  /* Reduced from 0.8em */
    line-height: 1.5;  /* Reduced from 1.6 */
}

/* Add background animation */
body {
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 35%;  /* Changed from 50% to 35% to move it higher */
    right: -25%;
    width: 90%;
    height: 100vh;
    background: url('/images/protein-interaction.svg') no-repeat center right;
    background-size: contain;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
    transform: translateY(-50%) scale(2.2);
    animation: float 6s ease-in-out infinite;
}

/* Update the floating animation to match new position */
@keyframes float {
    0% {
        transform: translateY(-50%) scale(2.2);
    }
    50% {
        transform: translateY(-45%) scale(2.2);
    }
    100% {
        transform: translateY(-50%) scale(2.2);
    }
}

/* Add protein interaction illustration */
.protein-animation {
    position: fixed;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 800px;
    height: 400px;
    opacity: 0.2; /* Adjust transparency */
    z-index: 0;
    pointer-events: none; /* Makes sure it doesn't interfere with clicking */
}

.protein-animation svg {
    width: 100%;
    height: 100%;
    transform: scale(1.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .profile-mode-subtitle::after {
        width: 100%;
        height: 150px;
    }
    
    .protein-animation {
        width: 100%;
        right: 0;
        opacity: 0.15; /* Slightly more transparent on mobile */
    }
}

/* Research section layout */
.research-section {
    position: relative;
    width: 100%;
    z-index: 1;
}

.research-text {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); /* Slight white background to ensure text readability */
}

/* Make it responsive */
@media (max-width: 768px) {
    .research-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .research-text {
        flex: 1;
        padding-right: 0;
    }
    
    .protein-animation {
        flex: 1;
        height: 300px;
    }
    
    .protein-animation svg {
        position: relative;
        height: 300px;
        transform: scale(1);
    }
}

/* Adjust text container positioning */
.main {
    padding-left: 5%;
    max-width: 65%;
}

/* Smaller buttons */
.button {
    font-size: 1rem;  /* Reduced from 1.1rem */
    padding: 10px 20px;  /* Reduced padding */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .profile-mode-title {
        font-size: 1.8rem !important;
    }
    
    .profile-mode-subtitle {
        font-size: 0.95rem;
        padding-right: 10%;
    }
    
    .profile-mode-subtitle strong {
        font-size: 1.2rem;
    }
    
    .profile-mode-subtitle p,
    .profile-mode-subtitle ul {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    
    .button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}
