/* Base Styles */
.icon {
    width: 1.5rem; 
    height: 1.5rem; 
    fill: currentColor;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Active navigation indicator */
.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #8B5CF6;
    transition: all 0.3s ease;
}

.nav-link.active .nav-indicator {
    width: 100%;
}

/* Centered desktop navigation */
.desktop-nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.desktop-nav-link {
    font-weight: 500;
}

/* Mobile Navigation Container */
.mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    width: auto;
    margin: 0 auto;
}

.dark .mobile-nav-container {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating dark mode button */
.floating-theme-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px; 
    z-index: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .floating-theme-toggle {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile navigation icons */
.mobile-nav-icon {
    display: none;
}

/* Typing animation styles */
.typing-container {
    display: inline-block;
    position: relative;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #8B5CF6;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #8B5CF6; }
}

/* CTA Typing Animation */
.cta-typing-container {
    min-width: 180px;
    display: inline-block;
    text-align: center;
}

.cta-typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    animation: blink-caret 0.75s step-end infinite;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Skill badges animation */
.skill-badge {
    transition: transform 0.2s ease;
}

.skill-badge:hover {
    transform: translateY(-2px);
}

/* Project cards animation */
.project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Enhanced responsive design */
@media (min-width: 768px) {
    .desktop-nav-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .desktop-nav-link {
        font-weight: 700; /* Bold text */
    }
    
    .mobile-nav-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-nav-text {
        display: none;
    }
    
    .mobile-nav-container {
        gap: 2rem;
    }
    
    .floating-theme-toggle {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 1024px) {
    .contact-section {
        display: flex;
        justify-content: center;
        text-align: center;
    }
}

/* Improved responsive design for very small screens */
@media (max-width: 480px) {
    .mobile-nav-container {
        gap: 1.5rem;
        padding: 0.75rem;
    }
    
    .floating-theme-toggle {
        bottom: 60px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}