/* =========================================
   bioERGOtech Foundation — Homepage Styles
   ========================================= */

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --- Tech Lines --- */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tech-line {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: .2;
    top: 0;
    bottom: 0;
}

@keyframes tech-line-animation {
    0%   { opacity: 0; height: 0; }
    50%  { opacity: .2; height: 100%; }
    100% { opacity: 0; height: 0; }
}

/* --- Particles --- */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: .3;
}

@keyframes particle-animation {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    50%  { opacity: .5; }
    100% { transform: translateY(-500px) translateX(100px); opacity: 0; }
}

/* --- Float Animation --- */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* --- DNA Animation --- */
.dna-animation {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    opacity: .2;
    z-index: 0;
    overflow: hidden;
}

.dna-helix {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .3;
    animation: rotate-dna 20s linear infinite;
}

.dna-strand {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 10px;
    left: 50%;
    transform-origin: center;
}

@keyframes rotate-dna {
    from { transform: rotateY(0); }
    to   { transform: rotateY(360deg); }
}

/* --- Typing Cursor --- */
.typing {
    position: relative;
    display: inline-block;
}

.typing::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50%      { opacity: 0; }
}

/* --- Counters --- */
.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    transition: all .5s ease;
}

/* --- Quick Navigation Dots --- */
.quick-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.quick-nav-dot {
    width: 12px;
    height: 12px;
    margin: 10px 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .2);
    transition: all .3s ease;
    cursor: pointer;
}

.quick-nav-dot.active,
.quick-nav-dot:hover {
    background-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), rgba(19, 214, 176, .1));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    transition: all .5s ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all .3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary);
}

.left  { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }

.timeline-content {
    padding: 20px 25px;
    background-color: #fff;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    transition: all .3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
