/* ============================================
   ADDITIONAL STYLES FOR JAVASCRIPT FEATURES
   Author: Jennifer Nneoma Shedrack
   Note: This file contains ONLY styles for JS animations
   Main styles are in style.css
   ============================================ */

/* ============================================
   SCROLL & FADE ANIMATIONS
   ============================================ */

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide in animation for notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */

/* Active navigation link */
.nav-links a.active {
    color: var(--navy);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue-accent);
}

/* Smooth nav shadow transition */
nav {
    transition: box-shadow 0.3s ease;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-accent), var(--blue-light));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ============================================
   BUTTON EFFECTS
   ============================================ */

/* Button ripple effect */
.cta-button, 
.resume-button, 
.contact-link {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--blue-accent);
    transform: translateY(-3px);
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */

/* Particle canvas - already positioned in main CSS */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content, 
.hero-image-container {
    position: relative;
    z-index: 2;
}

/* Hero parallax smooth */
.hero {
    transition: transform 0.1s ease-out;
}

/* ============================================
   PROJECT CARD EFFECTS
   ============================================ */

/* Project card smooth transition for 3D tilt */
.project-card {
    transition: transform 0.1s ease;
}

/* ============================================
   SKILL PROGRESS BARS (OPTIONAL)
   ============================================ */

.skill-list li {
    position: relative;
    padding-bottom: 1rem;
}

.skill-progress {
    margin-top: 0.5rem;
    background: #e5e7eb;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--blue-accent));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.skill-percentage {
    position: absolute;
    right: 5px;
    top: -25px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
}

/* ============================================
   DARK MODE (OPTIONAL)
   ============================================ */

/* Dark Mode Variables */
:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --card-bg: white;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #fafafa;
    --card-bg: #2d2d2d;
}

[data-theme="dark"] body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .skill-category,
[data-theme="dark"] .project-card,
[data-theme="dark"] .experience-item,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .about {
    background: var(--card-bg);
}

[data-theme="dark"] .about-content p,
[data-theme="dark"] .experience-description li,
[data-theme="dark"] .skill-list li {
    color: #d1d5db;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--navy);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: rotate(20deg);
    background: rgba(30, 58, 95, 0.1);
}

[data-theme="dark"] .sun { 
    display: none; 
}

[data-theme="light"] .moon { 
    display: none; 
}

/* ============================================
   CUSTOM CURSOR (OPTIONAL)
   ============================================ */

#cursor-dot,
#cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--blue-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

/* Hide custom cursor on mobile and tablets */
@media (max-width: 1024px) {
    #cursor-dot,
    #cursor-outline {
        display: none !important;
    }
}

/* ============================================
   EMAIL COPY NOTIFICATION
   ============================================ */

.email-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR JS FEATURES
   ============================================ */

@media (max-width: 768px) {
    /* Back to top button smaller on mobile */
    #back-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Scroll progress bar thicker on mobile */
    #scroll-progress {
        height: 4px;
    }
    
    /* Simplify animations on mobile for performance */
    .fade-in {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    /* Further optimizations for small screens */
    .ripple {
        display: none; /* Disable ripple on very small screens */
    }
    
    .email-notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Hide interactive elements when printing */
    #back-to-top,
    #scroll-progress,
    .theme-toggle,
    #cursor-dot,
    #cursor-outline,
    .email-notification {
        display: none !important;
    }
}