/* Animations and additional styling for the geospatial resume */

/* Page load animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Apply animations to elements */
body {
    animation: fadeIn 1s ease forwards;
}

#overlay {
    animation: slideInRight 0.8s ease-out forwards;
}

.header h1, .header h2 {
    animation: slideUp 0.8s ease-out forwards;
}

.header h1 {
    animation-delay: 0.2s;
}

.header h2 {
    animation-delay: 0.4s;
}

.contact-info {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.navigation {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Animation for section headers */
.section h2 {
    position: relative;
    overflow: hidden;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: translateX(-100%);
    animation: slideInLine 1.5s ease forwards;
    animation-delay: 0.2s;
}

@keyframes slideInLine {
    to { transform: translateX(0); }
}

/* Timeline animations */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stats container */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: 30%;
    min-width: 100px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stat-item .counter {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item span:last-child {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Search functionality */
.search-container {
    position: relative;
    margin: 20px 0;
}

#search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-result-item:hover {
    background-color: rgba(78, 205, 196, 0.1);
}

.search-result-item h4 {
    margin: 0;
    font-size: 14px;
    color: var(--primary-color);
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--dark-color);
    font-style: italic;
}

/* Additional styling for list items */
.experience-item ul, .project-item ul {
    margin-top: 10px;
    padding-left: 20px;
}

.experience-item li, .project-item li {
    margin-bottom: 5px;
    position: relative;
}

.experience-item li::before, .project-item li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 80%;
        margin-bottom: 15px;
    }
    
    .timeline-item {
        padding: 10px;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    #map, #scene-container, #location-info, #home-button, #loading {
        display: none !important;
    }
    
    #overlay {
        position: static;
        width: 100%;
        height: auto;
        overflow: visible;
        background-color: white;
        box-shadow: none;
        padding: 20px;
    }
    
    .section {
        page-break-inside: avoid;
    }
} 