/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), transparent);
    z-index: 1;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.2em;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* Cell Visualization */
.cell-section {
    padding: 40px 0;
    text-align: center;
}

.cell-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 50px auto;
    animation: pulse 4s infinite ease-in-out;
    z-index: 2;
}

.cell {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.05);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    overflow: hidden;
}

.nucleus {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 100, 214, 0.2);
    border: 2px solid var(--accent-color-2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 100, 214, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
}

.nucleus:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.organelle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.2);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.organelle:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-color);
}

.mitochondria {
    width: 40px;
    height: 25px;
    border-radius: 20px;
    animation: float 8s infinite;
}

.golgi {
    width: 50px;
    height: 30px;
    border-radius: 15px;
    animation: float 7s infinite;
}

.er {
    width: 60px;
    height: 20px;
    border-radius: 10px;
    animation: float 9s infinite;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.project-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s;
    position: relative;
    transform-style: preserve-3d;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.3s;
}

.project-card:hover .project-image {
    filter: grayscale(0%);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.7em;
    margin: 0 4px 4px 0;
    transition: all 0.3s;
}

/* Info Panel */
.info-panel {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: var(--secondary-bg);
    padding: 20px;
    border-left: 2px solid var(--accent-color);
    transition: right 0.3s;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.info-panel.active {
    right: 0;
}

.info-panel h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.info-panel p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
}

/* Particles */
.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    animation: float 15s infinite linear;
    box-shadow: 0 0 10px var(--accent-color);
}

.particle-dna {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color-2);
    box-shadow: 0 0 15px var(--accent-color-2);
    border-radius: 50%;
    animation: dnaFloat 20s infinite linear;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 1px var(--accent-color),
                     0 0 2px var(--accent-color),
                     0 0 3px var(--accent-color);
    }
    to {
        text-shadow: 0 0 2px var(--accent-color),
                     0 0 3px var(--accent-color),
                     0 0 4px var(--accent-color);
    }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 10px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes dnaFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.5); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .cell-container {
        width: 300px;
        height: 300px;
    }
    
    .nucleus {
        width: 90px;
        height: 90px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

