/* Additional styles for enhanced sections */

/* Visitor Counter */
#visitor-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-counter-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visitor-counter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.visitor-counter-container:hover::before {
    left: 100%;
}

.visitor-counter-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(37, 99, 235, 0.15);
}

.counter-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.visitor-counter-container:hover .counter-icon {
    transform: scale(1.1) rotate(5deg);
}

.counter-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.visitor-counter-container:hover .counter-value {
    color: #2563eb;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.counter-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Realistic Eye Structure */
.realistic-eye {
    margin: 0 auto 15px;
    width: 70px;
    height: 45px;
    position: relative;
    cursor: pointer;
}

.eye-outer {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
}

.eye-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #5593f2, #2563eb);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: black;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.2s ease-out;
}

/* Pupil shrinks on hover */
.realistic-eye:hover .pupil {
    transform: translate(-50%, -50%) scale(0.7);
}

.eye-sparkle {
    position: absolute;
    top: 25%;
    right: 25%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white;
}

/* Lids now use scaleY for a smoother blink */
.upper-lid, .lower-lid {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    transform: scaleY(0);
    transition: transform 0.25s ease-in-out;
}

.upper-lid {
    top: 0;
    border-radius: 0 0 50% 50%;
    transform-origin: top;
}

.lower-lid {
    bottom: 0;
    border-radius: 50% 50% 0 0;
    transform-origin: bottom;
}

/* Realistic Eye Blink Animation */
.eye-blink {
    animation: realisticBlink 4s infinite;
}

@keyframes realisticBlink {
    0%, 45%, 55%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    48%, 52% {
        transform: scaleY(0.1);
        opacity: 0.7;
    }
}

/* Realistic Eye Blink Animation - Enhanced */
@keyframes blink {
    0%, 80%, 100% {
        transform: scaleY(0);
    }
    85%, 95% {
        transform: scaleY(1);
    }
}

.realistic-eye.blink .upper-lid {
    animation: blink 5s infinite;
}

.realistic-eye.blink .lower-lid {
    animation: blink 5s infinite reverse;
}

/* Experience and Achievements Section */
#experience-achievements {
    background-color: var(--light);
}

.dark-mode #experience-achievements {
    background-color: var(--light);
}

.experience-achievements-content {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.dark-mode .timeline-marker {
    border-color: var(--light);
}

.timeline-content h3 {
    color: var(--secondary);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow);
}

.dark-mode .achievement-card {
    background-color: var(--accent);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-lg);
    border-color: var(--primary);
}

.achievement-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.achievement-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Blog Section */
#blog {
    background-color: var(--light-gray);
}

.dark-mode #blog {
    background-color: var(--light-gray);
}

.blog-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 25px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.dark-mode .blog-card {
    background-color: var(--accent);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-lg);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

.blog-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.blog-card .btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.view-all-btn-container {
    text-align: center;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -26px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .visitor-counter-container {
        padding: 15px;
    }
    
    .counter-value {
        font-size: 1.5rem;
    }
    
    .realistic-eye {
        width: 60px;
        height: 40px;
    }
    
    .eye-inner {
        width: 28px;
        height: 28px;
    }
    
    .pupil {
        width: 14px;
        height: 14px;
    }
    
    .eye-sparkle {
        width: 5px;
        height: 5px;
        top: 20%;
        right: 20%;
    }
}